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

Install with pip not working with Alpine Linux #16

Open
robertonscjr opened this issue Sep 18, 2020 · 10 comments
Open

Install with pip not working with Alpine Linux #16

robertonscjr opened this issue Sep 18, 2020 · 10 comments

Comments

@robertonscjr
Copy link

When I try to install the rusty-rlp library on an Alpine Linux, the following error happens:

~ # pip3.7 install rusty-rlp
ERROR: Could not find a version that satisfies the requirement rusty-rlp (from versions: none)
ERROR: No matching distribution found for rusty-rlp

I need it to install web3py and pip workflow hangs exactly on this lib. Is there any way to install it manually?

Thanks!!!!

@cburgdorf
Copy link
Owner

Olá Roberto! That's unfortunate. Am I right to assume tha you are on a 32 bit system? Or maybe you are on a 64 bit system but your Python is for a 32 bit system as it was the case in this issue?

Unfortunately, we are only able to provide 64 bit binaries right now. But I think it should be possible to fallback to a slower implementation for non 64 bit systems. I will look into that on Monday.

@cburgdorf
Copy link
Owner

Can you run python -c 'import sys;print("%x" % sys.maxsize, sys.maxsize > 2**32)' and give me the output. (https://stackoverflow.com/questions/1405913/how-do-i-determine-if-my-python-shell-is-executing-in-32bit-or-64bit)

@ahmedwk
Copy link

ahmedwk commented Sep 19, 2020

I have the same issue. I have windows 64-bit
here is the command I typed:

pip install rusty-rlp

I get the following error message:

ERROR: Could not find a version that satisfies the requirement rusty-rlp (from versions: none)
ERROR: No matching distribution found for rusty-rlp

when I run the command you posted

print("%x" % sys.maxsize, sys.maxsize > 2**32)

I get the following:

7fffffff False

Edit: It seems my Windows is 64 bits, but my Python is 32 bits. I will try to uninstall 32 bit python and reinstall 64 bit Python
Thanks

@cburgdorf
Copy link
Owner

It seems my Windows is 64 bits, but my Python is 32 bits. I will try to uninstall 32 bit python and reinstall 64 bit Python
Thanks

Yep, that's it. That worked for this user, too

@robertonscjr
Copy link
Author

robertonscjr commented Sep 19, 2020

Hello @cburgdorf , thanks a lot for the answer!

When I ran the python -c 'import sys;print("%x" % sys.maxsize, sys.maxsize > 2**32)', the output was that: 7fffffffffffffff True. If I understand correctly, the output indicates that my Python is 64bit, correct?

Maybe it's something in Alpine. Because I tested the installation with the python:3.7 (Ubuntu) and it worked.

@cburgdorf
Copy link
Owner

@robertonscjr yes, looks like you are on a 64 bit system but there are problems with support for Alpine. I found a related issue in the maturin issue tracker: PyO3/maturin#154
That's the build system that we are using to create Python packages. I just skimmed over it so I'm not yet sure how it can be resolved.

@Jonney
Copy link

Jonney commented Oct 12, 2020

On another windows, I got this.
F19C3CDB-6669-4AF8-89AA-D57D9F8AD447

@cburgdorf
Copy link
Owner

cburgdorf commented Oct 12, 2020 via email

@Jonney
Copy link

Jonney commented Oct 13, 2020

This indicates you have Python 32 bit installed on a win64 bit system.

No, I'm quite sure it's Python 64-bit and win64.
I solved this problem again.
It's because of the version of Python. Not available at 3.9, It must be <=3.8

@cburgdorf
Copy link
Owner

Ah, good catch! Supporting Python 3.9 should be as easy as adding it here (and then cutting a new release)

python-version: [3.5, 3.6, 3.7, 3.8]

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

4 participants