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
Opened by James (thx1138) - Monday, 14 March 2016, 15:03 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 15 March 2016, 10:38 GMT
|
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