ΏͺΤΖΜεΣύ

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Re : NanoVNA-Saver Linux update procedure


 

Hi Nick

I've had a few battles on this pc with python and the pip installer so there are probably all sorts of python fragments and debris floating around the hard drive. Still it's probably worth the pain as python does useful things like click the computer SDR waterfall for hf transceiver tuning and now it reads the little VNA.

To answer your question about pip3:

den@den-ThinkPad-T520 ~ $ pip3 --version
pip 19.3.1 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)

den@den-ThinkPad-T520 ~ $ which pip3
/usr/local/bin/pip3

As for installing the later version of pip3 I started here....

den@den-ThinkPad-T520 ~ $ sudo apt install python3.7 python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pip is already the newest version (9.0.1-2.3~ubuntu1.18.04.1).
python3.7 is already the newest version (3.7.5-2~18.04).
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.

.....and then upgraded as follows.....

den@den-ThinkPad-T520 ~ $ sudo pip3 install --upgrade pip setuptools wheel
The directory '/home/den/.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/den/.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.
Collecting pip
Downloading (1.4MB)
100% |¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€| 1.4MB 1.1MB/s
Collecting setuptools
Downloading (583kB)
100% |¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€| 593kB 2.1MB/s
Collecting wheel
Downloading
Installing collected packages: pip, setuptools, wheel
Found existing installation: pip 19.0.1
Uninstalling pip-19.0.1:
Successfully uninstalled pip-19.0.1
Found existing installation: setuptools 40.6.3
Uninstalling setuptools-40.6.3:
Successfully uninstalled setuptools-40.6.3
Found existing installation: wheel 0.32.3
Uninstalling wheel-0.32.3:
Successfully uninstalled wheel-0.32.3
Successfully installed pip-19.3.1 setuptools-45.0.0 wheel-0.33.6

.....but to no avail.....

den@den-ThinkPad-T520 ~/nanovna-saver $ sudo python3.7 -m pip install .
The directory '/home/den/.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/den/.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/den/nanovna-saver
Collecting PyQt5 (from NanoVNASaver==0.2.2)
Downloading (3.2MB)
100% |¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€| 3.2MB 350kB/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-qlj3vnhp/PyQt5/setup.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 "<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-qlj3vnhp/PyQt5/setup.py'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-qlj3vnhp/PyQt5/

Using sudo with above commands did not help

Thanks again for the hack

73 Denis EI6IF

Join [email protected] to automatically receive all group messages.