Cannot unpickle with Stem 1.4.0
I was working on getting the info for #16048 (closed) 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: