“python_requires” should be set with “>=3.6”, as horizon 21.0.0 is not compatible with all Python versions.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Low
|
Akihiro Motoki |
Bug Description
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 horizon"
------
Collecting horizon
Downloading horizon-
|█
Collecting python-
Downloading python_
|█
Collecting oslo.upgradeche
Downloading oslo.upgradeche
ERROR: Could not find a version that satisfies the requirement oslo.i18n>=5.0.1 (from horizon) (from versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0, 3.0.0, 3.1.0, 3.2.0, 3.3.0, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 3.12.0, 3.13.0, 3.14.0, 3.15.0, 3.15.1, 3.15.2, 3.15.3, 3.16.0, 3.17.0, 3.17.1, 3.17.2, 3.18.0, 3.19.0, 3.20.0, 3.21.0, 3.22.0, 3.22.1, 3.23.0, 3.23.1, 3.24.0, 3.25.0, 3.25.1)
ERROR: No matching distribution found for oslo.i18n>=5.0.1 (from horizon)
------
I found that horizon 21.0.0 depends on oslo.i18n>=5.0.1, but oslo.i18n>=5.0.1 requires Python>=3.6, which results in installation failure of horizon in Python 3.5.
Way to fix:
modify setup() in setup.py, add "python_requires" keyword argument:
---
setup(…
python_
…)
---
Thanks for your attention.
Best regrads,
PyVCEchecker
Changed in horizon: | |
status: | New → Confirmed |
importance: | Undecided → Low |
assignee: | nobody → Akihiro Motoki (amotoki) |
Fix proposed to branch: master /review. opendev. org/c/openstack /horizon/ +/829629
Review: https:/