Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Error running pytext on Google Colab - libcudart.so.10.2: cannot open shared object file: No such file or directory #1498

Open
lucaslrolim opened this issue Oct 14, 2020 · 0 comments

Comments

@lucaslrolim
Copy link

Steps to reproduce

  1. Open Google Colab and select GPU Runtime

!pip install --quiet git+https://github.com/facebookresearch/pytext
!git clone https://github.com/facebookresearch/pytext.git
!mv pytext/tests/ 
  1. !pytext

Observed Results

Installation errors:

ERROR: kaggle 1.5.8 has requirement urllib3<1.25,>=1.21.1, but you'll have urllib3 1.25.10 which is incompatible.
ERROR: datascience 0.10.6 has requirement folium==0.2.1, but you'll have folium 0.8.3 which is incompatible.
ERROR: albumentations 0.1.12 has requirement imgaug<0.2.7,>=0.2.5, but you'll have imgaug 0.2.9 which is incompatible.
ERROR: opacus 0.9.1 has requirement future==0.18.2, but you'll have future 0.16.0 which is incompatible.
ERROR: opacus 0.9.1 has requirement numpy==1.19.2, but you'll have numpy 1.18.5 which is incompatible.
ERROR: opacus 0.9.1 has requirement Pillow==7.2.0, but you'll have pillow 7.0.0 which is incompatible.
ERROR: opacus 0.9.1 has requirement requests==2.24.0, but you'll have requests 2.23.0 which is incompatible.
ERROR: opacus 0.9.1 has requirement scipy==1.5.2, but you'll have scipy 1.4.1 which is incompatible.
ERROR: opacus 0.9.1 has requirement tqdm==4.49.0, but you'll have tqdm 4.41.1 which is incompatible.

Pytext execution error:

Traceback (most recent call last):
  File "/usr/local/bin/pytext", line 5, in <module>
    from pytext.main import main
  File "/usr/local/lib/python3.6/dist-packages/pytext/__init__.py", line 13, in <module>
    from pytext.task import load
  File "/usr/local/lib/python3.6/dist-packages/pytext/task/__init__.py", line 4, in <module>
    from .new_task import NewTask, _NewTask
  File "/usr/local/lib/python3.6/dist-packages/pytext/task/new_task.py", line 14, in <module>
    from pytext.models.model import BaseModel
  File "/usr/local/lib/python3.6/dist-packages/pytext/models/__init__.py", line 3, in <module>
    from .model import BaseModel, Model
  File "/usr/local/lib/python3.6/dist-packages/pytext/models/model.py", line 24, in <module>
    from .decoders import DecoderBase
  File "/usr/local/lib/python3.6/dist-packages/pytext/models/decoders/__init__.py", line 5, in <module>
    from .intent_slot_model_decoder import IntentSlotModelDecoder
  File "/usr/local/lib/python3.6/dist-packages/pytext/models/decoders/intent_slot_model_decoder.py", line 13, in <module>
    from .mlp_decoder import MLPDecoder
  File "/usr/local/lib/python3.6/dist-packages/pytext/models/decoders/mlp_decoder.py", line 9, in <module>
    from pytext.optimizer import get_activation
  File "/usr/local/lib/python3.6/dist-packages/pytext/optimizer/__init__.py", line 18, in <module>
    from pytext.optimizer.privacy_engine import PrivacyEngine  # noqa
  File "/usr/local/lib/python3.6/dist-packages/pytext/optimizer/privacy_engine.py", line 6, in <module>
    import opacus
  File "/usr/local/lib/python3.6/dist-packages/opacus/__init__.py", line 6, in <module>
    from .privacy_engine import PrivacyEngine
  File "/usr/local/lib/python3.6/dist-packages/opacus/privacy_engine.py", line 10, in <module>
    import torchcsprng as csprng
  File "/usr/local/lib/python3.6/dist-packages/torchcsprng/__init__.py", line 10, in <module>
    from torchcsprng._C import *
ImportError: libcudart.so.10.2: cannot open shared object file: No such file or directory

Expected result

https://pytext.readthedocs.io/en/master/train_your_first_model.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant