Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TypeError: dist must be a Distribution instance #95

Open
LJ1234com opened this issue Aug 4, 2019 · 5 comments
Open

TypeError: dist must be a Distribution instance #95

LJ1234com opened this issue Aug 4, 2019 · 5 comments

Comments

@LJ1234com
Copy link

‘ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.’ was reported when executing 'python3 build.py'. Then i fixed this problem using the link https://blog.csdn.net/ShuqiaoS/article/details/88420326

But a new error occured,
Traceback (most recent call last):
File "/home/lijian/study/cv/faster_rcnn_pytorch/faster_rcnn_pytorch/faster_rcnn/roi_pooling/build.py", line 31, in
extra_objects=extra_objects
File "/home/lijian/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 228, in init
super(BuildExtension, self).init(*args, **kwargs)
File "/home/lijian/anaconda3/lib/python3.7/site-packages/setuptools/init.py", line 163, in init
_Command.init(self, dist)
File "/home/lijian/anaconda3/lib/python3.7/distutils/cmd.py", line 57, in init
raise TypeError("dist must be a Distribution instance")
TypeError: dist must be a Distribution instance

@dongxijia
Copy link

I got the same problem, did you fix it ?

@dongxijia
Copy link

I find it because the vesion the torch is too high. And I change 1.01 to 0.4.1, it success.

@Don98
Copy link

Don98 commented Sep 16, 2020

It is same as me , but I don't want to change the torch from 1.01 to 0.4.1 reason why I use this rep is it support the torhc 1.0.1 !

@henbucuoshanghai
Copy link

the same error
_Command.init(self, dist)
File "/home/lijian/anaconda3/lib/python3.7/distutils/cmd.py", line 57, in init
raise TypeError("dist must be a Distribution instance")
TypeError: dist must be a Distribution instance

@henbucuoshanghai
Copy link

how to slove it???

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants