Hi!
I’m trying to setup a travis docker image with python2.7 and python3.7, and adding pytest to the 3.7 version but get the following error for pip3 and pytest3 commands:
travis@ca6182c05df9:~/builds/$ pip3 -V
Traceback (most recent call last):
File “/usr/bin/pip3”, line 5, in
from pkg_resources import load_entry_point
File “/usr/lib/python3/dist-packages/pkg_resources.py”, line 1479, in
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module ‘importlib._bootstrap’ has no attribute ‘SourceFileLoader’
Docker image is: travisci/ci-garnet:packer-1515445631-7dfb2e1
And on top of this image the following stuff is done, in order:
apt-get install -y software-properties-common
add-apt-repository -y ppa:deadsnakes/ppa
apt-get update
apt-get install build-essential libpq-dev libssl-dev openssl libffi-dev zlib1g-dev
apt-get install python3.7-dev
apt-get install python3-pip
apt-get install python3.7
ln -sf /usr/bin/python3.7 /usr/bin/python3
ls -al /usr/bin | grep python
python3 -V
apt-get install python3-pytest
apt-get install python3.7-gdbm
apt-get install python3-logilab-common
All the commands listed seems to go ok.
What I’m doing wrong?