Project

General

Profile

Actions

Bug #11686

closed

'ChirpGridTable' object has no attribute 'GetRowsCount'

Added by Alex Savvin 7 days ago. Updated 7 days ago.

Status:
Not a bug
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
11/16/2024
Due date:
% Done:

0%

Estimated time:
Chirp Version:
next
Model affected:
Quansheng UV-K5
Platform:
Linux
Debug Log:
I read the instructions above:
Yes

Description

I have try to read a data from my Quansheng UV-K6 radio by an usb-serial cable with ch341-uart converter.
Menu -> Radio -> Read from radio: ttyUSB0, Quansheng, UV-K5

I've expected to see a table with data from the radio.

Nothing happends in the user interface but some traceback appeared in terminal:

Traceback (most recent call last):
File "/home/xbow/.local/pipx/venvs/chirp/lib/python3.10/site-packages/chirp/wxui/main.py", line 1583, in menu_download
editorset = ChirpEditorSet(radio, None, self._editors)
File "/home/xbow/.local/pipx/venvs/chirp/lib/python3.10/site-packages/chirp/wxui/main.py", line 201, in __init
_
edit = self.MEMEDIT_CLS(radio, self.editors)
File "/home/xbow/.local/pipx/venvs/chirp/lib/python3.10/site-packages/chirp/wxui/memedit.py", line 737, in __init
_
self.table = ChirpGridTable(self._features, len(self._col_defs))
File "/home/xbow/.local/pipx/venvs/chirp/lib/python3.10/site-packages/chirp/wxui/memedit.py", line 51, in __init
_
self._rowmap = {x: x for x in range(0, self.GetRowsCount())}
AttributeError: 'ChirpGridTable' object has no attribute 'GetRowsCount'

wx version 4.1.1
python version 3.10.12
chirp version 20241115
distro Linux Mint 21.3

I cant found the GetRowsCount method in my version on wx.grid, only the GetNumberRows method:

$ python3
Python 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import wx
import wx.grid
s = wx.grid.GridStringTable()
dir(s)
['AppendCols', 'AppendRows', 'Clear', 'CornerLabelValue', 'DeleteCols', 'DeleteRows', 'GetColLabelValue', 'GetCornerLabelValue', 'GetNumberCols', 'GetNumberRows', 'GetRowLabelValue', 'GetValue', 'InsertCols', 'InsertRows', 'NumberCols', 'NumberRows', 'SetColLabelValue', 'SetCornerLabelValue', 'SetRowLabelValue', 'SetValue', 'class', 'delattr', 'dict', 'dir', 'doc', 'eq', 'format', 'ge', 'getattribute', 'gt', 'hash', 'init', 'init_subclass', 'le', 'lt', 'module', 'ne', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref']
print(wx.version)
4.1.1


Files

config.txt (904 Bytes) config.txt Alex Savvin, 11/16/2024 11:38 AM
linux_system_info.txt (922 Bytes) linux_system_info.txt Alex Savvin, 11/16/2024 11:38 AM
debug_log.txt (72.3 KB) debug_log.txt Alex Savvin, 11/16/2024 11:38 AM
Actions

Also available in: Atom PDF