DeepRule icon indicating copy to clipboard operation
DeepRule copied to clipboard

ImportError (undefined symbol)

Open SiddharthRaoA opened this issue 3 years ago • 8 comments

Hey, I'm getting the following error when I try to run the test code. Is this a version error or a bug in the code itself? If it is a version error, could you let me know what versions of pytorch and torchvision should I use?

I tried with multiple versions but got the same error every time. I have tried torch 0.4 + torchvision 0.2.1 (the one given in the CornerNet repo) and torch 1.1 + torchvision 0.2.1 (the one given in this repo), but both seem to give the same error.

Please let me know what changes I should make to be able to run the code. Thanks in advance!

Traceback (most recent call last):
  File "test_pipe_type_cloud.py", line 14, in <module>
    from nnet.py_factory import NetworkFactory
  File "./DeepRule/nnet/py_factory.py", line 7, in <module>
    from models.py_utils.data_parallel import DataParallel
  File "./DeepRule/models/py_utils/__init__.py", line 6, in <module>
    from ._cpools import TopPool, BottomPool, LeftPool, RightPool
  File "./DeepRule/models/py_utils/_cpools/__init__.py", line 5, in <module>
    from models.py_utils._cpools import top_pool, bottom_pool, left_pool, right_pool
ImportError: ./DeepRule/models/py_utils/_cpools/top_pool.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZNSt19basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev

SiddharthRaoA avatar Jun 13 '21 21:06 SiddharthRaoA

Hi it seems like the version problem. I would suggest you to check pytorch version. If you would like to use the latest pytorch please see my last reply for the issue.

Best, Junyu

在 2021年6月14日 上午5:39,Siddharth Rao A @.***>写道:

Hey, I'm getting the following error when I try to run the test code. Is this a version error or a bug in the code itself? If it is a version error, could you let me know what versions of pytorch and torchvision should I use?

I tried with multiple versions but got the same error every time. I have tried torch 0.4 + torchvision 0.2.1 (the one given in the CornerNet repo) and torch 1.1 + torchvision 0.2.1 (the one given in this repo), but both seem to give the same error.

Please let me know what changes I should make to be able to run the code. Thanks in advance!

Traceback (most recent call last): File "test_pipe_type_cloud.py", line 14, in from nnet.py_factory import NetworkFactory File "./DeepRule/nnet/py_factory.py", line 7, in from models.py_utils.data_parallel import DataParallel File "./DeepRule/models/py_utils/init.py", line 6, in from ._cpools import TopPool, BottomPool, LeftPool, RightPool File "./DeepRule/models/py_utils/_cpools/init.py", line 5, in from models.py_utils._cpools import top_pool, bottom_pool, left_pool, right_pool ImportError: ./DeepRule/models/py_utils/_cpools/top_pool.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZNSt19basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev

― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/soap117/DeepRule/issues/5, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGXQFDXUBL47HOUGBFTLVQDTSUQQHANCNFSM46UDWIOQ.

soap117 avatar Jun 14 '21 00:06 soap117

Hi Junyu,

May I know what did you reply to him? I have the same issue with trying multiple combination but still failed.

Ruby

rubywangruobin avatar Mar 03 '22 04:03 rubywangruobin

Hi, I am getting the same error. I followed your readme (+ https://github.com/soap117/DeepRule/issues/3). I even tried installing it on a blank linux docker image but still getting this error. (Pytorch in version 1.1.0). Has anyone managed to solve this problem?

werty12121 avatar May 30 '22 10:05 werty12121

I'm getting a similar error. undefined symbol: _ZTIN3c1021AutogradMetaInterfaceE

was this ever resolved?

nigelhenry avatar Mar 30 '23 10:03 nigelhenry

Hi

I am also getting the same error as below while training and also while running the command (python manage.py runserver 8800), Please suggest a solution for this ASAP

File "/content/drive/MyDrive/DeepRule/models/py_utils/_cpools/top_pool.py", line 6, in bootstrap imp.load_dynamic(name,file) File "/usr/lib/python3.8/imp.py", line 342, in load_dynamic return _load(spec)

ImportError: /content/drive/MyDrive/DeepRule/models/py_utils/_cpools/top_pool.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZTIN3c1021AutogradMetaInterfaceE

shalinie22 avatar Jul 05 '23 12:07 shalinie22

compile the corner net package as the guideline.

soap117 avatar Jul 05 '23 17:07 soap117

Do not use the uploaded complied files, and download the latest codes.

soap117 avatar Jul 05 '23 17:07 soap117

Hi, I am also facing the same problem "ImportError: /chart_extraction/DeepRule/models/py_utils/_cpools/top_pool.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZTIN3c1021AutogradMetaInterfaceE" during evaluation (test_pipe_type_cloud.py). I followed the Readme file compiling the Corner Pooling Layers as well as NMS. has anyone solved this error yet?

sarth1110 avatar Apr 10 '24 00:04 sarth1110