boltgolt / howdy

🛡️ Windows Hello™ style facial authentication for Linux
MIT License
5.9k stars 307 forks source link

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/myfolder/venv/lib/python3.8/site-packages/setuptools-67.8.0.dist-info/METADATA' #827

Closed chemafacil closed 1 year ago

chemafacil commented 1 year ago

I am consistently hitting this error and I do not understand why. I have a workaround but I would like to find a solution.

It happens with other packages sometimes too (e.g. boto3) but for this particular case is setuptools.

I am running a third party pipeline, that creates a venv (python 3.8) then first updates pip, setup tools and wheel:

Successfully installed pip-23.2.1 setuptools-67.8.0 wheel-0.41.1

and then runs a pip command with my list of requirements. Where I get this error:

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/myfolder/venv/lib/python3.8/site-packages/setuptools-67.8.0.dist-info/METADATA'

If I used --force-reinstall the issue disappears, but this is not a thing that I can use when running pip within a thirdparty pipeline.


I've searched for similar issues already, and my issue has not been reported yet. There is a similar one (that was fixed to be a warning not an error) but not exactly the same https://github.com/pypa/pip/pull/8926

chemafacil commented 1 year ago

I posted by error here this issue it was meant for pip https://github.com/pypa/pip/issues/12230

Apologies.