python-watcherclient requires Python '>=3.6' but the running Python is 2.7.12

Bug #1871748 reported by Min Li
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
watcher
New
Undecided
Unassigned

Bug Description

When I deploy the devstack of rocky , which contains watcher service,I get an error when installing python-watcherclient:

++inc/python:pip_install:354 local test_req=/opt/stack/python-watcherclient/test-requirements.txt
++inc/python:pip_install:355 [[ -e /opt/stack/python-watcherclient/test-requirements.txt ]]
++inc/python:pip_install:356 install_test_reqs='-r /opt/stack/python-watcherclient/test-requirements.txt'
++inc/python:pip_install:363 sudo -H http_proxy= https_proxy= no_proxy= PIP_FIND_LINKS= SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite /usr/local/bin/pip2.7 install -c /opt/stack/requirements/upper-constraints.txt -r /opt/stack/python-watcherclient/test-requirements.txt -e /opt/stack/python-watcherclient
Ignoring Django: markers 'python_version == "3.4"' don't match your environment
Ignoring Django: markers 'python_version == "3.5"' don't match your environment
Ignoring Pygments: markers 'python_version == "3.4"' don't match your environment
Ignoring Pygments: markers 'python_version == "3.5"' don't match your environment
Ignoring SecretStorage: markers 'python_version == "3.4"' don't match your environment
Ignoring SecretStorage: markers 'python_version == "3.5"' don't match your environment
Ignoring asyncio: markers 'python_version == "3.4"' don't match your environment
Ignoring asyncio: markers 'python_version == "3.5"' don't match your environment
Ignoring cmd2: markers 'python_version == "3.4"' don't match your environment
Ignoring cmd2: markers 'python_version == "3.5"' don't match your environment
Ignoring dnspython3: markers 'python_version == "3.4"' don't match your environment
Ignoring dnspython3: markers 'python_version == "3.5"' don't match your environment
Ignoring jeepney: markers 'python_version == "3.4"' don't match your environment
Ignoring jeepney: markers 'python_version == "3.5"' don't match your environment
Ignoring mypy: markers 'python_version == "3.4"' don't match your environment
Ignoring mypy: markers 'python_version == "3.5"' don't match your environment
Ignoring typed-ast: markers 'python_version == "3.4"' don't match your environment
Ignoring typed-ast: markers 'python_version == "3.5"' don't match your environment
Obtaining file:///opt/stack/python-watcherclient
python-watcherclient requires Python '>=3.6' but the running Python is 2.7.12

Revision history for this message
licanwei (li-canwei2) wrote :

Rocky release supports python 2.7
Could you check if there is 'python-requires = >=3.6' in the file python-watcherclient/setup.cfg?
maybe you get the master branch.

Revision history for this message
Min Li (limin0801) wrote :

I specified to install the Rocky release of watcher in local.conf:

enable_plugin watcher https://opendev.org/openstack/watcher stable/rocky

But python-watcherclient automatically installed the master branch.
 Although I can modify the python-requires in python-watcherclient / setup.cfg, this is still an issue.

Revision history for this message
Min Li (limin0801) wrote :

I specified the python-watcherclient branch as rocky in local.conf, the script stack.sh can be successfully executed. I appreciate you help.

Revision history for this message
Dantali0n (dantalion) wrote :

I suspect the bug is not the python versions with rocky but rather with devstack ignoring your branch preference. I have had the same issue in the past.

Revision history for this message
Min Li (limin0801) wrote :

Add the following content to local.conf to install the Rocky release of the python-ironicclient:

LIBS_FROM_GIT="python-watcherclient"
WATCHERCLIENT_BRANCH="stable/rocky"

Revision history for this message
licanwei (li-canwei2) wrote :

There is no WATCHERCLIENT_BRANCH in devstack, you have to change the branch by yourself.

Revision history for this message
Min Li (limin0801) wrote :

Please refer:
https://opendev.org/openstack/devstack/src/branch/stable/rocky/samples/local.conf
# line 76:Using git versions of clients

When the client branch is specified, the suitable client will be installed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.