Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
#nanovna-saver Linux software issue
#nanovna-saver
Greetings, struggling with the nanovna-saver software for linux mint 19.3 mate for over a week now.I am definitely not a linux guru by any means, more like a semi dummy.
following the instructions at github.com/mihtjel/nanovna-saver I believe i have all the dependence satisfied. When I run the pip installation python3.7 -m pip install . this the error baffling my poor head. Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-s_o_dw26/PyQt5/ Tried --upgrade pip etc. Formatted HD, re installed Linux 19.3 Mate I have tried everything I can think of. If anyone can point and old dummy like me in the right direction please don't be shy. Laptop is Gateway NV53 64 bit by the way. Thanks Jim KC2DHU |
I'm using 19.3 Cinnamon myself. If I remember correctly, I had to install a few dependencies first.
Try this first sudo apt install python3.7 python3-pip python3-distutils python3-setuptools python3-wheel then git clone cd nanovna-saver python3.7 -m pip install . Don't forget the space then . after install then python3.7 nanovna-saver.py Should open after that. Let me know where you get errors. Also I made a shortcut on my desktop to launch it. |
After you get it installed, you can make a shortcut by right clicking on the desktop and select "Create Launcher here"
I just called mine NanoVNA Saver and browsed for an unused system icon. The command for my system was python3.7 /home/andrew/nanovna-saver/nanovna-saver.py Procedure may be slightly different with Mate. Also of course your path will be different as well. As a side note, you can also install AntScope 2, the RigExpert software. It won't connect to the NanoVNA but you can open the saved files to play around with. You'll want the Ubuntu 18.04 version for Mint 19.3 -- Andrew Harmon - KD5RKO |
Jerry Ponko AC9NM
Jim,
toggle quoted message
Show quoted text
I use Linux Mint 19.2 Cinnamon on my Chromebook and I believe I had trouble running nanovna-saver because qtxcb was missing. Try installing it with "sudo apt install qt5dxcb-plugin" and see if that helps. Mint 19.3 won't run on my Chromebook (no video) but otherwise there shouldn't be too much difference between Mint 19.2 and 19.3 to cause trouble with nanovna-saver. Jerry AC9NM On 1/11/20 8:11 AM, Jim via Groups.Io wrote:
Greetings, struggling with the nanovna-saver software for linux mint 19.3 mate for over a week now.I am definitely not a linux guru by any means, more like a semi dummy. |
Hi Jim,
I had a similar issue on Debian 10 the other day. It seems like components of the Python environment are not automatically kept up to date when simply running apt-get. So after running: python3.7 -m pip install -U setuptools ... I also ran: pip3 install --upgrade setuptools wheel pip3 Which then prepared the environment so I could run the nanovna-saver installer. HTH Marcel VK2CEL |
I ran into this error ("python setup.py egg_info" failed with error code 1 in /tmp/pip-build....) also in Kubuntu 18.04. All known dependencies were met and the previous version had installed and ran as expected. The issue seems to be the installer was trying to write to /tmp as an ordinary user, which is not allowed. ~/tmp would have been a better choice, perhaps.
So I ran the install as sudo. It installed and seems to run OK in userspace, although I have not connected my NVNA to it yet. Whatever can of worms I may have opened by doing this I am sure I will find out later.... 73 -Jim NU0C On Sat, 11 Jan 2020 18:46:07 -0800 post.marcel@... wrote: Hi Jim, |
Interesting. I do not recall having to sudo the previous version. I'm not a programmer, but I'm wondering what changed? The instructions in README.md are the same.
73 -Jim NU0C On Sun, 12 Jan 2020 04:36:45 -0800 "Andrew Harmon" <andrew.harmon@...> wrote: Oh yeah, forgot the sudo step. I knew there was something else I had to do to make this work! |
I've ran into issues too with Ubuntu 18.04.3 LTS
All of the dependencies are present. Below is the results of the install. xx@000-OMEN-by-HP-Laptop::~/nanovna-saver$ python3.7 -m pip install . Processing /home/mm/nanovna-saver Collecting PyQt5 (from NanoVNASaver==0.2.2) Using cached Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.7/tokenize.py", line 447, in open buffer = _builtin_open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-x4up3i2u/PyQt5/setup.py' ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-x4up3i2u/PyQt5/ I've tried creating the tmp folder and manually moving setup.py . It really didn't make much difference. If any other information would be helpful, let me know. 73 Bob N8FAU |
Bob,
toggle quoted message
Show quoted text
have you tried running the software, rather than the install procedure? The install pulls in the dependencies - if you already have them installed, you can just run the program instead. ('python3.7 nanovna-saver.py' should work) -- Rune / 5Q5R On Sun, 19 Jan 2020 at 00:38, Robert Rogers <n8fau15@...> wrote:
I've ran into issues too with Ubuntu 18.04.3 LTS |
I tried just running the program as suggested in post #9840. Tried everything so far that been suggested. I do have it running in windows 7, but I just despise windows.
This is what I am seeing at this point. jim@jim-NV53:~/nanovna-saver$ python3.7 nanovna-saver.py Traceback (most recent call last): File "nanovna-saver.py", line 17, in <module> from NanoVNASaver.__main__ import main File "/home/jim/nanovna-saver/NanoVNASaver/__main__.py", line 21, in <module> from PyQt5 import QtWidgets, QtCore ImportError: cannot import name 'QtWidgets' from 'PyQt5' (/usr/lib/python3/dist-packages/PyQt5/__init__.py) Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook from apport.fileutils import likely_packaged, get_recent_crashes File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module> from apport.report import Report File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module> import apport.fileutils File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module> from apport.packaging_impl import impl as packaging File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module> import apt File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module> import apt_pkg ModuleNotFoundError: No module named 'apt_pkg' Original exception was: Traceback (most recent call last): File "nanovna-saver.py", line 17, in <module> from NanoVNASaver.__main__ import main File "/home/jim/nanovna-saver/NanoVNASaver/__main__.py", line 21, in <module> from PyQt5 import QtWidgets, QtCore ImportError: cannot import name 'QtWidgets' from 'PyQt5' (/usr/lib/python3/dist-packages/PyQt5/__init__.py) |
On Sun, Jan 19, 2020 at 04:06 AM, Rune Broberg wrote:
tried that (btw tnx) results below OMEN-by-HP-Laptop:~/nanovna-saver$ python3.7 nanovna-saver.py Traceback (most recent call last): File "nanovna-saver.py", line 17, in <module> from NanoVNASaver.__main__ import main File "/home/mm/nanovna-saver/NanoVNASaver/__main__.py", line 21, in <module> from PyQt5 import QtWidgets, QtCore ImportError: cannot import name 'QtWidgets' from 'PyQt5' (/usr/lib/python3/dist-packages/PyQt5/__init__.py) |
Rudy:
Tried that as well. Results below ------------------------------------------------------------------------------------------ -OMEN-by-HP-Laptop:~/nanovna-saver$ sudo python3.7 -m pip install . [sudo] password for mm: The directory '/home/mm/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/mm/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Processing /home/mm/nanovna-saver Collecting PyQt5 (from NanoVNASaver==0.2.2) Downloading (3.2MB) 100% |¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€| 3.2MB 232kB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.7/tokenize.py", line 447, in open buffer = _builtin_open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-a8hpixj_/PyQt5/setup.py' ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-a8hpixj_/PyQt5/ mm@bob-OMEN-by-HP-Laptop:~/nanovna-saver$ python3.7 -m pip install . Processing /home/mm/nanovna-saver Collecting PyQt5 (from NanoVNASaver==0.2.2) Using cached Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.7/tokenize.py", line 447, in open buffer = _builtin_open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-7clot2r6/PyQt5/setup.py' ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-7clot2r6/PyQt5/ ----------------------------------------------------------------------------------------------------------------------------------------------------- Before I forget tnx all for the help everyone 73 |
Hi Robert -
The answer will comeThis comment in your first message is a concern: Ubuntu 18.04.3 LTS surely has a tmp folder for updates...I've tried creating the tmp folder and manually moving setup.py . It really didn't make much difference. Linux distros generally have packaging schemes which typically do not use pip. To the extent possible, a distro user should use the same package manager to install python packages that was used to install python itself. If python were manually installed from e.g. a tarball, then the distro's package manager would not be implicated, and pip would be appropriate. Using pip can be compared to crossing wires: "In most cases, you should use pip within a virtual environment only." |
to navigate to use esc to dismiss