Skip to content
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

Can't install pyyaml on RaspberryPi3 with python3 #203

Closed
JosefProbst opened this issue Jul 10, 2018 · 4 comments
Closed

Can't install pyyaml on RaspberryPi3 with python3 #203

JosefProbst opened this issue Jul 10, 2018 · 4 comments

Comments

@JosefProbst
Copy link

$ pip3 install pyyaml Collecting pyyaml HTTP error 404 while getting https://www.piwheels.org/simple/pyyaml/PyYAML-4.1-cp35-cp35m-linux_armv7l.whl#sha256=a5b125a24244830d574ccfd8fab861198d2ffe491b73179ffd75abf78caee6ff (from https://www.piwheels.org/simple/pyyaml/) Could not install requirement pyyaml from https://www.piwheels.org/simple/pyyaml/PyYAML-4.1-cp35-cp35m-linux_armv7l.whl#sha256=a5b125a24244830d574ccfd8fab861198d2ffe491b73179ffd75abf78caee6ff because of error 404 Client Error: Not Found for url: https://www.piwheels.org/simple/pyyaml/PyYAML-4.1-cp35-cp35m-linux_armv7l.whl Could not install requirement pyyaml from https://www.piwheels.org/simple/pyyaml/PyYAML-4.1-cp35-cp35m-linux_armv7l.whl#sha256=a5b125a24244830d574ccfd8fab861198d2ffe491b73179ffd75abf78caee6ff because of HTTP error 404 Client Error: Not Found for url: https://www.piwheels.org/simple/pyyaml/PyYAML-4.1-cp35-cp35m-linux_armv7l.whl for URL https://www.piwheels.org/simple/pyyaml/PyYAML-4.1-cp35-cp35m-linux_armv7l.whl#sha256=a5b125a24244830d574ccfd8fab861198d2ffe491b73179ffd75abf78caee6ff (from https://www.piwheels.org/simple/pyyaml/)

If I manuall open https://www.piwheels.org/simple/pyyaml/ in my browser I can download every ".whl" but the 4.1 versions.

@NyanKiyoshi
Copy link

NyanKiyoshi commented Jul 10, 2018

The 4.1 release was rolled back from PyPI (same as #201), that should explain the 404 errors. The latest release stable release is 3.13.

Try:

pip3 install pyyaml==3.13

akx added a commit to akx/lepo that referenced this issue Jul 11, 2018
akx added a commit to akx/lepo that referenced this issue Jul 11, 2018
@JosefProbst
Copy link
Author

JosefProbst commented Jul 11, 2018

Thank you very much.
Installing version 3.13 works fine, but the thing is that I actually wanted to install connexion.
And although pip prints this (after trying to install connexion):
Collecting PyYAML>=3.11 (from connexion)
I receive the same error.
But I guess this is nothing related to this issue anymore.

@NyanKiyoshi
Copy link

NyanKiyoshi commented Jul 11, 2018

I had the same issue when deploying to a RPI today as it had the dependency PyYaml >= 3.xx. The RPI wheels are providing the 4.1 as being the latest stable release despite it being deleted from PyPI.

So it was also requiring to manually pre-install the requirements to prevent the installation of the 4.1.

I would guess this is a bug from Pi wheels of the handling of deleted versions. I think it could be reported to them.


Doing

pip3 install pyyaml==3.13

Then installing the package doesn't work, so? Could you send the output if so? May be a package asking for a >= 4.1 release (likely to be the cause as it was quite a rush for python 3.7 support). If so, it would require to upgrade the faulting package.

@nitzmahone
Copy link
Member

Yeah, this seems like a bug/oversight on the part of whoever's redistributing the content. PyPI is the official source for packaged PyYAML bits, and deleting flawed releases is a fully supported operation there- not much we can do if an aggregator/redistributor can't handle that. The problem seems like it should go away whenever PyYAML 4.x drops, but meantime, seems like updating your requirements to add a <4.0 constraint might also be a good plan until you've verified that whatever 4.x PyYAML looks like works with your application. Since this is not an issue that the PyYAML maintainers can do anything about, we're going to close it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants