soap117 / DeepRule

BSD 3-Clause "New" or "Revised" License
125 stars 42 forks source link

ImportError (undefined symbol) #5

Open SiddharthRaoA opened 3 years ago

SiddharthRaoA commented 3 years ago

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
soap117 commented 3 years ago

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.

rubywangruobin commented 2 years ago

Hi Junyu,

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

Ruby

werty12121 commented 2 years ago

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?

nigelhenry commented 1 year ago

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

was this ever resolved?

shalinie22 commented 12 months ago

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

soap117 commented 12 months ago

compile the corner net package as the guideline.

soap117 commented 12 months ago

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

sarth1110 commented 2 months ago

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?