-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
ChefBuildError from FileNotFoundError: [WinError 3] during installation of a dependency while "pip wheel --no-cache-dir --use-pep517 <dependency> works #9867
Comments
@Gwenn-LR thank you for your report, but I have been unable to reproduce this on my machine. It would help if you can,
|
it'll be windows long paths, it's always windows long paths |
@Gwenn-LR if as @dimbleby mentioned, the issue is long paths, please see https://docs.python.org/3.13/using/windows.html#removing-the-max-path-limitation. |
At first I thought @dimbleby call was a good one but Here is my log from While checking its content, I think I've found the issue, but I can't understand why it happens.
However, the folder where I can find the
I think the issue could come from my python setup : I've installed it from the Microsoft store and I can't remember all the steps I've followed after to setup a working In any case, thanks to you @abn and @dimbleby for your quick answers ! |
Ah, your issue might be related to python-poetry/install.python-poetry.org#135 perhaps? |
Yeap clearly, good catch ! But I don't understand how the other 100+ packages of my project haven't not came accross the same issue, only this one... I'll try another day to reinstall from scratch Python and I'll keep in touch with you when its done. Meanwhile I back crazytan enhancement suggestion to at least warn the user if a Microsoft Store Python is detected if it is possible. |
I don't know if it can help you get a better understanding of the issue, but it just happened on another branch of my project with |
@Gwenn-LR honestly, right now the best option for you might be to uninstall the MS Store Python and install a system Python version using the installer at https://www.python.org/downloads/. Based on what I can read in the above issue, it could keep happening if you don't. |
@Gwenn-LR alternatively try setting the cache directory manually.
|
I'm currently remote working on a station that is not the one I use normally, so this solution is the best for me at this time.
However I'll try a clean install next time ! In any case, thanks again for the time you've granted my issue ! Have a good weekend :) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Hi ! First of all, thanks for the amazing work of all your team !
I've stumbled upon an error which I think migth interest you.
While solving dependency requirements during the installation, poetry had to install
pytils==0.4.1
. However it resulted in thisChefBuildError
:I've tried to install directly from the repository with:
I've also added the flag
--no-cache
to the previous command, but I was getting the same error over and over.Since I had no issue on Ubuntu 22.04 and it happened working on a system under Win 11, it might comes from an interaction with this platform.
Workarounds
Finally I've decided to give a try to the Note at the end of the message to get a better idea of the issue and tried this command:
It worked as a charm, it generated the
.whl
associated to the package which I could include to thepoetry.toml
with:Finally I've been able to resume my first command and the installation has finished without any error.
Poetry Installation Method
install.python-poetry.org
Operating System
Win 11
Poetry Version
1.8.4
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
No response
Poetry Runtime Logs
I will, next time I have an issue with Poetry which require to open an issue.
The text was updated successfully, but these errors were encountered: