Bug #10064

"An integer is required" error

Added by Brian Simmons 2 months ago. Updated 22 days ago.

Status:Feedback Start date:10/03/2022
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:chirp-daily
Chirp Version:daily Platform:MacOS
Model affected:TD-H6

Description

It looks like this has happened with other radios, but I didn't find an answer for the TD-H6.

History

Updated by Jim Unroe 2 months ago

  • Status changed from New to Feedback

I'm not really a mac user but I do have a MacBook Air. I've not had this problem because I am staying at Catalina.

I believe that with the introduction of macOS Monterey, Apple has removed Python2 (which CHIRP still requires). I believe that the solution for this issue is to manually install Python2.

See the MacOS 12.3+ (Monterey) section of the MacOS Tips page.

Jim KC9HI

Updated by Brian Simmons 2 months ago

Thanks for the quick reply, Jim! I should have included that the program works for my UV-5Rs, but not my new TD-H6. Sorry for being a doofus here — I didn't think about it until just now. I do have Python installed.

-Brian

Updated by Jim Unroe 2 months ago

Brian Simmons wrote:

Thanks for the quick reply, Jim! I should have included that the program works for my UV-5Rs, but not my new TD-H6. Sorry for being a doofus here — I didn't think about it until just now. I do have Python installed.

-Brian

This is because the TD-H6 is programmed with the ga510.py driver. The ga510.py driver requires the future module. The future module is not included in the MacOS Unified Application. So you will have to install it yourself (if it can be installed -- I have never bothered to install the future module on my mac because I do my CHIRP programming using Windows (mostly) and Linux). If I needed to add the future module to Linux I would use a command in terminal similar to "pip install future".

See the pypi.org future page.

Jim KC9HI

Updated by Brian Simmons 2 months ago

Awesome — thanks, Jim!

Updated by Jim Unroe 2 months ago

Brian, did adding the future module solve this for you?

Jim KC9HI

Updated by Brian Simmons 2 months ago

It worked like a dream — thanks!

Updated by Eric Yerington about 1 month ago

I am having the same issue with a RadioOddity GA-510. I tried restarting Chirp and the radio but every time I try to read from the radio it gives the message about an integer is required. I just checked and I DO have Python 2.7 installed.

Updated by Jim Unroe about 1 month ago

Eric Yerington wrote:

I am having the same issue with a RadioOddity GA-510. I tried restarting Chirp and the radio but every time I try to read from the radio it gives the message about an integer is required. I just checked and I DO have Python 2.7 installed.

Because you don't have the future module installed. See note 3 above.

Jim KC9HI

Updated by Brian Hendrix 22 days ago

I'm not able to download from radio with the same error -- the message about an integer being required. The "pip install future" was successful but still get the error. I'm trying to download from a Baofeng BF-H6.

Updated by Brian Hendrix 22 days ago

My bad! I needed to get out of Chirp and restart it after installing "future" -- it works now!

Also available in: Atom PDF