[tor-bugs] #16054 [Stem]: Cannot unpickle with Stem 1.4.0

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat May 16 16:58:22 UTC 2015


#16054: Cannot unpickle with Stem 1.4.0
--------------------+------------------------
 Reporter:  tom     |          Owner:  atagar
     Type:  defect  |         Status:  new
 Priority:  normal  |      Milestone:
Component:  Stem    |        Version:
 Keywords:          |  Actual Points:
Parent ID:          |         Points:
--------------------+------------------------
 I was working on getting the info for #16048 and ran into a problem :)

 To test depictor without doing a ton of network i/o I uncomment lines [0],
 run ./write_website.py once to download and save the files, and then run
 ./website.py which will read the pickled files[1].

 [0] https://gitweb.torproject.org/depictor.git/tree/write_website.py#n61
 [1] https://gitweb.torproject.org/depictor.git/tree/website.py#n964

 This now fails. FWIW I downloaded the files and constructed the objects
 using validate = True in the downloader [2]

 [2] https://gitweb.torproject.org/depictor.git/tree/write_website.py#n35

 {{{
 Traceback (most recent call last):
   File "./website.py", line 980, in <module>
     c = pickle.load(open('consensus.p', 'rb'))
   File "/usr/lib/python2.7/pickle.py", line 1378, in load
     return Unpickler(file).load()
   File "/usr/lib/python2.7/pickle.py", line 858, in load
     dispatch[key](self)
   File "/usr/lib/python2.7/pickle.py", line 1215, in load_build
     setstate = getattr(inst, "__setstate__", None)
   File "/tor/depictor/stem/descriptor/__init__.py", line 599, in
 __getattr__
     if self._lazy_loading and name in self.ATTRIBUTES:
   File "/tor/depictor/stem/descriptor/__init__.py", line 599, in
 __getattr__
     if self._lazy_loading and name in self.ATTRIBUTES:
   File "/tor/depictor/stem/descriptor/__init__.py", line 599, in
 __getattr__
     if self._lazy_loading and name in self.ATTRIBUTES:
   File "/tor/depictor/stem/descriptor/__init__.py", line 599, in
 __getattr__
     if self._lazy_loading and name in self.ATTRIBUTES:
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16054>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list