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

_torchtext.so: undefined symbol: _ZTVN5torch3jit6MethodE #3176

Closed
Alexey322 opened this issue Nov 12, 2021 · 15 comments
Closed

_torchtext.so: undefined symbol: _ZTVN5torch3jit6MethodE #3176

Alexey322 opened this issue Nov 12, 2021 · 15 comments
Labels
bug Something isn't working

Comments

@Alexey322
Copy link

Сan't import nemo.collections.asr in google colab notebook https://colab.research.google.com/github/NVIDIA/NeMo/blob/stable/tutorials/asr/ASR_with_NeMo.ipynb.
This worked on 11/11/2021, starting today (12/11/2021), the error appears:
ImportError: /usr/local/lib/python3.7/dist-packages/torchtext/_torchtext.so: undefined symbol: _ZTVN5torch3jit6MethodE

@Alexey322 Alexey322 added the bug Something isn't working label Nov 12, 2021
@titu1994
Copy link
Collaborator

Could you check the torch version installed ? As well as versions of torchtext and torchaudio? If colab has updated to PT 1.10, you will need to use the r1.5.0 branch instead of main or stable

@Alexey322
Copy link
Author

@titu1994 Thanks for your reply.

By default, Colab now uses torch==1.10.0 + cu111, torchtext==0.11.0.
Indeed, BRANCH = 'r1.5.0' works without problems.
Could you tell me why this error occurs with BRANCH = 'r1.4.0'?

@okuchaiev
Copy link
Member

please use r1.5.0 branch with pytorch 1.10.0. Closing

@porrasbrand
Copy link

How do I use the branch -- can someone please share the whole installation prompt example on how to do this ? thanks

@grofattila
Copy link

How do I use the branch -- can someone please share the whole installation prompt example on how to do this ? thanks

BRANCH = 'r1.5.0'
pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[nlp]

@osinkolu
Copy link

I guess this should be updated in the tutorials, save newbies a ton on google searching.

@titu1994
Copy link
Collaborator

This is present at the top of most Nemo notebooks already.

@osinkolu
Copy link

Great!

@sahoodib
Copy link

I am getting same issue even with BRANCH = 'r1.5.0'
error :- ImportError: /usr/local/lib/python3.7/dist-packages/torchtext/_torchtext.so: undefined symbol: _ZTVN5torch3jit6MethodE

@osinkolu
Copy link

@sahoodib are you running the notebook directly on colab or your local PC, there were no issues during my run on colab.

@sahoodib
Copy link

@osinkolu I am running in Colab

@osinkolu
Copy link

@sahoodib it works fine on colab, uncomment "exit" in the first cell of the code.

@sahoodib
Copy link

@osinkolu it worked fine when I connected with the GPU.

@osinkolu
Copy link

great!

@sahoodib
Copy link

sahoodib commented Jan 5, 2022

Biomegatron is unsupported in Branch=1.5.0, if I degrade the branch I stick with the above error. Any ideas to resolve the issue.

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

7 participants