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”, as litecli 1.9.0 is not compatible with all Python versions #150

Open
PyVCEchecker opened this issue Oct 19, 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 3.5, and I encounter the following error when executing “pip install litecli==1.9.0”

Collecting litecli==1.9.0
  Downloading litecli-1.9.0-py2.py3-none-any.whl (47 kB)
     |████████████████████████████████| 47 kB 415 kB/s 
Collecting Pygments>=1.6
  Downloading Pygments-2.11.2-py3-none-any.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 639 kB/s 
Collecting click>=4.1
  Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
     |████████████████████████████████| 82 kB 417 kB/s 
ERROR: Could not find a version that satisfies the requirement prompt-toolkit<4.0.0,>=3.0.3 (from litecli==1.9.0) (from versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.8, 0.9, 0.10, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.20, 0.21, 0.22, 0.23, 0.25, 0.26, 0.28, 0.30, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.40, 0.41, 0.42, 0.43, 0.44, 0.45, 0.46, 0.47, 0.48, 0.49, 0.50, 0.51, 0.52, 0.53, 0.54, 0.55, 0.56, 0.57, 0.58, 0.59, 0.60, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.0.13, 1.0.14, 1.0.15, 1.0.16, 1.0.17, 1.0.18, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.0.10)
ERROR: No matching distribution found for prompt-toolkit<4.0.0,>=3.0.3 (from litecli==1.9.0)

Dependencies of this distribution are listed as follows:

    "click >= 4.1",
    "Pygments>=1.6",
    "prompt_toolkit>=3.0.3,<4.0.0",
    "sqlparse",
    "configobj >= 5.0.5",
    "cli_helpers[styles] >= 2.2.1",

I found that prompt_toolkit>=3.0.3,<4.0.0 requires Python>=3.6.2, which results in installation failure of litecli in Python3.5.

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

setup(…
     python_requires='>=3.6.2'
     …)

Thanks for your attention.
Best regrads,
PyVCEchecker

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

1 participant