-
Notifications
You must be signed in to change notification settings - Fork 771
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
Windows failure when installing with cache #4190
Comments
Are you able to reproduce this on GitHub Actions, or is it some other CI setup? |
I just tested it and it works on GH runners. I was running on non-public ones. It also works in my setup if I move the cache directory, so at this point my guess is some form of permission error in the cache directory (though it's still weird, since the cache works for packages that ship wheels). I'll let you know if I find out something more concrete - maybe it is something that |
I am also experiencing a similar issue. When I use |
Not sure if this is related, but also having issues in a private repo: steps:
- uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: 'pip'
- name: Install Dependencies (Windows)
if: matrix.os == 'windows-latest'
run: |
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
uv pip install --system -r bin/requirements/requirements-dev-windows.txt nvm I see actions/setup-python#822 |
I have similar issues:
I now started to have individual cache folders for each github runner, and clean the cache at the beginning of the CI pipeline.
|
I got the same issue on a Windows VM, and after digging in I got a new error message "error: [WinError 206] The filename or extension is too long". From this point, the solution was easy: openning As far as Hope this help. |
@jgaffiot Thank you so much for this incredibly helpful solution! I'm thrilled to report that your suggestion worked perfectly for me as well. I followed your instructions to modify the registry key, and it resolved the issue immediately. I can't express how grateful I am for your detailed explanation and the time you took to share this fix. You've saved me hours of frustration and troubleshooting. This is exactly why I love the open-source community – people like you who are willing to share their knowledge and help others. Once again, thank you from the bottom of my heart. You're awesome! |
@jgaffiot thanks! I got the same issue when trying to add copying build\lib\appium\options\android\common\context\extract_chrome_android_package_from_context_name_option.py -> build\bdist.win-amd64\wheel\.\appium\options\android\common\context
--- stderr:
error: could not create 'build\bdist.win-amd64\wheel\.\appium\options\android\common\context\extract_chrome_android_package_from_context_name_option.py': No such file or directory When I set |
It seems like the underlying issue is tracked already in #2410 |
I get an error when running
python -m uv pip install --verbose 'antlr4-python3-runtime==4.9.3'
on an Windows CI server. The error does not occur when installing with the--no-cache
flag. Nor is it reproducible on a local Windows machine.pip
installs it without issues.platform: Windows
uv version: uv 0.2.9 (e9fc99e 2024-06-06)
python version: 3.11.8
command:
python -m uv pip install --verbose 'antlr4-python3-runtime==4.9.3'
Here's the log from CI, please let me know if you need additional information.
The text was updated successfully, but these errors were encountered: