Skip to content
GitLab
Projects Groups Topics 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
  • #16048
Closed
Open
Issue created May 16, 2015 by Tom Ritter@tom

Cannot access bandwidth attribute on RouterV3StatusEntry

I was checking to see if I needed to do anythign to update depictor to work with Stem 1.4.0

I saw that .measured[0] went away, and seems to have been replaced by .bandwidth

[0] https://gitweb.torproject.org/depictor.git/tree/website.py#n551

But I get an error on some router, as shown below:

Traceback (most recent call last):
  File "./write_website.py", line 159, in <module>
    main()
  File "./write_website.py", line 71, in main
    w.write_website(os.path.join(os.path.dirname(__file__), 'out', 'consensus-health.html'), True)
  File "/tor/depictor/website.py", line 36, in write_website
    self._write_bandwidth_scanner_status()
  File "/tor/depictor/website.py", line 553, in _write_bandwidth_scanner_status
    if r.bandwidth >= 0L:
  File "/tor/depictor/stem/descriptor/__init__.py", line 603, in __getattr__
    parsing_function(self, self._entries)
  File "/tor/depictor/stem/descriptor/router_status_entry.py", line 253, in _parse_w_line
    descriptor.unrecognized_bandwidth_entries.append(w_entry)
  File "/tor/depictor/stem/descriptor/__init__.py", line 603, in __getattr__
    parsing_function(self, self._entries)
  File "/tor/depictor/stem/descriptor/router_status_entry.py", line 253, in _parse_w_line
    descriptor.unrecognized_bandwidth_entries.append(w_entry)
  File "/tor/depictor/stem/descriptor/__init__.py", line 603, in __getattr__
    parsing_function(self, self._entries)
  File "/tor/depictor/stem/descriptor/router_status_entry.py", line 253, in _parse_w_line
    descriptor.unrecognized_bandwidth_entries.append(w_entry)
  File "/tor/depictor/stem/descriptor/__init__.py", line 603, in __getattr__
    parsing_function(self, self._entries)
  File "/tor/depictor/stem/descriptor/router_status_entry.py", line 253, in _parse_w_line
    descriptor.unrecognized_bandwidth_entries.append(w_entry)
  File "/tor/depictor/stem/descriptor/__init__.py", line 603, in __getattr__
    parsing_function(self, self._entries)
  File "/tor/depictor/stem/descriptor/router_status_entry.py", line 253, in _parse_w_line
    descriptor.unrecognized_bandwidth_entries.append(w_entry)

I added a print r.nickname right before that line, and it died on the relay 'DasielFR1' - but I don't see anything unique or unusual about that one...

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking