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

Cant import the library: No module named 'pubtator_loader.models' #1

Open
deakkon opened this issue Mar 11, 2021 · 3 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@deakkon
Copy link

deakkon commented Mar 11, 2021

Hi,

while trying to use your library, I failed at the first step: importing it. Not sure what I am doing wrong; can you sport what I could be doing wrong?

Find the traceback below.

...: from pubtator_loader.pubtator_corpus_reader import PubTatorCorpusReader

ModuleNotFoundError Traceback (most recent call last)
in
----> 1 from pubtator_loader.pubtator_corpus_reader import PubTatorCorpusReader

~/anaconda3/envs/know-nlp-tf2/lib/python3.6/site-packages/pubtator_loader-0.1.1-py3.6.egg/pubtator_loader/init.py in
----> 1 from .models import PubTatorEntity, PubTatorDocument # noqa

ModuleNotFoundError: No module named 'pubtator_loader.models'

@deakkon
Copy link
Author

deakkon commented Mar 11, 2021

For some reason, the installed package doesn't contain the models package/directory. I tried it both with pip and installing from source.

I copied the models folder from the source code to the virt env and it works well.

Hope it helps.

@ArshSekhon ArshSekhon self-assigned this Mar 11, 2021
@ArshSekhon ArshSekhon added the bug Something isn't working label Mar 11, 2021
@ArshSekhon
Copy link
Owner

Hi @deakkon

Thanks for pointing out the issues. They should be fixed in the Release 0.1.4. Can you please try re-installing the newer version (Release 0.1.4) of pubtator_loader using pip install pubtator_loader==0.1.4 and see if it works now?

Cheers,
Arsh

@deakkon
Copy link
Author

deakkon commented Mar 14, 2021

Any particular reason spacy is limited to the 3.0.5 version?

We use 2.1.3 for various reasons, the main being updating spacy would break things at this point in time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants