-
Notifications
You must be signed in to change notification settings - Fork 10
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
Unable to install dependencies on Ubuntu (PEP 668 error) #44
Comments
I just want to add that it's a fresh installation on Ubuntu 24.04.1 LTS, so I might be missing some packages. |
Not gonna lie. I have no idea what you did or need to do to fix it. That said, I've had problems using pip (or pip3) in the past as python versions change. pip tends to want to install packages into only the currently used version. So when the version changes to say, 12 to 13 anything new goes into 13, while 12 is left holding the bag. Looks like you may be running 12. What I would recommend is to just manually install each package listed in requirements.txt using something like dnf or apt (which the error recommends), which tends to install across all installed versions of python. The downside is that you may have to search for the correct package nomenclature, as they change from distribution to distribution: For example, my Fedora packages may be named differently that your Ubuntu ones. |
You said that you use Fedora? Please list all the packages that you installed before you compiled this program. Maybe I'm missing something. I'm trying a different Ubuntu but I'm seeing new errors, like meson isn't found, libcario.... etc. I've tried pip and pip3 and managed to get this far.... rob@rob-Aspire-A315-41:~/nrsc5-dui$ sudo pip3 install -r ~/nrsc5-dui/requirements.txt × Preparing metadata (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. |
Whoops! Did not mean to close this. I think it's reopened now. |
First Python isn't compiled, it's interpretive. Second, everything it needs is listed in requirements.txt. Third, I've already told you that pip is unreliable. Please use apt install. Other than this, I don't know how to help you. |
Okay, thanks. I'm going to move to Fedora and see if I have any luck there. rob@rob-Aspire-A315-41:~/nrsc5-dui$ python3 nrsc5-dui.py |
PIL is pillow. You didn't install v11, even though it was on the list. Why do you think just swapping around linux distros will solve your problem instead of simply reading and following instructions? |
Hi, so I've successfully compiled NRSC5-DUI on Fedora. I haven't tested Ubuntu... yet. Will try that later in a virtual machine. |
Again, NRSC5-DUI doesn't compile. It's a Python script. Have just realised that there are several problems with running under Python v3.13. Some of the dependencies aren't ready for it yet, namely dateutil. Until dateutil (and others) are properly built for 3.13, recommend running no later version than Python 3.12. If it's working under Fedora, there's no need to test under Ubuntu (under a VM or otherwise) as I'm certain there are mismatched dependencies there. I'd also prefer you did not test anything under a VM, because nrsc5 itself requires real-time USB interfacing that can (and usually will) be interrupted when running under a VM. Bottom line: it won't work correctly. |
How the heck do you install the dependencies? I do pip install -r <path_to requirements.txt> as stated but I keep getting the PEP 668 error.
I've installed the Python3-full package
The text was updated successfully, but these errors were encountered: