¿ªÔÆÌåÓý

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

NanoVNA-Saver Linux update procedure #tutorials


 

If you are updating your previously installed NanoVNA-Saver in Linux, the procedure is the same with one exception. If you try to do the gitclone, it will complain that the directory is not empty. So first I moved my current install to a different directory name then followed install steps as normal. Your existing launcher/shortcut will still work as directory structure is the same. Also you can still use the previous version if necessary by changing the path. I also have added a no cache option for pip to avoid the "directory not owned by current user" error.

sudo mv nanovna-saver nanovna-saver-2.1

then

git clone
cd nanovna-saver
sudo python3.7 -m pip --no-cache-dir install .
--
Andrew Harmon - KD5RKO


 

When I reloaded my Linux Mint XFCE 19.2 because of screen freezing up I
installed Mint XFCE 19.3 and after a reboot it decided that I should not
have administration rights over any USB drives. So I installed Mint Mate
19.3 (yes they are all really different) and I am having a hard time
getting nanoVNA-saver ver 2.2 to work at all. Some of The problems are
where python puts the code in the directory naming structure of Linux.
Your script has gotten me very close to success. Thank you.
I just have this one error :
Python setup.py egg info failed with code 1 in
/temp/pip-build-xzpflql/PyQt5/

I am getting to dislike PyQt5 as it causes a lot of errors.

At this time I have no fix and nanoVNA-saver 2.2 will not run on any of
the above mentioned Linux distributions. But when it ran it ran circles
around and with the nanovna. So much fun.

Thanks for all of your help.
NE7LS

On Sun, Jan 12, 2020, 2:10 PM Andrew Harmon <andrew.harmon@...> wrote:

If you are updating your previously installed NanoVNA-Saver in Linux, the
procedure is the same with one exception. If you try to do the gitclone, it
will complain that the directory is not empty. So first I moved my current
install to a different directory name then followed install steps as
normal. Your existing launcher/shortcut will still work as directory
structure is the same. Also you can still use the previous version if
necessary by changing the path. I also have added a no cache option for pip
to avoid the "directory not owned by current user" error.

sudo mv nanovna-saver nanovna-saver-2.1

then

git clone
cd nanovna-saver
sudo python3.7 -m pip --no-cache-dir install .
--
Andrew Harmon - KD5RKO




 

On 1/12/20 2:38 PM, Nels Nelsen wrote:
I just have this one error :
Python setup.py egg info failed with code 1 in
/temp/pip-build-xzpflql/PyQt5/

???? That might be the same error message I got when I installed the latest Nanovna-saver yesterday.? The program still starts, but I haven't tried actually connecting to the NVNA.


 

Hi Jim I don't see where my program starts. But it does (is it compile?) Go
thru the process of trying to get there.
I was wondering if I loaded a Python IDE and tried to get the program to
run from there if I would have a closer look at the problem. There are a
whole lot of tools to use in the world of Linux maybe I could put one to
use. I think it would take a whole lot of videos on YouTube to get me up to
speed.!.

Nels

On Sun, Jan 12, 2020, 4:09 PM Jim Allyn - N7JA <jim@...>
wrote:

On 1/12/20 2:38 PM, Nels Nelsen wrote:
I just have this one error :
Python setup.py egg info failed with code 1 in
/temp/pip-build-xzpflql/PyQt5/

That might be the same error message I got when I installed the
latest Nanovna-saver yesterday. The program still starts, but I haven't
tried actually connecting to the NVNA.




 

On 1/12/20 5:05 PM, Nels Nelsen wrote:
Hi Jim I don't see where my program starts.

???? I haven't yet created a shortcut on the desktop or in the Menu for nanovna-saver.? So, I open a terminal in my home directory, then enter these commands:

cd nanovna-saver

?????? followed by:

python3.7 nanovna-saver.py


???? And away it goes!???? That do it for you?


 

For updating the software, it should be sufficient to just type "git pull"
in the nanovna-saver directory. This updates all the files - and the only
reason for the install command is to fetch the dependencies.

I don't run the software on Linux, and I choose to prioritize developing it
further over getting it running on multiple platforms - sorry. :-)

--
Rune / 5Q5R

On Sun, 12 Jan 2020 at 23:10, Andrew Harmon <andrew.harmon@...> wrote:

If you are updating your previously installed NanoVNA-Saver in Linux, the
procedure is the same with one exception. If you try to do the gitclone, it
will complain that the directory is not empty. So first I moved my current
install to a different directory name then followed install steps as
normal. Your existing launcher/shortcut will still work as directory
structure is the same. Also you can still use the previous version if
necessary by changing the path. I also have added a no cache option for pip
to avoid the "directory not owned by current user" error.

sudo mv nanovna-saver nanovna-saver-2.1

then

git clone
cd nanovna-saver
sudo python3.7 -m pip --no-cache-dir install .
--
Andrew Harmon - KD5RKO




 

========================
I tried to install nanovna-saver, the "post Christmas" release, under Linux Debian Buster, following the suggestions given in this forum in previous messages, but to no avail...
This is the error message that I get :

==================

adb@debian:~/nanovna-saver$ sudo python3.7 -m pip --no-cache-dir install .
Processing /home/adb/nanovna-saver
Collecting PyQt5 (from NanoVNASaver==0.2.2)
? Downloading (3.2MB)
??? 100% |¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€| 3.2MB 4.9MB/s
? Installing build dependencies ... done
??? 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-install-8dms8p33/PyQt5/setup.py'

??? ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-8dms8p33/PyQt5/

==================

I am far from being a Linux expert, so am in bad need of suggestions and advice...

Thanks

--
/*73 Alberto I2PHD*
<<< >>>/


Pierre Martel
 

I am having the exact same problem. What windows manager are you using?
On my side I use Xcfe.

Le lun. 13 janv. 2020 ¨¤ 11:24, Alberto I2PHD <i2phd@...> a ¨¦crit :

========================
I tried to install nanovna-saver, the "post Christmas" release, under Linux Debian Buster, following the suggestions
given in this forum in previous messages, but to no avail...
This is the error message that I get :

==================

adb@debian:~/nanovna-saver$ sudo python3.7 -m pip --no-cache-dir install .
Processing /home/adb/nanovna-saver
Collecting PyQt5 (from NanoVNASaver==0.2.2)
Downloading

(3.2MB)
100% |¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€| 3.2MB 4.9MB/s
Installing build dependencies ... done
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-install-8dms8p33/PyQt5/setup.py'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-8dms8p33/PyQt5/

==================

I am far from being a Linux expert, so am in bad need of suggestions and advice...

Thanks

--
/*73 Alberto I2PHD*
<<< >>>/




 

Hi,

On Mon, Jan 13, 2020 at 5:24 PM Alberto I2PHD <i2phd@...> wrote:

adb@debian:~/nanovna-saver$ sudo python3.7 -m pip --no-cache-dir install .
Processing /home/adb/nanovna-saver
Collecting PyQt5 (from NanoVNASaver==0.2.2)
Downloading


(3.2MB)
100% |¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€| 3.2MB 4.9MB/s
Installing build dependencies ... done
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-install-8dms8p33/PyQt5/setup.py'
I had the exact same error a few hours ago when doing the update on Debian
Buster as i forgot to update the dependencies as root (forgot the sudo).
Running it as sudo worked fine. I didn't use the --no-cache-dir option.

The strange thing is that you get this error running it with sudo. I can
reproduce the same error now running it without sudo, with and without
--no-cache-dir. In both cases it works fine with sudo.

Maybe you have some strange permissions on /tmp ?

73 de Martin HB9FXX

--
QrssPiG, a QRSS grabber for your Pi:

¡°The best surfer out there is the one having the most fun¡± -- Duke
Kahanamoku


 

The strange thing is that you get this error running it with sudo. I can
reproduce the same error now running it without sudo, with and without
--no-cache-dir. In both cases it works fine with sudo.

Maybe you have some strange permissions on /tmp ?
Debian Buster with KDE was installed just a few days ago, and certainly I did not play with the permissions of /tmp.
And the error message seems to indicate not an access problem, but simply a file not found error...
Tried with and without sudo, but same behavior....
I bet the problem is in some changes of directories structure between different releases of the distribution, a frequent error that plagues Linux ...

Alberto


Pierre Martel
 

The worst part of this is that pip do create files in the /tmp
directory I have seen it. but when it comes to PyQt5 there is a bug.

Also, when we download the PyQt5-5.14.1 compresed file it does not
contain a setup.py file. Unless it is in the pip process to create it
wich I have no idea. If so, the problem seem to be the source of the
PyQt5-5.14.1

Le lun. 13 janv. 2020 ¨¤ 12:28, Alberto I2PHD <i2phd@...> a ¨¦crit :

The strange thing is that you get this error running it with sudo. I can
reproduce the same error now running it without sudo, with and without
--no-cache-dir. In both cases it works fine with sudo.

Maybe you have some strange permissions on /tmp ?
Debian Buster with KDE was installed just a few days ago, and certainly I did not play with the permissions of /tmp.
And the error message seems to indicate not an access problem, but simply a file not found error...
Tried with and without sudo, but same behavior....
I bet the problem is in some changes of directories structure between different releases of the distribution, a frequent error that plagues Linux ...

Alberto



 

Rune,

You shouldn't have to necessarily run the program on Linux. We Linux users can do that for you. As long as you don't use some function in Python that is a Windows Only function, there shouldn't be too much problems debugging the program. Python should be able to handle the differences between Windows, Linux and Mac as long as you aren't trying to tap some special feature of Windows. It might also help if you listed a set of dependencies required by the program and the version of Python you're using.

I myself use Linux as my production PC. I haven't found anything I can't do on Linux that must be done on Windows except for some Windows Only applications which are not cross platform. With Microsoft sunsetting support of Windows 7 today (1/14), I suspect there will be many more converts to Linux given that there are millions of Windows PC's out there still in use.

With your insight into the program, just help us interpret the error messages and we'll debug the program. A great program even if I do have to run it on Windows for a while.

BruceN / K4TQL

--
*"To invent, you need a good imagination and a pile of junk"* -- Thomas Alva Edison (1847-1931)


 

Using Linux Mint 19.3 amd64 here.

Built 0.2.2alpha successfully on 15.12.19 using the instructions here...



Upgraded LM19.2 to LM19.3 on 19.12.19.

Now all versions 0.2.2 going back to 0.1.5 will not build with the same errors as reported in this thread i.e.

$ python3.7 -m pip install .
Processing /home/nick/nanovna-saver-0.2.2
Collecting PyQt5 (from NanoVNASaver==0.2.2)
Using cached
...
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-danvcfgl/PyQt5/setup.py'
...
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-danvcfgl/PyQt5/setup.py'

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

Note that there are 2 errors. The first error can be produced by...

$ pip3 install PyQt5
Collecting PyQt5
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.6/tokenize.py", line 452, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-zdfcvwzx/PyQt5/setup.py'

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

It seems to me...

- this is not a nanovna-saver problem
- something may have changed in PyQt5 since 15.12.19
- the upgrade from LM19.2 to LM19.3 may have broken something in the python3.7 installation.

However if I just do this into a clean directory...

$ git clone
$ python3.7 ./nanovna-saver/nanovna-saver.py

then nanovna-saver runs fine, with no "python3.7 -m pip install ."


 

On Tue, Jan 14, 2020 at 7:04 PM Nick <g3vnc@...> wrote:

$ python3.7 -m pip install .
in your case try
$ sudo python3.7 -m pip install .

/Martin
--
QrssPiG, a QRSS grabber for your Pi:

¡°The best surfer out there is the one having the most fun¡± -- Duke
Kahanamoku


 

This seemed to work for me...

$ sudo python3.7 -m pip --no-cache-dir install .
Processing /home/nick/nanovna-saver-0.2.2
Requirement already satisfied: PyQt5 in /home/nick/.local/lib/python3.7/site-packages (from NanoVNASaver==0.2.2)
Requirement already satisfied: numpy in /home/nick/.local/lib/python3.7/site-packages (from NanoVNASaver==0.2.2)
Requirement already satisfied: pyserial in /home/nick/.local/lib/python3.7/site-packages (from NanoVNASaver==0.2.2)
Requirement already satisfied: scipy in /home/nick/.local/lib/python3.7/site-packages (from NanoVNASaver==0.2.2)
Requirement already satisfied: PyQt5_sip<13,>=4.19.19 in /home/nick/.local/lib/python3.7/site-packages (from PyQt5->NanoVNASaver==0.2.2)
Installing collected packages: NanoVNASaver
Found existing installation: NanoVNASaver 0.1.4
Uninstalling NanoVNASaver-0.1.4:
Successfully uninstalled NanoVNASaver-0.1.4
Running setup.py install for NanoVNASaver ... done
Successfully installed NanoVNASaver-0.2.2

To test properly I would need to uninstall all 5 dependencies.

It would be nice to understand what is going on here before I do that.


 

On 1/14/20 11:43 AM, Nick wrote:
To test properly I would need to uninstall all 5 dependencies.

It would be nice to understand what is going on here before I do that.


I often do a fresh install in VirtualBox for things like that.


 

OH I did not see you asked me a question,
Sorry, no it did no work for me,
I tried that and it did not start, ha, you woke me up.
Thanks
Nels

On Sun, Jan 12, 2020 at 10:35 PM Jim Allyn - N7JA <jim@...>
wrote:

On 1/12/20 5:05 PM, Nels Nelsen wrote:
Hi Jim I don't see where my program starts.

I haven't yet created a shortcut on the desktop or in the Menu for
nanovna-saver. So, I open a terminal in my home directory, then enter
these commands:

cd nanovna-saver

followed by:

python3.7 nanovna-saver.py


And away it goes! That do it for you?



--




n_n


 

Nick wrote:
Using Linux Mint 19.3 amd64 here.
Built 0.2.2alpha successfully on 15.12.19 using the instructions here...

Upgraded LM19.2 to LM19.3 on 19.12.19.
Now all versions 0.2.2 going back to 0.1.5 will not build with the same errors as reported in this thread i.e.
$ python3.7 -m pip install .
....
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-danvcfgl/PyQt5/
Has anyone just done a web search for this error? And from that search, has anyone tried

pip install --upgrade setuptools

??

Several results for this error have pointed to this being the solution. I cannot seem to find (lack of time to spend diving into the archives, so my fault if this has been brought up already) any reference to this solution being offered. Maybe give it a try and see?

--
wes will
n9kdy


 

In thinking about some of the responses here, perhaps a better approach would be to check your distro's package manager for PyQt5. It may be already on your system, or available for install. If so, install it from the package manager and just pull down the nanovna-saver repository and see if it will run.

73

-Jim
NU0C

On Tue, 14 Jan 2020 22:14:26 -0600
"N9KDY" <n9kdy@...> wrote:

Nick wrote:
Using Linux Mint 19.3 amd64 here.

Built 0.2.2alpha successfully on 15.12.19 using the instructions here...



Upgraded LM19.2 to LM19.3 on 19.12.19.

Now all versions 0.2.2 going back to 0.1.5 will not build with the same errors as reported in this thread i.e.

$ python3.7 -m pip install .
....
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-danvcfgl/PyQt5/
Has anyone just done a web search for this error? And from that search,
has anyone tried

pip install --upgrade setuptools

??

Several results for this error have pointed to this being the solution.
I cannot seem to find (lack of time to spend diving into the archives,
so my fault if this has been brought up already) any reference to this
solution being offered. Maybe give it a try and see?

--
wes will
n9kdy



Pierre Martel
 

---------------------------------------------------------------
Has anyone just done a web search for this error? And from that search,
has anyone tried

pip install --upgrade setuptools
-----------------------------------------------------------------

Yes I did still same problem

Le mar. 14 janv. 2020 ¨¤ 23:14, N9KDY <n9kdy@...> a ¨¦crit :

Nick wrote:
Using Linux Mint 19.3 amd64 here.

Built 0.2.2alpha successfully on 15.12.19 using the instructions here...



Upgraded LM19.2 to LM19.3 on 19.12.19.

Now all versions 0.2.2 going back to 0.1.5 will not build with the same errors as reported in this thread i.e.

$ python3.7 -m pip install .
....
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-danvcfgl/PyQt5/
Has anyone just done a web search for this error? And from that search,
has anyone tried

pip install --upgrade setuptools

??

Several results for this error have pointed to this being the solution.
I cannot seem to find (lack of time to spend diving into the archives,
so my fault if this has been brought up already) any reference to this
solution being offered. Maybe give it a try and see?

--
wes will
n9kdy