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 (undefined symbol) #5

Open
SiddharthRaoA opened this issue Jun 13, 2021 · 8 comments
Open

ImportError (undefined symbol) #5

SiddharthRaoA opened this issue Jun 13, 2021 · 8 comments

Comments

@SiddharthRaoA
Copy link

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
Copy link
Owner

soap117 commented Jun 14, 2021 via email

@rubywangruobin
Copy link

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
Copy link

Hi, I am getting the same error. I followed your readme (+ #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
Copy link

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

was this ever resolved?

@shalinie22
Copy link

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
Copy link
Owner

soap117 commented Jul 5, 2023

compile the corner net package as the guideline.

@soap117
Copy link
Owner

soap117 commented Jul 5, 2023

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

@sarth1110
Copy link

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?

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

7 participants