gluon-nlp
gluon-nlp copied to clipboard
Problems not being imported from colab
Description
Problems not being imported from colab
!pip install mxnet gluonnlp pandas tqdm !pip install sentencepiece !pip install transformers !pip install torch !pip install git+https://[email protected]/SKTBrain/KoBERT.git@master import gluonnlp as nlp
Error Message
ImportError Traceback (most recent call last)
6 frames
/usr/local/lib/python3.10/dist-packages/gluonnlp/init.py in
/usr/local/lib/python3.10/dist-packages/gluonnlp/data/init.py in
/usr/local/lib/python3.10/dist-packages/gluonnlp/data/corpora/init.py in
/usr/local/lib/python3.10/dist-packages/gluonnlp/data/corpora/google_billion_word.py in
/usr/local/lib/python3.10/dist-packages/gluonnlp/vocab/init.py in
/usr/local/lib/python3.10/dist-packages/gluonnlp/vocab/bert.py in
/usr/local/lib/python3.10/dist-packages/gluonnlp/data/transforms.py in
ImportError: /usr/local/lib/python3.10/dist-packages/gluonnlp/data/fast_bert_tokenizer.cpython-310-x86_64-linux-gnu.so: undefined symbol: _PyGen_Send
NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the "Open Examples" button below.
To Reproduce
run in colab
Steps to reproduce
(Paste the commands you ran that produced the error.)
What have you tried to solve it?
Environment
Title: ModuleNotFoundError: No module named 'gluonnlp' in Google Colab
Description:
While working in Google Colab, I have encountered a ModuleNotFoundError with the message "No module named 'gluonnlp'" despite installing the 'gluonnlp' module using !pip install gluonnlp==0.10.0 command.
Steps to Reproduce:
Open Google Colab.
Execute the command !pip install gluonnlp==0.10.0. Import the 'gluonnlp' module using import gluonnlp.
Expected Behavior:
The module 'gluonnlp' should be successfully installed and imported without any errors.
Actual Behavior:
The code fails to import the 'gluonnlp' module and raises the following error:
ModuleNotFoundError: No module named 'gluonnlp'