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

ImportError under Pytorch 1.5 (nightly) #160

Open
jerryzhang-ss opened this issue Mar 11, 2020 · 3 comments
Open

ImportError under Pytorch 1.5 (nightly) #160

jerryzhang-ss opened this issue Mar 11, 2020 · 3 comments

Comments

@jerryzhang-ss
Copy link

jerryzhang-ss commented Mar 11, 2020

Hi. I am trying to link warp-ctc to pytorch preview version, but I got this error:

Traceback (most recent call last):
  File "chineseocr/train_ocr.py", line 14, in <module>
    from warpctc_pytorch import CTCLoss
  File "/home/jerry/anaconda3/envs/ocr_1.5/lib/python3.6/site-packages/warpctc_pytorch-0.1-py3.6-linux-x86_64.egg/warpctc_pytorch/__init__.py", line 6, in <module>
    from ._warp_ctc import *
ImportError: /home/jerry/anaconda3/envs/ocr_1.5/lib/python3.6/site-packages/warpctc_pytorch-0.1-py3.6-linux-x86_64.egg/warpctc_pytorch/_warp_ctc.cpython-36m-x86_64-linux-gnu.so: undefined symbol: THPVariableClass

May I know how to solve this? Thanks for your help

@YongjieYang-YY
Copy link

The same issue with me. Do you know how to solve this problem?

@Stonesjtu
Copy link

Confirmed on pytorch 1.6.0 release.

I think the cpp extension API has some BC breaking changes.

I'm working on a patch on it, so stay tuned.

@Stonesjtu
Copy link

@jerryzhang-ss @YongjieYang-YY I solved this problem by re-compiling the pytorch binding after upgrading pytorch. Have you ever tried that before?

Maetveis pushed a commit to Maetveis/warp-ctc that referenced this issue Feb 17, 2022
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

3 participants