Salamek / gitlab-tools

Web application providing tools not avaiable in GitLab CE (Gitlab push/pull mirror and more)
GNU General Public License v3.0
99 stars 15 forks source link

ImportError when Setting up development environment #29

Closed PedroCavaleiro closed 4 years ago

PedroCavaleiro commented 4 years ago

Since I use CentOS I was unable to install it using the repo. I'm trying to use from source following your wiki

But when I reach the python manage.py to test the installation I get an error the error: ImportError: cannot import name 'ImmutableDict'

Full Traceback

Traceback (most recent call last):
  File "manage.py", line 4, in <module>
    from gitlab_tools.bin.gitlab_tools import main
  File "/root/gitlab-tools/gitlab_tools/bin/gitlab_tools.py", line 75, in <module>
    from gitlab_tools.application import create_app, get_config
  File "/root/gitlab-tools/gitlab_tools/application.py", line 9, in <module>
    from flask_babel import gettext
  File "/root/gitlab-tools/venv/lib/python3.6/site-packages/flask_babel/__init__.py", line 19, in <module>
    from werkzeug import ImmutableDict
ImportError: cannot import name 'ImmutableDict'
Salamek commented 4 years ago

Upgrade flask-babel to latest version by running:

pip install --upgrade flask-babel

inside virtualenv and try it again (and let me know if it works ok)

PedroCavaleiro commented 4 years ago

Thanks, it worked flawlessly