Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #16054
Closed
Open
Issue created May 16, 2015 by Tom Ritter@tom

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:
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking