-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: ns-0.6.3 can't install on Ubuntu 22.04 #682
Comments
Sounds like you're missing the Qt6 libraries. Can you try installing them: |
I've been trying off and on for several days to get the code running. Any hints would be appreciated. I have been using Python + pyenv for several years, but not PyScaffold. It is now installed. I then git clone'd the current version of the code. The web pages say that Python >= 3.8 is needed, however, when trying 3.8.1 it ran into "Type" errors, so I installed 3.9.18. Note that I've tried the following by creating a pyenv virtual environment (called nanovna-saver, with python version 3.9.18), and separately (when the former repeatedly failed), using python -m venv venv. Both appeared to work with the next step, python setup -r requirements.txt. This installed PyQt6, updated the scmtools, etc., At this point, various websites indicated that it should be possible to then run nanovna-saver from this (the base of the cloned git tree. Note, the various .gitxxx files and folders exist and are populated). (NO references found to "build" the software on those pages or in the documents retrieved as part of the git clone). Attempting "python nanovna-saver" fails with the following: Traceback (most recent call last): Reviewing the setup.py file it indicated a "build" option is available. Running python setup.py build created and populated a build directory. However, re-trying python nanovna-saver from the base of the git clone still fails (as above), and cd'ing into build/lib/NanoVNASaver and attempting to run with python NanoVNASaver.py also fails, with: Traceback (most recent call last): Again, I've tried all of the above (several times) using both pyenv and python -m virtual environments, and checking the shims, etc. it appears all the required packages are installed and at the proper version level (for python 3.9.18). At this point, I suspect I'm missing a step, or that there is something about PyScaffold that has to be initialized or otherwise setup, or that a much newer version of python is required but the config and/or requirements tests for python >=3.8 need updating, but I haven't been able to find build-from-source instructions. If somebody can spot what I'm doing wrong, I would appreciate it. |
Update to my post above. I've now tried removing python 3.8.1 and 3.9.18 (since "Type" errors seem to indicate a code problem, not a configuration problem). While going through the code, I also noticed functions passing "unioned" arguments do not work (and, the "|" operator should perhaps be replaced with "Union" (uppercase) instead. I haven't tried this yet. When flushing prior attempted python versions, I've also removed the items listed in the requirements.txt from previous attempts just as a belt-and-suspenders way to avert conflicts. Steps attempted so far, in various flavors of virtual environments (python -m, pyenv) too, are:
All of this fiddling around has done something else: it has broken NanoVNASaver version 0.5.5. I hate to ask, it's probably something that I've done wrong, but is the current code actually usable? Could somebody post a specific set of commands that will result in a successful build? Could that be added to the README too? |
RJordans, I followed the links to your (0.5.4) version of nanovna-saver, git-cloned it, ran the python -m venv venv, activated it with source venv/bin/activate, ran pip install -r requirements.txt, and was immediately able to run your older version (based on PyQt5, etc.). This is the way I would have expected the current code to build (but as evidenced by all the attempts listed above, it doesn't). So I'm at a loss (we won't count the db ;-) as to what's wrong. Were you able to get the current PyQt6 code to build and run (I notice from git that you're ahead by a few commits and well behind on others. But you also recognized the potential problem with PyQt6 installation in a previous post.) |
Bug Report
NanoVNA-Saver version: 0.6.3
commit: d3216d2 (I think)
Current behavior:
Trying to follow installation instruction in docs/INSTALLTION.md "Running on Linux without installation." Get error:
Expected behavior:
Expected installation.
Other information:
The text was updated successfully, but these errors were encountered: