-
Notifications
You must be signed in to change notification settings - Fork 857
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
Invalid .whl name compiling inside a python virtual (venv) environment #959
Comments
Can you provide steps (creating the virtual environment, building, ...) to reproduce this? I have not tested this in a virtual environment before, so this may indeed cause the problem. |
I can reproduce this with the following steps: # create and active a virtual environment
python3 -m venv pangovenv
source pangovenv/bin/activate
# build and install the pypangolin wheel file
git clone https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
cmake -B build
cmake --build build -t pypangolin_pip_install This shows me that Python is correctly found inside the virtual environment:
and that the
but the wheel file indeed has no name (
|
The snippet that generated the wheel name fails with:
After a: pip install wheel the wheel file name should be correct. |
Yes, the steps that you took were exactly the same as I did, and I also saw python being correctly found etc. |
Can you provide more details which OS and Python version you are using? Which versions of |
I'm using:
AHH!! You had already diagnosed this 100% correctly. I apologise, my mistake. I had installed wheel outside of venv. It now compiles/installs and runs the "PythonExamples" fine Again apologies. |
Hi
I had previously tried to compile Pangolin inside a system environment, and, as I was not using a venv, (as is now required), I chose to force the pip install using "--break-system-packages". This compiled and installed fine, and I could run the examples. Unfortunately, as may have been expected, I broke my system packages. and thus had to remove the Pangolin elements.
I have now tried to compile Pangolin inside a venv, and the wheel is not being correctly created. (This is the latest Pangolin from github with the Python_EXECUTABLE swapped for Python3_EXECUTABLE changes)
This is on a raspberry pi4 running Bookworm. In order to keep things simple: This a 100% fresh sdcard install with no other software on the card with all OS updates included.
These were my commands:
git clone --recursive https://github.com/stevenlovegrove/Pangolin.git cd Pangolin ./scripts/install_prerequisites.sh recommended cmake -B build cmake --build build -t pypangolin_pip_install
This runs without any errors until the final python .whl install (The .whl has an empty name) Output is as below
I am assuming that the switch to a venv has caused this, but I am unsure
The text was updated successfully, but these errors were encountered: