| Summary: | dev-python/pyserial-2.6-r1 - serial.tools.list_ports.comports(): /usr/lib64/python2.7/site-packages/serial/tools/list_ports_posix.py: NameError: global name 'base' is not defined | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | NiTr0 <nitr0> |
| Component: | [OLD] Development | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
NiTr0
2014-02-09 23:38:38 UTC
$ python2.7
Python 2.7.5 (default, Jan 11 2014, 18:42:25)
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import serial.tools.list_ports
>>> serial.tools.list_ports.comports()
[('/dev/ttyS1', 'ttyS1', 'n/a'), ('/dev/ttyS0', 'ttyS0', 'n/a'), ('/dev/ttyS3', 'ttyS3', 'n/a'), ('/dev/ttyS2', 'ttyS2', 'n/a')]
Works for me.
It fails on USB-serial connectors. (In reply to NiTr0 from comment #2) > It fails on USB-serial connectors. Consider filing upstream @ http://sourceforge.net/projects/pyserial/ 25 Mar 2014; Ian Delaney <idella4@gentoo.org> +files/pyserial-2.6-list_ports.patch, pyserial-2.6-r1.ebuild: Add patch to fix Bug #500818 by NiTr0 |