Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#48581 - [python2-pyserial] 3.0.1-1 Unable to open /dev/ttyUSBx

Attached to Project: Community Packages
Opened by James (thx1138) - Monday, 14 March 2016, 15:03 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 15 March 2016, 10:38 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

community/python2-pyserial 3.0.1-1

Please see:
https://github.com/pyserial/pyserial/issues/59
pyserial on raspberry pi with socat raises IOError on open #59

A fix is in GitHub. For this package to be usable, please upgrade to the GitHub version.

With the current version, code like this:

ser = serial.Serial(
port=sys.argv[-1],
baudrate=115200,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
bytesize=serial.EIGHTBITS)

Will give this error:

Traceback (most recent call last):
File "./qcdlcomm.py", line 51, in <module>
bytesize=serial.EIGHTBITS
File "/usr/lib/python2.7/site-packages/serial/serialutil.py", line 180, in __init__
self.open()
File "/usr/lib/python2.7/site-packages/serial/serialposix.py", line 311, in open
self._update_dtr_state()
File "/usr/lib/python2.7/site-packages/serial/serialposix.py", line 605, in _update_dtr_state
fcntl.ioctl(self.fd, TIOCMBIS, TIOCM_DTR_str)
IOError: [Errno 22] Invalid argument

This task depends upon

Closed by  Sergej Pupykin (sergej)
Tuesday, 15 March 2016, 10:38 GMT
Reason for closing:  Fixed

Loading...