DCNv2 icon indicating copy to clipboard operation
DCNv2 copied to clipboard

No module named _ext in dcn_v2.py

Open heartInsert opened this issue 6 years ago • 16 comments

When I successful sh 'make.sh', I got this import error , is there anyone who have met the same problem before?

heartInsert avatar Jun 17 '19 09:06 heartInsert

@CharlesShang Thanks for reply

heartInsert avatar Jun 17 '19 09:06 heartInsert

By the way , my pytorch version is 1.1.0 , does it affects the result that should I dowdgrade it to 1.0.0?

heartInsert avatar Jun 17 '19 09:06 heartInsert

me too...

maminglang1991 avatar Jun 18 '19 09:06 maminglang1991

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.

zzzzwj avatar Jun 20 '19 09:06 zzzzwj

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?

kevin-collins avatar Jul 07 '19 14:07 kevin-collins

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

heartInsert avatar Jul 07 '19 14:07 heartInsert

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

Thanks!!!

kevin-collins avatar Jul 08 '19 08:07 kevin-collins

Has any one solved it? I met the same problem.

SkyeLu avatar Aug 09 '19 03:08 SkyeLu

python 3.6 works well

Fighting-JJ avatar Aug 10 '19 11:08 Fighting-JJ

I just invoked python setup.py install (in a Conda environment) and this solved the problem.

ntoxeg avatar Aug 12 '19 11:08 ntoxeg

ImportError:/home/xxx/DCNv2/_ext.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19UndefinedTensorImpl10_singletonE.

@zzzzwj did you fix this problem?

huohuotm avatar Oct 11 '19 06:10 huohuotm

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.

zzzzwj avatar Oct 14 '19 09:10 zzzzwj

i fix this bug by

  1. delete whole package
  2. shift conda env to pytorch 0.4.0, python 3.6, cuda 9.0, 2080Ti(it doesn't matter I guess)
  3. cd DCNv2
  4. git checkout pytorch_0.4(then u will check directory has been changed)
  5. ./make.sh
  6. python test.py
  7. run

Good Luck guys;)

IrisDinge avatar Oct 24 '19 12:10 IrisDinge

i fix this bug by

  1. delete whole package
  2. shift conda env to pytorch 0.4.0, python 3.6, cuda 9.0, 2080Ti(it doesn't matter I guess)
  3. cd DCNv2
  4. git checkout pytorch_0.4(then u will check directory has been changed)
  5. ./make.sh
  6. python test.py
  7. 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'

dankydev avatar Jul 01 '21 15:07 dankydev

ModuleNotFoundError: No module named '_ext'

shuyu888 avatar Jun 09 '22 06:06 shuyu888