Menu

#26 Fix: NameError: global name 'base' is not defined

closed-accepted
None
5
2011-12-28
2011-12-19
No

python -m serial.tools.list_ports
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/serial/tools/list_ports.py", line 99, in <module>
main()
File "/usr/local/lib/python2.7/dist-packages/serial/tools/list_ports.py", line 83, in main
iterator = sorted(comports())
File "/usr/local/lib/python2.7/dist-packages/serial/tools/list_ports_posix.py", line 122, in comports
return [(d, describe(d), hwinfo(d)) for d in devices]
File "/usr/local/lib/python2.7/dist-packages/serial/tools/list_ports_posix.py", line 93, in describe
return usb_lsusb_string(sys_usb)
File "/usr/local/lib/python2.7/dist-packages/serial/tools/list_ports_posix.py", line 80, in usb_lsusb_string
return base
NameError: global name 'base' is not defined

Discussion

  • TheBiggerGuy

    TheBiggerGuy - 2011-12-19
     
  • Chris Liechti

    Chris Liechti - 2011-12-28

    Thanks, committed, will be in next release (2.7)

     
  • Chris Liechti

    Chris Liechti - 2011-12-28
    • assigned_to: nobody --> cliechti
    • status: open --> closed-accepted
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.