Project

General

Profile

Actions

Bug #10305

closed

new beta of chirp radio reference is not popping

Added by Ricco march about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
01/22/2023
Due date:
% Done:

100%

Estimated time:
Chirp Version:
next (py3)
Model affected:
tyt th 9800
Platform:
Windows
Debug Log:
I read the instructions above:

Description

the download from radio reference is not popping up when selected


Files

Actions #1

Updated by Jim Unroe about 1 year ago

Ricco march wrote:

the download from radio reference is not popping up when selected

I just tried with today's build (CHIRP next-20230122) and it popped up for me (Windows 10 Pro). I don't have a RadioReference account so I can't proceed any further.

Jim KC9HI

Actions #2

Updated by Dan Smith about 1 year ago

Please attach a debug log per the instructions in How_To_Report_Issues.

Actions #3

Updated by Mark Leigh about 1 year ago

Traceback (most recent call last):
  File "/home/user/PycharmProjects/chirp/chirp/wxui/main.py", line 1349, in _menu_query_rr
    self._do_network_query(query_sources.RRQueryDialog)
  File "/home/user/PycharmProjects/chirp/chirp/wxui/main.py", line 1340, in _do_network_query
    d = query_cls(self, title=_('Query %s') % query_cls.NAME)
  File "/home/user/PycharmProjects/chirp/chirp/wxui/query_sources.py", line 152, in __init__
    vbox = self.build()
  File "/home/user/PycharmProjects/chirp/chirp/wxui/query_sources.py", line 518, in build
    value=CONF.get_password('password',
  File "/home/user/PycharmProjects/chirp/chirp/wxui/config.py", line 83, in get_password
    return base64.b64decode(encoded.encode()).decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa7 in position 1: invalid start byte

It's related to the new (and important) effort to store passwords in something slightly less dicey than plaintext. But for anyone (most users I expect) who have their passwords already stored plaintext, it will not launch the query dialog. Just as proof of confirmation, config.py lines 82 onwards below; this works for me...

            try:
                return encoded
                #return base64.b64decode(encoded.encode()).decode()
            except binascii.Error:
                # Likely not stored encoded, return as-is
                return encoded
Actions #4

Updated by Dan Smith about 1 year ago

  • Assignee set to Dan Smith

Yeah, I'll have a look and see if I can repro.

Actions #5

Updated by Dan Smith about 1 year ago

Mark, can you look in your chirp.config to see if yours is obfuscated? I'm wondering if your password happens to be valid base64, which is being decoded into binary... that seems like a dumb oversight on my part!

Actions #6

Updated by Mark Leigh about 1 year ago

It's plaintext in the chirp conf; and the password IS valid base64 :)

Actions #7

Updated by Dan Smith about 1 year ago

Okay, yeah, that was dumb of me. I'll cook something up. It'll have to break someone, unfortunately :(

Actions #8

Updated by Dan Smith about 1 year ago

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

Also available in: Atom PDF