[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #16048 [Stem]: Cannot access bandwidth attribute on RouterV3StatusEntry
#16048: Cannot access bandwidth attribute on RouterV3StatusEntry
--------------------+------------------------
Reporter: tom | Owner: atagar
Type: defect | Status: new
Priority: normal | Milestone:
Component: Stem | Version:
Keywords: | Actual Points:
Parent ID: | Points:
--------------------+------------------------
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...
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16048>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs