Bug #3209
closedDoes not set serial port info on debian Jessie
100%
Description
Debian Jessie
CHIRP daily-20160116 on Linux - Debian GNU/Linux stretch/sid (Python 2.7.11)
chirp starts, but when attempting read any radio, specially kenwood th-f61, and baofeng uv-5r . no more pop-up messages, but never reads radio
/usr/local/bin/chirpw
(process:9987): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
WARNING: Icon /usr/share/pixmaps/chirp.png not found
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/chirp/ui/mainapp.py", line 1406, in mh
self.do_download(*args)
File "/usr/local/lib/python2.7/dist-packages/chirp/ui/mainapp.py", line 679, in do_download
radio = settings.radio_class(ser)
File "/usr/local/lib/python2.7/dist-packages/chirp/drivers/kenwood_live.py", line 159, in init
radio_id = get_id(self.pipe)
File "/usr/local/lib/python2.7/dist-packages/chirp/drivers/kenwood_live.py", line 106, in get_id
ser.setBaudrate(i)
AttributeError: 'Serial' object has no attribute 'setBaudrate'
debug log, level 9 attached
Files
Updated by Jonathan Karras over 8 years ago
Installing version 2.x of pySerial fixes the issue. The drivers in question should be updated to the new AP though as it apparently has not been deprecated since 2.x.
pip install "pySerial>=2.0,<=2.9999"
Updated by Todd Johnson over 8 years ago
This appears to be a one line fix for me at least for kenwood_live ser.setBaudrate(i) becomes ser.baudrate = i
I know this will likely need updated in several other modules to be compatible with python2-pyserial 3.0.1-2 that I'm using on Arch.
Updated by Tom Hayward over 8 years ago
- Status changed from New to Closed
- Assignee set to Tom Hayward
- % Done changed from 0 to 100