weblabdeusto / weblablib

Python library for creating WebLab-Deusto unmanaged laboratories

Home Page:https://docs.labsland.com/weblablib/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weblablib is not working with latest Werkzeug

mcastillof opened this issue · comments

Hello, weblablib is not working with Werkzeug 1.0.1 (latest), which is the default installed with pip in a local system and in the docker container built in your weblablib-example-complete repo.

Traceback (most recent call last):
  File "a.py", line 2, in <module>
    from weblablib import WebLab, weblab_user, requires_active
  File "/home/dodo/.local/lib/python3.8/site-packages/weblablib/__init__.py", line 74, in <module>
    from weblablib.users import WebLabUser, AnonymousUser, ExpiredUser, CurrentUser, \
  File "/home/dodo/.local/lib/python3.8/site-packages/weblablib/users.py", line 15, in <module>
    from werkzeug import ImmutableDict, LocalProxy
ImportError: cannot import name 'ImmutableDict' from 'werkzeug' (/home/dodo/.local/lib/python3.8/site-packages/werkzeug/__init__.py)

With werkzeug 0.16.1 seems to work fine.
pip install werkzeug=0.16.1 --upgrade

It's fixed in the branch 0.5.x. There is another bug we found that we have to write so as to push the 0.5.5 version fixing both

0.5.5 version has been released:

https://developers.labsland.com/weblablib/en/stable/changelog.html

Please run:

$ pip install weblablib==0.5.5