question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: /maskrcnn-benchmark/maskrcnn_benchmark/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19UndefinedTensorImpl10_singletonE

See original GitHub issue

❓ Questions and Help

I am getting this error, when importing _C.

ImportError: /maskrcnn-benchmark/maskrcnn_benchmark/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19UndefinedTensorImpl10_singletonE

This is my machine info.

>>> torch.__version__
'1.0.1.post2'
>>> torch.version.cuda
'10.0.130'

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
dannyhung1128commented, Apr 22, 2019

@ZhangK9509 you’ll need to import torch before you execute from maskrcnn_benchmark import _C

1reaction
dattran2346commented, Jun 22, 2019

@dannyhung1128 import torch before from maskrcnn_benchmark import _C worked for me, but why?

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyExc_ImportError when embedding Python in C - Stack ...
p.p.s. My PyInitialize() is wrapped in a class and so dlopen() / PyInitialize() is done in the constructor and dlclose() / PyFinalize() is...
Read more >
ImportError : undefined symbol - Google Groups
hi cython users: i am new to cython.today i want to use cython to wapper the localmemcache project. i wapper one and successfuly...
Read more >
libpetsc.so: undefined symbol: _SCOTCHintRandVal
Hello,. I'm currently attempting to install fenics on one of our cluster machines. So far I have managed to build fenics using dorsal....
Read more >
ImportError of 'undefined symbol' - Support
so.6 (after running newinstall.sh). ImportError while importing test module '/array/users/ytchen/hscPipe/stack/miniconda3 ...
Read more >
Import error undefined symbol and Anaconda python
Yes and no: PyRosetta is providing Python bindings to access Rosetta librarys in Python. So technically it can give you access to almost...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found