Project

General

Profile

Actions

Bug #11948

closed

TYT TH-350 US Settings - No attribute fm_presets

Added by Rob Hernandez 20 days ago. Updated 19 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
04/19/2025
Due date:
% Done:

100%

Estimated time:
Chirp Version:
next
Model affected:
US TYT TH-350
Platform:
Linux
Debug Log:
I read the instructions above:
Yes

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

config.txt (1.06 KB) config.txt Rob Hernandez, 04/19/2025 09:25 AM
TYT_TH-350_20250419.img (4.22 KB) TYT_TH-350_20250419.img Rob Hernandez, 04/19/2025 09:25 AM
linux_system_info.txt (1.47 KB) linux_system_info.txt Rob Hernandez, 04/19/2025 09:25 AM
Actions #2

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.

Actions #3

Updated by Dan Smith 19 days ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF