DROID-SLAM icon indicating copy to clipboard operation
DROID-SLAM copied to clipboard

setup.py install failed

Open TBetterman opened this issue 3 years ago • 6 comments

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

image

Please give some advice if convenient, thanks.

TBetterman avatar Nov 12 '21 13:11 TBetterman

same problem

cuge1995 avatar Nov 14 '21 13:11 cuge1995

I'm having the same problem.

snehahegdek avatar Nov 15 '21 06:11 snehahegdek

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!

TBetterman avatar Nov 15 '21 08:11 TBetterman

try python3 instead, man

doomzzju avatar Nov 22 '21 02:11 doomzzju

This issue seemed to be caused by the PyTorch update. I've updated the environment.yaml file, which I believe solves the issue.

zachteed avatar Nov 30 '21 03:11 zachteed

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',

gujiamitu avatar Jan 19 '22 08:01 gujiamitu