Issue 0074
- Summary
- python dependency problem running Functional.fuego_release_test
- Owner
- Tim
- Reporter
- Tim
- Status
- open
- Priority
- high
Description [edit section]
When running Functional.fuego_release_test, I get the following (trying to invoke test_run.py:
/bin/sh -c '{ sudo -n /fuego-core/engine/tests/Functional.fuego_release_test/test_run.py \ fuego-release/fuego -d /fuego-core/engine/tests/Functional.fuego_release_test -o .; \ echo $? > /tmp/14026-6669; } 2>&1 | \ tee /fuego-rw/tests/fuego.Functional.fuego_release_test/Functional.fuego_release_test.log' /usr/local/lib/python3.4/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.9.1) or chardet (3.0.4) doesn't match a supported version! RequestsDependencyWarning) Traceback (most recent call last): File "/fuego-core/engine/tests/Functional.fuego_release_test/test_run.py", line 15, in <module> import docker File "/usr/local/lib/python3.4/dist-packages/docker/__init__.py", line 2, in <module> from .api import APIClient File "/usr/local/lib/python3.4/dist-packages/docker/api/__init__.py", line 2, in <module> from .client import APIClient File "/usr/local/lib/python3.4/dist-packages/docker/api/client.py", line 5, in <module> import requests File "/usr/local/lib/python3.4/dist-packages/requests/__init__.py", line 105, in <module> from urllib3.exceptions import DependencyWarning ImportError: cannot import name 'DependencyWarning'
The problem appears to be that we're getting python3-requests from jessie-updates, but python3-chardet and python3-urllib3 from jessie. Hence the version mismatch.
You can reproduce the bug on the container command line by trying to run 'pip3'.
Notes [edit section]
I tried to run 'apt-get remove python3-pip python3-requests', then 'apt-get install -t jessie-updates python3-pip'But it only pulled pip from jessie-updates, and got the other dependent packages from 'jessie' (chardet and urllib3).
I am going to test: https://bootstrap.pypa.io/get-pip.py
Apparently this will download and install pip3 outside the Debian package manager, and will handle dependencies better?
See the last comment on this thread: https://forums.bunsenlabs.org/viewtopic.php?id=957
Also, see this comment: https://www.reddit.com/r/linux4noobs/comments/7qyivb/pip3_dependencies_in_debian_jessie_bunsenlabs/
I did this:
- remove old python3 packages: 'apt remove python3-pip python3-requests python3-urllib3 python3-chardet
- install get-pip.py
- wget https://bootstrap.pypa.io/get-pip.py /fuego-rw/transfer
- install pip3
- cd /fuego-rw/transfer
- python3 get-pip.py
- use pip3 to install other packages
- pip3 install requests *
- backlink