Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing requirements.txt #6

Open
katharinaost opened this issue Jun 24, 2024 · 1 comment
Open

Fixing requirements.txt #6

katharinaost opened this issue Jun 24, 2024 · 1 comment

Comments

@katharinaost
Copy link

katharinaost commented Jun 24, 2024

To get sbb_ner to work (in a Python 3.11 environment), I had to fix flask==2.0.1 (i.e. a version that reintroduced Config.from_json, see the discussion here) and Werkzeug==2.3.7 (Werkzeug 3 causes an ImportError: cannot import name 'url_quote' from 'werkzeug.urls' error, see here).

Also updated sklearn to scikit-learn.

With these exceptions, modern package versions seem to work fine.

@katharinaost
Copy link
Author

While sbb_ner works fine with Python 3.11 and largely modern package versions, the same is not true for sbb_ned - the pickled deciders rely on old scikit-learn versions (0.22). So it's probably best to stick with Python 3.6, which also requires the use of old virtualenv versions (20.18.0 is the last release that works with Python 3.6).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant