princeton-vl / DROID-SLAM

BSD 3-Clause "New" or "Revised" License
1.66k stars 273 forks source link

setup.py install failed #20

Closed TBetterman closed 3 months ago

TBetterman commented 2 years ago

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.

cuge1995 commented 2 years ago

same problem

snehahegdek commented 2 years ago

I'm having the same problem.

TBetterman commented 2 years ago

Hi, all, I have solved this problem @cuge1995 @snehahegdek :

Enjoy!

doomzzju commented 2 years ago

try python3 instead, man

zachteed commented 2 years ago

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

gujiamitu commented 2 years ago

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',
Mikhail2017 commented 4 months ago

It could be also connected to the cpu version of torch package installed using environment.yaml. I was not able to install environment using conda, because it hanged on the resolving stage and used mamba instead, unfortunately it led to the incorrect package wo cuda support. Solved it finally installing all the packages separately using both conda and pip