Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #26412

Closed
Open
Opened Jun 19, 2018 by juga @juga💬

KeyError in can_exit_to caused by lru_cache

As pastly reported in https://github.com/pastly/simple-bw-scanner/issues/198, stem giving this traceback:

File "/home/pastly/src/simple-bw-scanner/venv-editable/lib/python3.5/site-packages/stem/exit_policy.py", line 285, in can_exit_to

if not self.is_exiting_allowed():KeyError: (<stem.exit_policy.MicroExitPolicy object at 0x7f8de6438ba8>,)

Apparently caused by  a Python bug with lru_cache.

pastly is already trying to find out which Python versions fail, to use stem's lru_cache for those ones.

This ticket blocks #26848 (moved)

Edit: blocks ticket

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#26412