[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #15349 [- Select a component]: Symbol "str_tools" not defined in "Tortoise and the Hare" tutorial's script



#15349: Symbol "str_tools" not defined in "Tortoise and the Hare" tutorial's script
----------------------------------+---------------------
 Reporter:  Lluis Sala            |          Owner:
     Type:  defect                |         Status:  new
 Priority:  normal                |      Milestone:
Component:  - Select a component  |        Version:
 Keywords:                        |  Actual Points:
Parent ID:                        |         Points:
----------------------------------+---------------------
 Running the script is giving the error:

 File "cursesBW.py", line 68, in _handle_bandwidth_event
 _render_graph(window, bandwidth_rates)

 File "cursesBW.py", line 78, in _render_graph
 label = "Downloaded (%s/s):" % str_tools.size_label(download_rates[0], 1)
 AttributeError: 'module' object has no attribute 'size_label'

 After seeking, I found the symbol definition of 'get_size_label' in:

 /usr/lib/python2.7/dist-packages/stem/util/str_tools.py

 I substituted 'size_label' by 'get_size_label' and it worked.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15349>
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