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

No module named 'scibert'&RROR: en-core-web-sm 2.2.5 has requirement spacy>=2.2.2, but you'll have spacy 2.1.9 which is incompatible." #109

Open
Yuanml1225 opened this issue Nov 10, 2020 · 6 comments

Comments

@Yuanml1225
Copy link

I have two questions

firstly:I'm running train_allennlp_local.sh with a bug:

ModuleNotFoundError: No module named 'scibert'
YML@Spuer-HR:~/Jiaxin/scibert-master/scripts$ ./train_allennlp_local.sh output/
2020-11-10 11:08:03,865 - INFO - pytorch_pretrained_bert.modeling - Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex .
2020-11-10 11:08:04,366 - INFO - pytorch_transformers.modeling_bert - Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex .
2020-11-10 11:08:04,368 - INFO - pytorch_transformers.modeling_xlnet - Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex .
2020-11-10 11:08:04,492 - INFO - allennlp.common.registrable - instantiating registered subclass relu of <class 'allennlp.nn.activations.Activation'>
2020-11-10 11:08:04,493 - INFO - allennlp.common.registrable - instantiating registered subclass relu of <class 'allennlp.nn.activations.Activation'>
2020-11-10 11:08:04,493 - INFO - allennlp.common.registrable - instantiating registered subclass relu of <class 'allennlp.nn.activations.Activation'>
2020-11-10 11:08:04,493 - INFO - allennlp.common.registrable - instantiating registered subclass relu of <class 'allennlp.nn.activations.Activation'>
Traceback (most recent call last):
File "/home/haorui/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/haorui/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/YML/Jiaxin/scibert-master/src/allennlp/allennlp/run.py", line 21, in
run()
File "/home/YML/Jiaxin/scibert-master/src/allennlp/allennlp/run.py", line 18, in run
main(prog="allennlp")
File "/home/YML/Jiaxin/scibert-master/src/allennlp/allennlp/commands/init.py", line 101, in main
import_submodules(package_name)
File "/home/YML/Jiaxin/scibert-master/src/allennlp/allennlp/common/util.py", line 323, in import_submodules
module = importlib.import_module(package_name)
File "/home/haorui/anaconda3/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'scibert'

Among them, my version:
Successfully installed allennlp blis-0.2.4 conllu-1.3.1 cymem-2.0.4 jsonlines-1.2.0 preshed-2.0.1 pytorch-transformers-1.1.0 spacy-2.1.9 thinc-7.0.8

Second, I don't know if the following installation error will affect the use.

it appears in the installation :"ERROR: en-core-web-sm 2.2.5 has requirement spacy>=2.2.2, but you'll have spacy 2.1.9 which is incompatible."

@CatalinaZ16
Copy link

I have the same problem!!

ModuleNotFoundError: No module named 'scibert'

@Yuanml1225
Copy link
Author

Yuanml1225 commented Nov 10, 2020 via email

@CatalinaZ16
Copy link

CatalinaZ16 commented Nov 10, 2020 via email

@ibrahimishag
Copy link

Of course, you too! Regards! El lun., 9 nov. 2020 a las 22:37, Yuanml1225 ([email protected]) escribió:

If you solve it, please contact me, thank you. 发自我的iPhone ------------------ Original ------------------ From: CatalinaZ16 @.> Date: Tue,Nov 10,2020 11:29 AM To: allenai/scibert @.> Cc: Yuanml1225 @.>, Author @.> Subject: Re: [allenai/scibert] No module named 'scibert'&RROR: en-core-web-sm 2.2.5 has requirement spacy>=2.2.2, but you'll have spacy 2.1.9 which is incompatible." (#109) I have the same problem!! ModuleNotFoundError: No module named 'scibert' — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#109 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM2MC5UBQUJKW52NQBTUK4DSPCYPZANCNFSM4TQD5NDQ .
-- Catalina Zapata Bioingeniera Universidad de Antioquia

Hello CatalinaZ16,
I wonder if you were able to solve this issue?, I ran into the same error; "ModuleNotFoundError: No module named 'scibert'
"

@ibrahimishag
Copy link

The issue was solved by moving the scibert module to the scripts folder.

@XuezhiCai
Copy link

@CatalinaZ16 @Yuanml1225 Hello my friends. The issue is solved by run "pip install -r requirements.txt" agian! Because something was wrong with the version of allennlp or other libraries.

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

4 participants