Professional Documents
Culture Documents
INTRODUCTION
PROBLEM
----------------------------------------
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)
1 https://www.riverbankcomputing.com/static/Docs/PyQt5/installation.html
2 https://github.com/mihtjel/nanovna-saver
/home/nick/projects/nanovna/python/nvna-s-pve-rev-d.odt Page 1 of 6
Using cached
https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a
63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz
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/
------------------------------------------------------------------
ANALYSIS
$ pip3 -V
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
- the latest version of PyQt5 that pip 9.0.1 will install cleanly
is PyQt 5.13.2 (dated 03.11.19).
Whatever the somewhat misleading pip error messages might say, the
underlying problem is that the version of pip installed by...
WORKAROUNDS
/home/nick/projects/nanovna/python/nvna-s-pve-rev-d.odt Page 2 of 6
All these workarounds represent a compromise, to some extent.
A FIX
The following steps may look daunting, but having done it once you
will be hooked on PVEs!
STEPS
1. Install python3.7
2. Install python3.7-venv
3. Install git
$ mkdir ~/.venv
$ cd ~/.venv
$ python3.7 -m venv nvna-s --without-pip
$ source ~/.venv/nvna-s/bin/activate
3 https://docs.python.org/3.7/tutorial/venv.html
/home/nick/projects/nanovna/python/nvna-s-pve-rev-d.odt Page 3 of 6
Notice how the command prompt is now prefixed with the name of the
PVE e.g.
(nvna-s) nick@LM19-3:~/.venv$
$ cd ~/.venv/nvna-s
8. Clone nanovna-saver
/home/nick/projects/nanovna/python/nvna-s-pve-rev-d.odt Page 4 of 6
9. Install dependencies and build
$ cd ~/.venv/nvna-s/nanovna-saver
$ python3.7 ./nanovna-saver.py
NanoVNASaver 0.3.8
/home/nick/projects/nanovna/python/nvna-s-pve-rev-d.odt Page 5 of 6
This program comes with ABSOLUTELY NO WARRANTY
This program is licensed under the GNU General Public License
version 3
Settings: /home/nick/.config/NanoVNASaver/NanoVNASaver.ini
$ deactivate
$ cd
You should not get any error messages during the creation of the
PVE, installation of nanovna-saver or at run time.
#!/bin/bash
# start-nvna-s.sh
cd
source ~/.venv/nvna-s/bin/activate
python3.7 ./.venv/nvna-s/nanovna-saver/nanovna-saver.py
deactivate
$ chmod +x ./start-nvna-s.sh
To run nanovna-saver...
$ ~/start-nvna-s.sh
73
Nick
G3VNC
/home/nick/projects/nanovna/python/nvna-s-pve-rev-d.odt Page 6 of 6