-
Notifications
You must be signed in to change notification settings - Fork 5
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
pypi-mirror failing for macos and Linux packages when run on Windows #95
Comments
pip download resolver fails on certain combinations - currently when trying to download macOS wheels on a Windows machine. This affects offlinedatasci that depends on 'pip download' via pypi_mirror.download(). Reference: carpentriesoffline#95
I've been trying to track this down and my current guess is that it relates to this line in the jupyter-core pyproject.toml:
Running the following line on Windows:
Yields a string of errors of the form:
This suggests that somehow |
I can confirm that this ( ⬆️ ) is the source of the error. Running with
Looks like this is a known issue pypa/pip#11664 (and many smaller issues including pypa/pip#12466) |
Also fails to download Linux packages |
OK, so this is a widely known issue with pip and therefore something we aren't going to fix. I'm going to patch this by only running creating the Windows mirror if the OS is Windows and once pypa/pip#11664 is fixed we can add full functionality for Windows teaching servers. |
Replicate (on a Windows machine; replicated with Python 3.11 and 3.12; works fine on Ubuntu 22.04):
Or directly using pypi-mirror:
pip struggles repeatedly to rectify dependencies in Jupyter land and then fails with:
ERROR: Cannot install notebook==6.5.5 and notebook==6.5.6 because these package versions have conflicting dependencies.
My best guess is that even though we're asking it to download for macOS something about the system being Windows is still being seen by pypi_mirror causing problems with finding dependencies that fit. Hopefully some additional optional argument can fix this.
Note that
pypi_mirror.download()
is a thin wrapper aroundpip download
, so one route is to replicate with the corepip
call which should open up more useful avenues for searching/asking for help.The text was updated successfully, but these errors were encountered: