Bug#1061692: chirp fails to start with 'No module named 'chirp.stock_configs'

2024-01-29 Thread Dave Hibberd
Hi there,

Thanks for the bug and turning around a patch so quickly - it didn't show up in 
my test, I wonder what was different about my config!

I'll build and test in a clean environment later on and upload when I can!

Cheers,
DH

-- 
  Hibby
  MM0RFN

On Mon, 29 Jan 2024, at 2:57 AM, Harlan Lieberman-Berg wrote:
> tag 1061692 +patch
> thanks
>
> I've tested it, and it seems that manually adding the path to
> d/install fixes the problem fine.  Patch attached.
>
> Sincerely,
>
> -- 
> Harlan Lieberman-Berg
> ~hlieberman
>
> Attachments:
> * 0001-Ensure-stock-configs-are-installed-Closes-1061692.patch



Bug#1061692: chirp fails to start with 'No module named 'chirp.stock_configs'

2024-01-28 Thread Harlan Lieberman-Berg
tag 1061692 +patch
thanks

I've tested it, and it seems that manually adding the path to
d/install fixes the problem fine.  Patch attached.

Sincerely,

-- 
Harlan Lieberman-Berg
~hlieberman
From 9d9fc8e0a1b46af0c9bf13e7ff982af1b9e15c07 Mon Sep 17 00:00:00 2001
From: Harlan Lieberman-Berg 
Date: Sun, 28 Jan 2024 20:56:58 -0500
Subject: [PATCH] Ensure stock configs are installed (Closes: #1061692)

---
 debian/install | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/install b/debian/install
index d2033f8..af982ac 100644
--- a/debian/install
+++ b/debian/install
@@ -2,3 +2,4 @@ chirp/share/chirp.png /usr/share/pixmaps
 chirp/share/chirp.desktop /usr/share/applications
 chirp/share/*.png /usr/share/chirp
 chirp/locale/* /usr/lib/python3/dist-packages/chirp/locale
+chirp/stock_configs /usr/lib/python3/dist-packages/chirp
-- 
2.43.0



Bug#1061692: chirp fails to start with 'No module named 'chirp.stock_configs'

2024-01-28 Thread Harlan Lieberman-Berg
Package: chirp
Version: 1:20240122-1
Severity: grave
X-Debbugs-Cc: deb...@jouellet.net, hlieber...@debian.org

Hello Dave, all,

Thank you for updating chirp! Unfortunately, it seems that pybuild may have
failed to pick up one of the necessary directories that contains the stock
configurations. Running `chirpw` instantly crashes with the following error:

Traceback (most recent call last):
  File "/usr/bin/chirpw", line 33, in 
sys.exit(load_entry_point('chirp==20240122', 'console_scripts', 'chirpw')())
 ^^
  File "/usr/lib/python3/dist-packages/chirp/wxui/__init__.py", line 178, in 
chirpmain
mainwindow = main.ChirpMain(None, title='CHIRP')
 ^^^
  File "/usr/lib/python3/dist-packages/chirp/wxui/main.py", line 414, in 
__init__
self.SetMenuBar(self.make_menubar())
^^^
  File "/usr/lib/python3/dist-packages/chirp/wxui/main.py", line 644, in 
make_menubar
self.OPEN_STOCK_CONFIG_MENU = self.add_stock_menu()
  ^
  File "/usr/lib/python3/dist-packages/chirp/wxui/main.py", line 573, in 
add_stock_menu
in importlib_resources.files('chirp.stock_configs').iterdir()
   
  File "/usr/lib/python3.11/importlib/resources/_common.py", line 22, in files
return from_package(get_package(package))

  File "/usr/lib/python3.11/importlib/resources/_common.py", line 53, in 
get_package
resolved = resolve(package)
   
  File "/usr/lib/python3.11/importlib/resources/_common.py", line 44, in resolve
return cand if isinstance(cand, types.ModuleType) else 
importlib.import_module(cand)
   
^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
   
  File "", line 1204, in _gcd_import
  File "", line 1176, in _find_and_load
  File "", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'chirp.stock_configs'

Hopefully this is an easy fix!  Thanks for your help maintaining this.

73,

--
Harlan Lieberman-Berg (KC1CHE)
~hlieberman

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-5-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages chirp depends on:
ii  python3 [python3-supported-min]  3.11.4-5+b1
ii  python3-importlib-resources  6.0.1-1
ii  python3-requests 2.31.0+dfsg-1
ii  python3-serial   3.5-2
ii  python3-six  1.16.0-4
ii  python3-yattag   1.15.1-1
ii  wxpython-tools   4.2.1+dfsg-3

chirp recommends no packages.

chirp suggests no packages.

-- no debconf information