-
-
Notifications
You must be signed in to change notification settings - Fork 647
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
framework espidf not finding python module pip #1525
Comments
ok, so I dug a bit deeper and I found the file
I changed it (by hand) to:
now it works :D, although I'm not sure if this is still a problem with platformio or my setup, so I will leave the bug open for now, maybe someone more involved knows whats up. |
Hi @db4rne, I've just tried to reproduce the issue on a fresh Arch Linux machine and everything worked as expected. What's also strange is that in your case the script complains that the |
Hi, I have two: python 3 (3.13.1) and 2.7. /usr/bin/python points to python3. what I think what happened is that the environment was created before (also, when I made the bug, I didn't realize it was user-wide installed, not per project), and probably with python 3.12.7 (as it said in the file), and then it didn't update this environment after the update? just guessing here, but I think it makes sense? |
I see, so just to sum up: some time ago, you installed PlatformIO and the |
yes, that is correct. and as soon as I updated the file |
Operating system:
Arch Linux
PlatformIO Version (
platformio --version
):PlatformIO Core, version 6.1.16
Description of problem
is soon as I try to build anything for esp32 with espidf framework, I get an error of python not findig the pip module. If I start python by hand, it works.
Steps to Reproduce
platform-espressif32/examples/espidf-hello-world
Actual Results
Log
Expected Results
should build executables
Additional info
it looks to me like this call is failing:
/home/arne/.platformio/penv/.espidf-5.1.2/bin/python -m pip ...
so here is some more info on it:
(seems to be a symlink, ok)
now by hand:
so, for whatever reason, python doesn't like the symlink? I have no idea whats going on.
edit 1:
so I found this: https://unix.stackexchange.com/questions/645554/symlink-to-python-exec-and-the-python-exec-have-different-sys-paths-this-causes
which I verified:
so, the path
/usr/lib/python3.13/site-packages
is missing. still no idea how to fix thatThe text was updated successfully, but these errors were encountered: