Project

General

Profile

Actions

Bug #11235

closed

chirp 20240311 fails to launch (Debian 12, Python 3.11.2)

Added by Alex Page 10 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
03/11/2024
Due date:
% Done:

100%

Estimated time:
Chirp Version:
next
Model affected:
N/A
Platform:
Linux
Debug Log:
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'

Actions #1

Updated by Alex Page 10 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.

Actions #2

Updated by Dan Smith 10 months ago

  • Assignee set to Dan Smith

Yep, thanks, I'll get it fixed later.

Actions #3

Updated by Dan Smith 10 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF