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 on Linux Mint 19.3
It came to me that this needed a thread of its own, so...
I decided to put the Python version of NanoVNA-Saver on a fresh install of Linux Mint 19.3 (Cinnamon) and use the directions at: /g/nanovna-users/files/NanoVNA%20PC%20Software/NanoVNA-Saver/nvna-s-pve-rev-c.pdf All went fine until I hit Step 7. I get the error message: ========== ?? % Total?????? % Received % Xferd?? Average Speed???? Time?????? Time Time?? Current ???????????????????????????????????????????????????????????????? Dload?? Upload???? Total???? Spent Left?? Speed 100 1840k?? 100 1840k?????? 0???????? 0???? 123k?????????? 0?? 0:00:14?? 0:00:14 --:--:--?? 109k Traceback (most recent call last): ?? File "<stdin>", line 23677, in <module> ?? File "<stdin>", line 198, in main ?? File "<stdin>", line 82, in bootstrap ?? File "/tmp/tmpxeq7yd42/pip.zip/pip/_internal/cli/main.py", line 10, in <module> ?? File "/tmp/tmpxeq7yd42/pip.zip/pip/_internal/cli/autocompletion.py", line 9, in <module> ?? File "/tmp/tmpxeq7yd42/pip.zip/pip/_internal/cli/main_parser.py", line 7, in <module> ?? File "/tmp/tmpxeq7yd42/pip.zip/pip/_internal/cli/cmdoptions.py", line 18, in <module> ModuleNotFoundError: No module named 'distutils.util' ========== I tried the steps 1-6 several times (in case I missed something or had a typo), but Step 7 always gives this result. I don't know enough about Python to even understand the error messages, and I'm hoping someone with more knowledge and experience can point me in the right direction. Take Care & 73 de KC6UFM Charles |
Hello Charles
Reading the document it's not clear that at step 7 the command (nvna-s2) nick@LM19-3:~/.venv/nvna-s2$ curl | python should all be on one line. But I don't think that's the problem. Your error message looks like you cannot access the server? I just tested step 7; here's what I get... (nvna-s4) nick@LM19-3:~/.venv/nvna-s4$ curl | python % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1840k 100 1840k 0 0 1063k 0 0:00:01 0:00:01 --:--:-- 1063k Collecting pip Downloading pip-20.2-py2.py3-none-any.whl (1.5 MB) |¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€¨€| 1.5 MB 596 kB/s Collecting setuptools Using cached setuptools-49.2.0-py3-none-any.whl (789 kB) Collecting wheel Using cached wheel-0.34.2-py2.py3-none-any.whl (26 kB) Installing collected packages: pip, setuptools, wheel Successfully installed pip-20.2 setuptools-49.2.0 wheel-0.34.2 (nvna-s4) nick@LM19-3:~/.venv/nvna-s4$ pip3 -V pip 20.2 from /home/nick/.venv/nvna-s4/lib/python3.7/site-packages/pip (python 3.7) (nvna-s4) nick@LM19-3:~/.venv/nvna-s4$ Can you reach via a web browser? It should look like this... Index of / ../ 2.6/ 21-Feb-2019 18:06 - 3.2/ 21-Feb-2019 18:06 - 3.3/ 21-Feb-2019 18:06 - 3.4/ 07-Oct-2019 18:17 - virtualenv/ 31-Jul-2020 17:45 - bootstrap-buildout.py 21-Feb-2019 18:06 7458 ez_setup.py 21-Feb-2019 18:06 12537 get-pip.py 29-Jul-2020 03:30 1884621 virtualenv.pyz 31-Jul-2020 17:45 6801027 What platform are you using? 73 Nick |
I did the same also on Mint 19.3 (64 bit) and it worked just fine, just a
couple of days ago. However, part way through the instructions, the example command line prompt changes to a single '$' without the pve path prefix. Keep the pve path/folder prefix, when doing those later commands. Use copy/paste too. It prevents typos. But, if like me, you may have messed things up, delete the pve path/folder and all its contents and start over 'clean' again. Check that you have a working internet connection too. Flakey WiFi won't cut the mustard, use a proper cabled connection if you can. I've also installed it the "regular" way on another mint 29.3 box, where some minor hacking was needed. As a result, I much prefer the Python Virtual Environment method, and the ease of use, once there is a desktop launcher for the resulting executable. 73. Dave G8KBV |
Hello, Nick:
When the issue came up, I started doing cut/paste from your PDF to make sure I wasn't making a typo or adding extra lines. Same results. I tried Firefox, Chrome, and Chromium browsers and all can reach/read the bootstrap server. I rolled back everything, removing the Python 3.7, Python 3.7-venv, and GIT (using apt purge), deleting all the directories and their contents. I still get the following when I try Step 7: ===== (nvna-s) charles@MAE0001:~/.venv/nvna-s$ curl | python ? % Total??? % Received % Xferd? Average Speed?? Time??? Time Time? Current ???????????????????????????????? Dload? Upload?? Total?? Spent Left? Speed 100 1840k? 100 1840k??? 0???? 0??? 99k????? 0? 0:00:18? 0:00:18 --:--:--? 107k Traceback (most recent call last): ? File "<stdin>", line 23677, in <module> ? File "<stdin>", line 198, in main ? File "<stdin>", line 82, in bootstrap ? File "/tmp/tmplw54jwx2/pip.zip/pip/_internal/cli/main.py", line 10, in <module> ? File "/tmp/tmplw54jwx2/pip.zip/pip/_internal/cli/autocompletion.py", line 9, in <module> ? File "/tmp/tmplw54jwx2/pip.zip/pip/_internal/cli/main_parser.py", line 7, in <module> ? File "/tmp/tmplw54jwx2/pip.zip/pip/_internal/cli/cmdoptions.py", line 18, in <module> ModuleNotFoundError: No module named 'distutils.util' (nvna-s) charles@MAE0001:~/.venv/nvna-s$ ===== I noted that my total received data is 1840k, the same as your test earlier, but both are different from the PDF (1734k). I doubt that matters. I'm running Linux Mint 19.3 (all updates applied) for amd64 with an AMD FX-8320E CPU, 24G RAM. Thanks so much for your help! Take Care & 73 de KC6UFM Charles On 8/1/20 8:47 AM, Nick wrote: Hello Charles<snip> |
On 8/1/20 6:16 PM, Charles Albert wrote:
Hello, Nick: If all you're trying to do is get a python3 environment, I might suggest trying to install Anaconda. It brings in all the stuff you might need (python numpy matplotlib, etc.). You might need to separately bring in pyserial. |
Charles,
it looks as if you are missing a bit of Python infrastructure. *Distutils* is now generally incorporated within *setuptools*, and should be included when you install *pip* in to *Python 3*. It may seem odd, but it looks as if without a version of pip already installed, the new version of pip can not be installed (see below). The document /g/nanovna-users/files/Nano%20VNA%20Saver/nanoVNA-H4%20software%20support%20under%20Ubuntu.pdf, which I authored, has an extra item when Python 3.7 is installed: sudo apt install python3.7**python3-pipThat version of Pip includes versions for Python versions 3.6, 3.7, & 3.8. The version for Python 3.7 would be overwritten by the procedure that is failing on your machine. Package python3-pip has python3-distutils as a resultant dependency. Distutils allows Python source code to be handled correctly when compiling new modules, which would seem to be the case here. [The alternative procedure has been tested on an Ubuntu 18.04 machine, but is very similar to the procedure that you are attempting, with that one significant difference. Mint 19 is based on Ubuntu 18.04 LTS.] HTH, Stay Safe, Robin, G8DQX PS: I've now learnt something deeper about Python and pip, for which many thanks. On 02/08/2020 02:16, Charles Albert wrote: Hello, Nick: |
Hello, Robin...
toggle quoted message
Show quoted text
Well, that explains why/how my (more or less) random try to fix actually worked. Maybe this info should be included in the referenced PDF procedure to get NanoVNA-Saver to work under 19.3? Thanks for your input! On 8/2/20 5:43 PM, G8DQX list wrote:
Charles, |
to navigate to use esc to dismiss