ActiDoo / gamification-engine

gamification-engine (gengine) is a framework for developing gamification features for your application
MIT License
423 stars 108 forks source link

ImportError: cannot import name 'Feature' (tried on Docker) #69

Closed romdim closed 2 years ago

romdim commented 3 years ago

Got error:

ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_qpv24pz/zope.interface/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_qpv24pz/zope.interface/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-sa3c96k8
         cwd: /tmp/pip-install-_qpv24pz/zope.interface/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-_qpv24pz/zope.interface/setup.py", line 26, in <module>
        from setuptools import setup, Extension, Feature
    ImportError: cannot import name 'Feature'

When running the docker-compose. Resolved it when I updated zope.interface to latest: zope.interface==5.2.0.

RRunner1337 commented 3 years ago

Got the same error when running docker-compose. Seems that if I added

RUN pip install --upgrade pip setuptools==45.2.0 in between lines

COPY docker-files/* ./ RUN cat optional-requirements.txt >> requirements.txt && pip install -r requirements.txt

of Dockerfile compiled and rebuilt docker. Deferentially needs some love and maintenance :)

msander commented 3 years ago

Deferentially needs some love and maintenance :)

@RRunner1337 I'd be happy to welcome you as a contributor :-) Can you create a pull request?

msander commented 2 years ago

As I cannot reproduce this with the current docker setup, I will close this for now.

j2l commented 1 year ago

Thank you @romdim I had the same issue and RUN pip install --upgrade pip setuptools==45.2.0 + zope.interface==5.2.0 made it work. Maybe only one of these is enough? Please note that it didn't work for others