No module named _ext in dcn_v2.py
When I successful sh 'make.sh', I got this import error , is there anyone who have met the same problem before?
@CharlesShang Thanks for reply
By the way , my pytorch version is 1.1.0 , does it affects the result that should I dowdgrade it to 1.0.0?
me too...
Me too. When I run make.sh on Ubuntu 18.04 with cuda 9.0, it worked while run on Ubuntu 16.04 with cuda 7.5, it failed. I'm confused about it. I also met another problem:
ImportError:/home/xxx/DCNv2/_ext.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19UndefinedTensorImpl10_singletonE.
When I successful sh 'make.sh', I got this import error , is there anyone who have met the same problem before?
Can you tell me how do you successful sh 'make.sh'?need special configuration?and are you running it under Window10_64?
When I successful sh 'make.sh', I got this import error , is there anyone who have met the same problem before?
Can you tell me how do you successful sh 'make.sh'?need special configuration?and are you running it under Window10_64?
Yes,I run it in window10_64, you must change some configuration,
https://github.com/xingyizhou/CenterNet/issues/7
fllow this issues , look carefully
When I successful sh 'make.sh', I got this import error , is there anyone who have met the same problem before?
Can you tell me how do you successful sh 'make.sh'?need special configuration?and are you running it under Window10_64?
Yes,I run it in window10_64, you must change some configuration,
https://github.com/xingyizhou/CenterNet/issues/7fllow this issues , look carefully
Thanks!!!
Has any one solved it? I met the same problem.
python 3.6 works well
I just invoked python setup.py install (in a Conda environment) and this solved the problem.
ImportError:/home/xxx/DCNv2/_ext.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19UndefinedTensorImpl10_singletonE.
@zzzzwj did you fix this problem?
ImportError:/home/xxx/DCNv2/_ext.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19UndefinedTensorImpl10_singletonE.@zzzzwj did you fix this problem?
Sorry, I didn't. I switched to another machine after that. But when I try to run it again, it seems work now. All I did is removing the _ext.cpythonxxxx and recompiling it. But the environment may be not the same as it was when I raised this issue.
i fix this bug by
- delete whole package
- shift conda env to pytorch 0.4.0, python 3.6, cuda 9.0, 2080Ti(it doesn't matter I guess)
- cd DCNv2
- git checkout pytorch_0.4(then u will check directory has been changed)
- ./make.sh
- python test.py
- run
Good Luck guys;)
i fix this bug by
- delete whole package
- shift conda env to pytorch 0.4.0, python 3.6, cuda 9.0, 2080Ti(it doesn't matter I guess)
- cd DCNv2
- git checkout pytorch_0.4(then u will check directory has been changed)
- ./make.sh
- python test.py
- run
Good Luck guys;)
This is not the way it should be solved, since this error is supposed to appear when the user tries to migrate the network to Pytorch >= 1.0.
@CharlesShang can you provide a valid and definitive solution please? I followed the instructions, i launched python setup.py install and ./make.sh but it keeps saying ModuleNotFoundError: No module named '_ext'
ModuleNotFoundError: No module named '_ext'