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

“python_requires” should be set with “>=3.6.1”, as bitshares 0.7.0 is not compatible with all Python versions. #307

Closed
PyVCEchecker opened this issue Feb 28, 2022 · 0 comments

Comments

@PyVCEchecker
Copy link

Currently, the keyword argument python_requires of setup() is not set, and thus it is assumed that this distribution is compatible with all Python versions.
However, I found it is not compatible with Python <3.6. My local Python version is 2.7, and I encounter the following error when executing “pip install bitshares”_

Collecting bitshares
  …
ERROR: Could not find a version that satisfies the requirement websockets<9,>=8.1 (from graphenelib<2.0.0,>=1.4.0->bitshares) (from versions: 1.0, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 3.0, 3.1, 3.2, 3.3, 3.4, 4.0.1, 5.0, 5.0.1)
ERROR: No matching distribution found for websockets<9,>=8.1 (from graphenelib<2.0.0,>=1.4.0->bitshares)

Dependencies of this distribution are listed as follows:

graphenelib>=1.4.0,<2.0.0
Events==0.3

I found that graphenelib>=1.4.0,<2.0.0 requires websockets (<9,>=8.1).
And websockets (<9,>=8.1) requires Python>=3.6.1, which results in installation failure of bitshares in Python 2.7.

Way to fix:
modify setup() in setup.py, add python_requires keyword argument:

setup(…
     python_requires=">=3.6.1",
     …)

Thanks for your attention.
Best regrads,
PyVCEchecker

xeroc added a commit that referenced this issue May 13, 2022
@xeroc xeroc closed this as completed May 13, 2022
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

2 participants