scibert icon indicating copy to clipboard operation
scibert copied to clipboard

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."

Open Yuanml1225 opened this issue 3 years ago • 6 comments

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."

Yuanml1225 avatar Nov 10 '20 03:11 Yuanml1225

I have the same problem!!

ModuleNotFoundError: No module named 'scibert'

CatalinaZ16 avatar Nov 10 '20 03:11 CatalinaZ16

If you solve it, please contact me, thank you.

发自我的iPhone

------------------ Original ------------------ From: CatalinaZ16 <[email protected]> Date: Tue,Nov 10,2020 11:29 AM To: allenai/scibert <[email protected]> Cc: Yuanml1225 <[email protected]>, Author <[email protected]> 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.

Yuanml1225 avatar Nov 10 '20 03:11 Yuanml1225

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 <[email protected]> Date: Tue,Nov 10,2020 11:29 AM To: allenai/scibert <[email protected]> Cc: Yuanml1225 <[email protected]>, Author <[email protected]>

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 https://github.com/allenai/scibert/issues/109#issuecomment-724428969, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM2MC5UBQUJKW52NQBTUK4DSPCYPZANCNFSM4TQD5NDQ .

-- Catalina Zapata Bioingeniera Universidad de Antioquia

CatalinaZ16 avatar Nov 10 '20 13:11 CatalinaZ16

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 avatar Feb 16 '21 07:02 ibrahimishag

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

ibrahimishag avatar Feb 16 '21 08:02 ibrahimishag

@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.

XuezhiCai avatar Oct 18 '21 20:10 XuezhiCai