Project

General

Profile

Actions

Bug #3209

closed

Does not set serial port info on debian Jessie

Added by Rod Myers almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Target version:
-
Start date:
01/23/2016
Due date:
% Done:

100%

Estimated time:
Chirp Version:
daily
Model affected:
(All models)
Platform:
Windows
Debug Log:
I read the instructions above:

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

debian-jessie.log (674 Bytes) debian-jessie.log Rod Myers, 01/23/2016 05:31 PM
chirp-pyserial-kenwood.patch (458 Bytes) chirp-pyserial-kenwood.patch Todd Johnson, 04/29/2016 10:40 PM
Actions #1

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"
Actions #2

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.

Actions #3

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
Actions

Also available in: Atom PDF