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: torch.utils.ffi is deprecated. Please use cpp extensions instead. #22

Open
Ronales opened this issue Feb 20, 2019 · 5 comments

Comments

@Ronales
Copy link

Ronales commented Feb 20, 2019

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!

@bmauchly
Copy link

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

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.

@Ronales
Copy link
Author

Ronales commented Feb 25, 2019

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

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

@huangpan2507
Copy link

huangpan2507 commented Mar 9, 2020

为了修复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

@JohnPekl
Copy link

JohnPekl commented Nov 8, 2021

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.

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

4 participants