MOTDT icon indicating copy to clipboard operation
MOTDT copied to clipboard

ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.

Open Ronales opened this issue 6 years ago • 5 comments

ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.

What should I do for this error when I run sh make.sh ? Thank you!

Ronales avatar Feb 20 '19 07:02 Ronales

I backed off torch to 4.0.0 which fixed that problem. That leaves me with another File "/root/MOTDT/models/psroi_pooling/_ext/psroi_pooling/init.py", line 3, in from ._psroi_pooling import lib as _lib, ffi as _ffi ImportError: /root/MOTDT/models/psroi_pooling/_ext/psroi_pooling/_psroi_pooling.so: undefined symbol: __cudaPopCallConfiguration

bmauchly avatar Feb 20 '19 18:02 bmauchly

to fix the psroi_pooling pooling error, I went back to CUDA 9.0 (from 10) which required GCC 6. those changes got the basic test code to run.

bmauchly avatar Feb 20 '19 21:02 bmauchly

为了修复psroi_pooling池错误,我回到了CUDA 9.0(从10开始) ,这需要GCC 6.这些更改得到了运行的基本测试代码。

I fix this problem recently,I change the pytorch version back to 0.4.

Ronales avatar Feb 25 '19 04:02 Ronales

为了修复psroi_pooling池错误,我回到了CUDA 9.0(从10开始) ,这需要GCC 6.这些更改得到了运行的基本测试代码。

I fix this problem recently,I change the pytorch version back to 0.4.

can u show your version of those packages : pytorch torch torchvision cuda cudnn ? thanks

huangpan2507 avatar Mar 09 '20 14:03 huangpan2507

I cloned this code with an appropriated conda set up and could run the code, refer to my repository fork MOTDT, scroll to the end of readme. You can also check my conda environment packages version.

JohnPekl avatar Nov 08 '21 14:11 JohnPekl