selene-backend icon indicating copy to clipboard operation
selene-backend copied to clipboard

Import error with newer itsdangerous versions

Open simcop2387 opened this issue 2 years ago • 1 comments

Describe the bug Selene does not work with itsdangerous>2.0.1

This is characterized by:

ImportError: cannot import name 'json' from 'itsdangerous' (/home/mycroft/.local/share/virtualenvs/market-HF8OUXd-/lib/python3.9/site-packages/itsdangerous/__init__.py)

To Reproduce Try running/installing with Python 3.9, or otherwise updating the Pipfile.lock for the account and market api services. Basically any kind of update

Expected behavior No import error related to json or itsdangerous.

A quick work around is to declare it as an explicit dependency in the Pipfile, instead of relying only on the Pipfile.lock

[packages]
flask = "<1.1"
requests = "*"
pyjwt = "*"
uwsgi = "*"
markdown = "*"
selene = {path = "./../../shared"}
itsdangerous = "==2.0.1"

simcop2387 avatar Mar 03 '22 00:03 simcop2387

Thank you for reporting this issue. It has been resolved in the dev branch and will be included in the next release. See PR #308

chrisveilleux avatar Aug 02 '22 19:08 chrisveilleux