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

ImportError #1

Open
davidfoxcroft opened this issue Oct 28, 2022 · 1 comment
Open

ImportError #1

davidfoxcroft opened this issue Oct 28, 2022 · 1 comment

Comments

@davidfoxcroft
Copy link

Hi I'm getting an error when trying to run the command

./extract_concepts.py -i book.tex \ -o reviewed_concepts.csv -ml 2 -n 1000 -m rake -s

This is the error:

ImportError: cannot import name 'Sequence' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

I'm using python3.10.6 and all dependencies are satisfied. I'm on ubuntu 22.04.

@jldevezas
Copy link
Contributor

Since Sequence is not being used in extract_concepts.py, the issue is with an external library, probably rake. You are probably running a different version than the one specified in requirements.txt. Try to run pip install --upgrade python-rake and see if that helps. Otherwise, it might be an issue with the Aho-Corasick package.

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

2 participants