hotosm / osm-tasking-manager2

Designed and built for Humanitarian OpenStreetMap Team collaborative emergency/disaster mapping, the OSM Tasking Manager 2.0 divides an area into individual squares that can be rapidly mapped by thousands of volunteers.
http://tasks.hotosm.org
Other
425 stars 156 forks source link

ContextualVersionConflict (six 1.12.0... #1013

Open jimmyrocks opened 5 years ago

jimmyrocks commented 5 years ago

I am trying to use osmtm2 within a docker container, and I keep getting the same error pkg_resources.ContextualVersionConflict: (six 1.12.0 (/osm-tasking-manager2/env/lib/python2.7/site-packages), Requirement.parse('six==1.11.0'), set(['transifex-client']))

I tried forcing an install of six==1.110, uninstalling six completely, and reverting back told versions of osmtm2, but nothing seems to work for me.

During the pip install -r requirements.txt step, I get the error ERROR: transifex-client 0.13.6 has requirement six==1.11.0, but you'll have six 1.12.0 which is incompatible.

My docker-compose is fairly simple:

RUN git clone --recursive git://github.com/hotosm/osm-tasking-manager2.git

WORKDIR /osm-tasking-manager2

RUN easy_install virtualenv
RUN virtualenv --no-site-packages env
RUN ./env/bin/pip install -r requirements.txt

and the Docker is based on python:2.7-jessie

ethan-nelson commented 5 years ago

Hi Jim,

There was likely a change in the requirements mandated by the transifex client in the past year or two as they have released new versions (this repo isn't actively supported anymore, so there aren't many installs).

The version of transifex used isn't frozen in the code, so perhaps try specifying an older version of transifex in the setup file to something like https://pypi.org/project/transifex-client/0.12.5/ (i.e. transifex-client==0.12.5 at https://github.com/hotosm/osm-tasking-manager2/blob/master/setup.py#L34).