Actions
Bug #11235
closedchirp 20240311 fails to launch (Debian 12, Python 3.11.2)
Start date:
03/11/2024
Due date:
% Done:
100%
Estimated time:
Chirp Version:
next
Model affected:
N/A
Platform:
Linux
I read the instructions above:
Yes
Description
I installed it using pipx
and the chirp-20240311-py3-none-any.whl
.
Previous versions worked, including chirp-20240306-py3-none-any.whl
.
Error log:
$ chirp
Traceback (most recent call last):
File "/home/alex/.local/bin/chirp", line 8, in <module>
sys.exit(chirpmain())
^^^^^^^^^^^
File "/home/alex/.local/pipx/venvs/chirp/lib/python3.11/site-packages/chirp/wxui/__init__.py", line 113, in chirpmain
default=not CONF.get_bool('offered_desktop',
^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_bool'
Updated by Alex Page 8 months ago
Offending code from wxui/__init__.py
:
parser.add_argument('--install-desktop-app', action='store_true',
default=not CONF.get_bool('offered_desktop',
'state'),
help='Prompt to install a desktop icon')
CONF
initialization was recently (e2b026a
) moved after argument parsing. So CONF
can no longer be used this way in a parser.
Suggested fix: either default=False
or default=True
for install-desktop-app
. I have confirmed that CHIRP launches with that change.
Updated by Dan Smith 8 months ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset github|e8c28d7679440d7e5e96455d94dd102184dab73e.
Actions