Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' #655

Open
auk003150 opened this issue Nov 17, 2022 · 3 comments
Open

Comments

@auk003150
Copy link

I have followed the stable version in the installation page https://kaolin.readthedocs.io/en/stable/notes/installation.html, and I have this issue

C:\Users\miche\kaolin>python setup.py develop
setup.py:37: UserWarning: Kaolin is compatible with PyTorch >=1.5.0, <=1.11.0, but found version 1.12.1+cu113. Continuing with the installed version as IGNORE_TORCH_VER is set.
f'Kaolin is compatible with PyTorch >={TORCH_MIN_VER}, <={TORCH_MAX_VER}, '
Traceback (most recent call last):
File "setup.py", line 300, in
ext_modules=get_extensions(),
File "setup.py", line 218, in get_extensions
include_dirs = get_include_dirs()
File "setup.py", line 270, in get_include_dirs
_, bare_metal_major, _ = get_cuda_bare_metal_version(CUDA_HOME)
File "setup.py", line 105, in get_cuda_bare_metal_version
raw_output = subprocess.check_output([cuda_dir + "/bin/nvcc", "-V"], universal_newlines=True)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Please review and help for this issue. Thanks a lot to anyone who may solve it.

@DopeorNope-Lee
Copy link

In this case, CUDA_HOME us not defined yet.
It means, there is path problem or not installed CUDA yet.
So, If you appropriate install CUDA, then see the envs path..!

Good Luck

@auk003150
Copy link
Author

Thanks! @DopeorNope-Lee

And now I have another issue

C:/Users/miche/AppData/Local/Programs/Python/Python37/lib/site-packages/torch/include\ATen/record_function.h(19): warning: modifier is ignored on an enum specifier

Error: Internal Compiler Error (codegen): "there was an error in verifying the lgenfe output!"

error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.0\\bin\\nvcc.exe' failed with exit status 2

I searched online and those answers said it will show a specific file uncapable, but I can't see it from the output.

@Caenorst
Copy link
Collaborator

Hi @auk003150 , please provide full logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants