DROID-SLAM
DROID-SLAM copied to clipboard
setup.py install failed
Hi, when i run python setup.py install, the compile error happened: TypeError: expected string or bytes-like object
Python version: 3.8 setuptools version: 50.3.0
Please give some advice if convenient, thanks.
same problem
I'm having the same problem.
Hi, all, I have solved this problem @cuge1995 @snehahegdek :
- open the cooresponding version.py
- Changed the code from match = self._regex.search(version) to match = self._regex.search(str(version))
- re-ran the code: python setup.py install
Enjoy!
try python3 instead, man
This issue seemed to be caused by the PyTorch update. I've updated the environment.yaml file, which I believe solves the issue.
if one of the previous errors in the cuda compilation is "nvcc fatal : Unsupported gpu architecture 'compute_80' \n ninja: build stopped: subcommand failed."the following solution may work. This is because that the mismatch between the expected computation power assignement in setup.py
between the actual power in your computer. So, if your computer gpu is RTX 2080 ti, the computation power parameters 8.0 and 8.6 can not be achieved. So, the solution of commenting the following lines (line 25, 26, 55, 56) in the setup.py
may work.
#'-gencode=arch=compute_80,code=sm_80',
#'-gencode=arch=compute_86,code=sm_86',