TypeError: dist must be a Distribution instance
See original GitHub issueWhen I run sh make.sh
, then the following comes up, how can I overcome this problem?
and my environment:
- Ubuntu18.04
- Python3.7(Anoconda)
- Pytorch1.0.1 Help!!!
running build_ext skipping 'model/utils/bbox.c' Cython extension (up-to-date) skipping 'pycocotools/_mask.c' Cython extension (up-to-date) Compiling nms kernels by nvcc... Including CUDA code. /home/renb/project/faster-rcnn.pytorch/lib/model/nms ['/home/renb/project/faster-rcnn.pytorch/lib/model/nms/src/nms_cuda_kernel.cu.o'] Traceback (most recent call last): File "build.py", line 35, in <module> extra_objects=extra_objects File "/home/renb/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 228, in __init__ super(BuildExtension, self).__init__(*args, **kwargs) File "/home/renb/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 163, in __init__ _Command.__init__(self, dist) File "/home/renb/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 Compiling roi pooling kernels by nvcc... /home/renb/project/faster-rcnn.pytorch/lib/model/roi_pooling Including CUDA code. Traceback (most recent call last): File "build.py", line 32, in <module> extra_objects=extra_objects File "/home/renb/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 228, in __init__ super(BuildExtension, self).__init__(*args, **kwargs) File "/home/renb/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 163, in __init__ _Command.__init__(self, dist) File "/home/renb/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 Compiling roi align kernels by nvcc... /home/renb/project/faster-rcnn.pytorch/lib/model/roi_align Including CUDA code. Traceback (most recent call last): File "build.py", line 35, in <module> extra_objects=extra_objects File "/home/renb/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 228, in __init__ super(BuildExtension, self).__init__(*args, **kwargs) File "/home/renb/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 163, in __init__ _Command.__init__(self, dist) File "/home/renb/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 Compiling roi crop kernels by nvcc... Including CUDA code. /home/renb/project/faster-rcnn.pytorch/lib/model/roi_crop Traceback (most recent call last): File "build.py", line 32, in <module> extra_objects=extra_objects File "/home/renb/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 228, in __init__ super(BuildExtension, self).__init__(*args, **kwargs) File "/home/renb/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 163, in __init__ _Command.__init__(self, dist) File "/home/renb/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
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:14 (1 by maintainers)
Top GitHub Comments
Which CUDA and GCC version do you use?
EDIT: If you’re using pytorch-1.0 you should use the pytorch-1.0 branch as well (
git checkout pytorch-1.0
) and follow the instructions on that branch (https://github.com/jwyang/faster-rcnn.pytorch/tree/pytorch-1.0)So you should run:
python setup.py build develop
and not:sh make.sh
yes,I clone the faster-rcnn.pytorch-1.0 and run python step.py build develop, and follow the 1.0 instruction