AttributeError: 'bool' object has no attribute 'rfind'

Hi
Any idea on how to fix this error?

$ python setup.py clean
Building wheel torch-1.4.0a0+f2a35db
Traceback (most recent call last):
  File "setup.py", line 753, in <module>
    extensions, cmdclass, packages, entry_points = configure_extension_build()
  File "setup.py", line 634, in configure_extension_build
    os.path.dirname(cmake_cache_vars['CUDA_CUDA_LIB']))
  File "/usr/lib64/python2.7/posixpath.py", line 129, in dirname
    i = p.rfind('/') + 1
AttributeError: 'bool' object has no attribute 'rfind'

Additional info:

$ python --version
Python 2.7.5
$ git describe --tags
v1.4.0a0-734-gf2a35db

How did you define the CUDA arguments?
It seems Python has problems splitting the path.

I have multiple versions of cuda (messy!).
How can I check which version was fed to setup.py?

Are you passing some arguments as e.g. CUDA_HOME?
Do you have the output of your last build?

Also, since you want to clean your build, could you alternatively remove all files defined in .gitignore manually (reference code).

Also, since you want to clean your build, could you alternatively remove all files defined in .gitignore manually (reference code).

To many files thereā€¦
I am sure that I set a CUDA path, but can not find that

$ grep -ri cuda build
build/CMakeCache.txt://Statically link CUDA libraries
build/CMakeCache.txt:CAFFE2_STATIC_LINK_CUDA:BOOL=OFF
build/CMakeCache.txt://Use CUDA
build/CMakeCache.txt:USE_CUDA:BOOL=True
build/CMakeCache.txt://Use NVRTC. Only available if USE_CUDA is on.

Am I looking into the right folder?