We're using docker and docker-compose to run our wagtail site.
We've just upgraded to wagtail 1.7 and we're getting an error about the six package conflicting. Error below
> Found existing installation: setuptools 3.3 Uninstalling
> setuptools-3.3:
> Successfully uninstalled setuptools-3.3 Running setup.py install for webencodings: started Running setup.py install for
> webencodings: finished with status 'error' Complete output from
> command /usr/bin/python -u -c "import setuptools,
> tokenize;__file__='/tmp/pip-build-mzD35z/webencodings/setup.py';f=getattr(tokenize,
> 'open', open)(__file__);code=f.read().replace('\r\n',
> '\n');f.close();exec(compile(code, __file__, 'exec'))" install
> --record /tmp/pip-8DpNx2-record/install-record.txt --single-version-externally-managed --compile: Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/tmp/pip-build-mzD35z/webencodings/setup.py", line 35, in <module>
> packages=find_packages(),
> File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
> _setup_distribution = dist = klass(attrs)
> File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 320, in __init__
> _Distribution.__init__(self, attrs)
> File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
> self.finalize_options()
> File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 386, in finalize_options
> ep.require(installer=self.fetch_build_egg)
> File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py",
> line 2324, in require
> items = working_set.resolve(reqs, env, installer, extras=self.extras)
> File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py",
> line 859, in resolve
> raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.VersionConflict: (six 1.5.2
> (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.6.0'))
Here's the Dockerfile
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
python-setuptools \
python-dev \
python-urllib3 \
vim \
libjpeg8-dev \
zlib1g-dev \
libfreetype6-dev \
liblcms2-dev \
libwebp-dev \
tcl8.6-dev \
tk8.6-dev \
python-tk \
libpq-dev \
libopencv-dev \
python-opencv \
python-numpy \
xvfb \
nginx \
postgresql-client
RUN easy_install pip
# Handle urllib3 InsecurePlatformWarning
RUN apt-get install -y libffi-dev libssl-dev
# RUN pip install requests[security] ndg-httpsclient pyasn1
RUN rm -rf /etc/nginx/sites-available/default
ADD config/nginx/nginx.conf /etc/nginx/nginx.conf
RUN mkdir /code
WORKDIR /code
ADD dev_requirements.txt /code/
RUN pip install -r dev_requirements.txt
ADD . /code/
And here's dev_requirements.txt
django==1.10.5
wagtail==1.6.3
psycopg2>=2.5.2
django-compressor>=2.1
django-libsass>=0.7
raven==5.3.1
django-cas-client==1.2.0
gunicorn==19.6.0
redis==2.10.5
django-redis-cache==1.6.5
elasticsearch==1.0.0
selenium==2.53.6
pyvirtualdisplay==0.2
flake8==3.2.0
honcho==0.7.1
That works fine, but if I change wagtail==1.6.3 to wagtail==1.7 I get the above six package conflict.
Has anyone run into this or has any idea what could be causing the problem?
It looks like a python module dependency issue, one module is dependent on six 1.5.2 but webencodings needs 1.6.0.
I've tried upgrading pip as well, but that made no difference :-(
I'll try upgrading the the modules I can think of that won't cause an issue.
Any tips or hints greatly appreciated.
The only change to Wagtail's dependencies between 1.6 and 1.7 was to un-pin html5lib
from 0.999999 to 'any <1.0 version'. Newer releases of html5lib seem to be more picky about dependencies, but Wagtail should still work happily on the older versions - so I'd suggest adding html5lib==0.999999
to your dev_requirements.txt.