Bug #9812
openTrying to access Radio Reference but keep getting Python error
0%
Description
There is a setting in Chirp that allows connection between Radio Reference and Chirp. I am well aware that one did not develop the other, but there has to be some idea on this issue- i found it on a radio reference forum specifically here: Issue with Chirp | Query data source -> RadioReference
my post earlier that closed without being able to ask an update since there is no other assistance on Chirp once you run the python- which i did with a a correct install. After the install, i still could not access the radio reference data into Chirp- all Chirp says is to install Python, which i did.
1648678319724.png
So install via terminal and get
Last login: Wed Mar 30 18:07:57 on ttys000
myname@name-MBP ~ % sudo easy_install -z suds
Password:
Searching for suds
Reading Links for suds
Downloading https://files.pythonhosted.org/pack...66da7a3d5ab163fb5a06b018bbd940a144e00413624ad
Best match: suds 1.0.0
Processing suds-1.0.0.tar.gz
Writing /tmp/easy_install-shu4n5/suds-1.0.0/setup.cfg
Running suds-1.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-shu4n5/suds-1.0.0/egg-dist-tmp-i3V3KB
zip_safe flag not set; analyzing archive contents...
Copying suds_community-1.0.0-py2.7.egg to /Library/Python/2.7/site-packages
Adding suds-community 1.0.0 to easy-install.pth file
Installed /Library/Python/2.7/site-packages/suds_community-1.0.0-py2.7.egg
Skipping dependencies for suds-community 1.0.0
myname@name-MBP ~ %
So its installed but when i try to go back, i am in a loop. any thoughts?- did anyone else have this issue and did anything work to stop the loop and allow you to download the radio reference data? I have followed the directions https://chirp.danplanet.com/projects/chirp/wiki/How_to_report_issues. and looked all around the faq and only got the python install message- which i completed successfully. Has anyone else had this problem?
Just wondering if anyone has a solution that worked for them. Please dont kill the post.
thanks
Attachments
1648678300866.png
1648678300866.png
307.2 KBViews: 4
1648678351926.png
1648678351926.png
503.8 KBViews: 4
Files
Updated by Tony Fuller over 2 years ago
Hi Nick,
Using the How_to_report_issues page, can you attach a debug.log file to this ticket so we can take a look at what CHIRP is doing when you try to access radio reference?
It also looks like you have some images that didn't come through. Can you also attach those to this ticket?
I don't think the guys here would "kill" a post, they all seem easy to get along with around here.
Tony
Updated by Nick Lacara over 2 years ago
- File suds library1.png suds library1.png added
- File suds 2.png suds 2.png added
- File suds 3.jpeg suds 3.jpeg added
Tony Fuller wrote:
Hi Nick,
Using the How_to_report_issues page, can you attach a debug.log file to this ticket so we can take a look at what CHIRP is doing when you try to access radio reference?
It also looks like you have some images that didn't come through. Can you also attach those to this ticket?
Thanks Tony, I copied this over from Radio Reference and forgot to remove that. The mods keep killing my post over there since it has to with Chirp (and radio reference, but they appear to not want to help- the mods kill it.)
As of this morning, i cant even log back into Chrip. I dowloaded a new packet, added it to security override and even tried terminal.
Last login: Thu Mar 31 09:26:41 on ttys000
nicklacaria@nicks-MBP ~ % /Users/nicklacaria/Downloads/CHIRP\ 6.app/Contents/CHIRP ; exit;
WARNING: Python 2.7 is not recommended.
This version is included in macOS for compatibility with legacy software.
Future versions of macOS will not include Python 2.7.
Instead, it is recommended that you transition to using 'python3' from within Terminal.
Python 2.7.16 (default, Aug 30 2021, 14:43:11)
[GCC Apple LLVM 12.0.5 (clang-1205.0.19.59.6) [+internal-os, ptrauth-isa=deploy on darwin
Type "help", "copyright", "credits" or "license" for more information.
So i tried this:
Last login: Wed Mar 30 19:19:27 on ttys000
nicklacaria@nicks-MBP ~ % install tdsmith/ham/chirp
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
nicklacaria@nicks-MBP ~ %
and then opened from the executable
Last login: Thu Mar 31 09:29:23 on ttys002
nicklacaria@nicks-MBP ~ % /Users/nicklacaria/Downloads/CHIRP\ 6.app/Contents/MacOS/chirp ; exit;
Traceback (most recent call last):
File "/Users/nicklacaria/Downloads/CHIRP 6.app/Contents/MacOS/../Resources/chirp/chirpw", line 24, in
from chirp.drivers import *
File "/Users/nicklacaria/Downloads/CHIRP 6.app/Contents/Resources/chirp/chirp/drivers/alinco.py", line 17, in
from chirp import chirp_common, bitwise, memmap, errors, directory, util
File "/Users/nicklacaria/Downloads/CHIRP 6.app/Contents/Resources/chirp/chirp/directory.py", line 22, in
from chirp import chirp_common, util, radioreference, errors
File "/Users/nicklacaria/Downloads/CHIRP 6.app/Contents/Resources/chirp/chirp/radioreference.py", line 22, in
from suds.client import Client
File "build/bdist.macosx-11.6-x86_64/egg/suds/client.py", line 23, in
File "build/bdist.macosx-11.6-x86_64/egg/suds/bindings/binding.py", line 23, in
File "build/bdist.macosx-11.6-x86_64/egg/suds/sax/document.py", line 23, in
File "build/bdist.macosx-11.6-x86_64/egg/suds/sax/element.py", line 23, in
File "build/bdist.macosx-11.6-x86_64/egg/suds/sax/text.py", line 25, in
TypeError: Error when calling the metaclass bases
nonempty slots not supported for subtype of 'str'
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...none found.
[Process completed]
What is happening that i can't open it again?
thanks
Updated by Nick Lacara over 2 years ago
Ok, finally got it to load- if there is an easier way, please let me know. I had to update MAc OS- but im worried the next time i try to log in, it will not let me again.
So i tried to connect radioreference again using terminal command: sudo easy_install -z suds
this is what returned:
Last login: Thu Mar 31 10:50:03 on ttys000
nicklacaria@nicks-MBP ~ % sudo easy_install -z suds
Password:
Sorry, try again.
Password:
Searching for suds
Reading https://pypi.org/simple/suds/
Downloading https://files.pythonhosted.org/packages/e7/10/c63909b0810b2edcaa801207b5aca026315e06edf32597b907271f62f5e1/suds-1.0.0.tar.gz#sha256=94702a4d1ad7875789b66da7a3d5ab163fb5a06b018bbd940a144e00413624ad
Best match: suds 1.0.0
Processing suds-1.0.0.tar.gz
Writing /tmp/easy_install-IgD1WZ/suds-1.0.0/setup.cfg
Running suds-1.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-IgD1WZ/suds-1.0.0/egg-dist-tmp-Jy_qs4
zip_safe flag not set; analyzing archive contents...
Copying suds_community-1.0.0-py2.7.egg to /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
Adding suds-community 1.0.0 to easy-install.pth file
Installed /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/suds_community-1.0.0-py2.7.egg
Skipping dependencies for suds-community 1.0.0
nicklacaria@nicks-MBP ~ %
then go back and try again: see image
then i try to get my debug log, and i cannot
nicklacaria@nicks-MBP ~ % .chirp/debug.log.
zsh: no such file or directory: .chirp/debug.log.
nicklacaria@nicks-MBP ~ % .chirp/debug.log.
zsh: no such file or directory: .chirp/debug.log.
nicklacaria@nicks-MBP ~ % chirp/debug.log.
zsh: no such file or directory: chirp/debug.log.
nicklacaria@nicks-MBP ~ %
So main errors:
- cannot continually log into Chirp
- Cannot connect Wouxun 9Dplus
- Cannot get debug log.
thanks for your patience and help.
Updated by Tony Fuller over 2 years ago
Hi Nick,
Perhaps our wiki needs updating.
Can you run this in terminal:
pip install future suds
This will install the future package (needed for some radio drivers) and the suds package for contacting radio reference.
Let me know.
Thanks,
Tony
Updated by Nick Lacara over 2 years ago
Thanks Tony, i was able to pull the log, and when i ran python i got this:
Last login: Thu Mar 31 11:08:58 on ttys000
nicklacaria@nicks-MBP ~ % pip install future suds
Collecting future
Downloading https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz (829kB)
100% |████████████████████████████████| 829kB 8.6MB/s
Collecting suds
Downloading https://files.pythonhosted.org/packages/bc/d6/960acce47ee6f096345fe5a7d9be7708135fd1d0713571836f073efc7393/suds-0.4.tar.gz (104kB)
100% |████████████████████████████████| 112kB 8.6MB/s
Installing collected packages: future, suds
Running setup.py install for future ... done
Running setup.py install for suds ... done
Successfully installed future-0.18.2 suds-0.4
You are using pip version 18.1, however version 20.3.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
nicklacaria@nicks-MBP ~ %
Log is attached, i was able to run Chirp again, and it asked me to update which i am having issues with as well. It might be that MAC just has more problems than PC> If this doesnt resolve, i will try on my PC.
Also, when i try to connect to radioreference, it still does not allow me to pull from there even after running python. Do i need to run another python script?
thanks
Updated by Tony Fuller over 2 years ago
Hi Nick,
I don't see any references to suds in your debug.log which means CHIRP can't find the suds library as we both know.
Perhaps "pip" is actually python3's pip and not python2's pip.
Can you do the following:
copy and paste the output of
which pip
to this ticket, AND
Run this to force the python2 version of pip
python2 -m pip install future suds
Thanks,
Tony
Updated by Nick Lacara over 2 years ago
1./Library/Frameworks/Python.framework/Versions/2.7/bin/pip
nicklacaria@nicks-MBP ~ %
Requirement already satisfied: future in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (0.18.2)
Requirement already satisfied: suds in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (0.4)
You are using pip version 18.1, however version 20.3.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
nicklacaria@nicks-MBP ~ %so i ran it and got this
nicklacaria@nicks-MBP ~ % pip install --upgrade pip
zsh: unknown file attribute: 0
zsh: unknown file attribute: 0
zsh: command not found: You
zsh: command not found: You
zsh: command not found: nicklacaria@nicks-MBP
nicklacaria@nicks-MBP ~ %
Updated by Tony Fuller over 2 years ago
That is so weird, especially the last command to upgrade pip throws strange command not found errors. I finally was able to get macOS in a virtual machine so I can help out with the incoming mac tickets.
Are you on the latest macOS called Monterey or an earlier version?
Tony
Updated by Nick Lacara over 2 years ago
Yes sir, Monterey 12.3
Also, it is not uploading to the Wouxun UV9D Plus- i can make the file but it will not write into the HT. I bought the Wouxun specific cable because i heard that was a problem, and because you guys have an awesome service and product, i want to keep everything in Chirp. I tried to download the file from Wouxun, but its .rar and i dont think it works on mac.
Updated by Nick Lacara over 2 years ago
Update on the Wouxun- when i download from the radio, it shows the new file in Chirp, but it does not match what is in the radio. very weird- is there any known issues with Wouxun?
Updated by Tony Fuller over 2 years ago
Hey Nick,
Just another thought on the Radio Reference issue (For the Wouxun issue you'll need to start another ticket/issue) since it really appears that both suds and future are installed correctly:
After you installed future and suds, did you close/quit the CHIRP app? The app needs to fully reload the python environment to pick up new packages. I can't believe I forgot to mention this. If the CHIRP icon still has the dot below it then it's still running and you'll need to right click the icon and choose "Quit"
Tony
Updated by Nick Lacara over 2 years ago
Update: i have it running, but if i close it, i have to install it all over again. It will not show up in application finder on the mac. Any thoughts on this? thx
Updated by Nick Lacara over 2 years ago
Hey Tony,
were you able to recreate any issues once you got MAc up and going? I still get prompts to update and frequent crashes. I have removed all old versions and updaters that were on the MAC. It seems that everytime i update, it creates a new numeric version of Chirp. For instance, i am on CHIRP 9, which is MAcs way of organizing multiple files of the same type and "ingredients".