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

All tests OK, but ModuleNotFoundError #2

Open
faustusdotbe opened this issue Jun 16, 2021 · 0 comments
Open

All tests OK, but ModuleNotFoundError #2

faustusdotbe opened this issue Jun 16, 2021 · 0 comments

Comments

@faustusdotbe
Copy link

Hi,

Python 3.8.5
ontonotes-5-parsing==0.0.5
Latest LTS ubuntu, if that's relevant

I've installed ontonotes-5-parsing through pip and used the command in the README:

ontonotes5_to_json \
    -s /home/ubuntu/drivein-NER-benchmark/data/ontonotes-release-5.0_LDC2013T19.tgz \
    -d /home/ubuntu/drivein-NER-benchmark/data/ontonotes5.json \
    -r 1830
# didn't put the -i option as the docs say it's not necessary

Running this gives the following trace:

  File "/home/ubuntu/drivein-NER-benchmark/env/bin/ontonotes5_to_json", line 5, in <module>
    from ontonotes5_to_json import main
ModuleNotFoundError: No module named 'ontonotes5_to_json'

The same error happens if I install ontonotes-5-parsing through Github. Tests run all OK.

Is there something obvious I'm missing? Pip freeze says ontonotes-5-parsing is installed, the error above happens when the venv is activated.

Thanks!

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