Bug #11948
closedTYT TH-350 US Settings - No attribute fm_presets
100%
Description
(Describe what you were doing)
Running Chirp from commit: bc27f6653aa804a5c55a3a1b2244ee43a174854b (2025-04-01)
Updating my config of the TYT TH-350 US settings.
(Describe what you expected to happen)
After downloading the running config from the radio I selected "Settings" and was presented with an empty page and an error (see below).
(Describe what actually happened instead)
Received the following error in the Chirp UI: "No attribute fm_presets in struct (anonymous)"
And the following traceback in the terminal where I launched chirp from:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/nix/store/795zn5whbg9jxk8flmddyi0alyb7qlpx-python3.12-wxpython-4.2.2/lib/python3.12/site-packages/wx/core.py", line 3427, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/f3w953gbghs31bfyakrwjiiq0mb9mmz7-chirp-0.4.0-unstable-2025-04-01/lib/python3.12/site-packages/chirp/wxui/settingsedit.py", line 63, in _initialize
raise job.result
File "/nix/store/f3w953gbghs31bfyakrwjiiq0mb9mmz7-chirp-0.4.0-unstable-2025-04-01/lib/python3.12/site-packages/chirp/wxui/common.py", line 296, in do_radio
job.result = getattr(self._radio, fn)(*a, **k)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/f3w953gbghs31bfyakrwjiiq0mb9mmz7-chirp-0.4.0-unstable-2025-04-01/lib/python3.12/site-packages/chirp/drivers/uvb5.py", line 685, in get_settings
if self._memobj.fm_presets[i] < 0x01AF:
^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/f3w953gbghs31bfyakrwjiiq0mb9mmz7-chirp-0.4.0-unstable-2025-04-01/lib/python3.12/site-packages/chirp/bitwise.py", line 835, in __getattr__
raise AttributeError("No attribute %s in struct %s" % (
AttributeError: No attribute fm_presets in struct (anonymous)
(Has this ever worked before? New radio? Does it work with OEM software?)
This is the first time Im using Chirp with this radio.
Files
Updated by Rob Hernandez 20 days ago
- File config.txt config.txt added
- File TYT_TH-350_20250419.img TYT_TH-350_20250419.img added
- File linux_system_info.txt linux_system_info.txt added
[Uploaded from CHIRP py3dev]
Updated by Dan Smith 20 days ago
- Status changed from New to In Progress
The fix for this is in another (parent) driver so I can't easily provide you a module to test. But, since you're running from git, perhaps you can rebase to this:
https://github.com/kk7ds/chirp/pull/1314
and confirm it works for you. It lets me load your image, so I'm pretty sure it's fine.
Updated by Dan Smith 19 days ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
Applied in changeset github|52536959bd1683ebe64a7dbc7799c25be049fbb7.