mit-han-lab / torchsparse

[MICRO'23, MLSys'22] TorchSparse: Efficient Training and Inference Framework for Sparse Convolution on GPUs.
https://torchsparse.mit.edu
MIT License
1.16k stars 132 forks source link

Install error #221

Closed LYX-SOUL closed 1 year ago

LYX-SOUL commented 1 year ago

Is there an existing issue for this?

Have you followed all the steps in the FAQ?

Current Behavior

My environment is shown below, the installation is not successful, how to solve it?Thanks! torchsparse_error

Error Line

ERROR: torchsparse-21.0+torch110cu111-cp37-cp37-linux X86 64.whl is not a supported wheel on this platform.

Environment

- GCC: 9.4.0
- NVCC: cuda_11.1.TC455_06.29190527_0
- PyTorch: 1.10.0+cu111
- PyTorch CUDA: 11.1

Full Error Log

Error Log [PUT YOUR ERROR LOG HERE]
zhijian-liu commented 1 year ago

@ys-2020, do we have a pre-built wheel for this environment configuration?

ys-2020 commented 1 year ago

Yes. We do have a pre-built wheel for this environment. Based on the information above, I think this error shouldn't be caused by the Python/CUDA environment. @LYX-SOUL Would you mind providing more information about your system (e.g., CPU architecture and Linux version)?

Best regards, Shang

LYX-SOUL commented 1 year ago

I use the command "uname -a", the result is: Linux b9168767d563 5.4.0-153-generic x86_64 x86_64 x86_64 GNU/Linux I use the command "cat /proc/version", the result is: Linux version 5.4.0-153-generic (buildd@bos03-amd64-008) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) @ys-2020 @zhijian-liu

douwenhao68 commented 1 year ago

@LYX-SOUL Try python -m pip debug --verbose to check the supported tags.
Maybe renaming the .whl file 'cp37-cp37' to 'cp37-cp37m' works. @ys-2020 However, it shows that the version is 1.4 under the wheel file 'torchsparse-2.1.0+torch112cu113-cp37-cp37m-linux_x86_64.whl', please let me know if I'm wrong.

LYX-SOUL commented 1 year ago

Renaming the .whl file 'cp37-cp37' to 'cp37-cp37m' can solve the problem, Thanks!

ys-2020 commented 1 year ago

Hi @douwenhao68! Thanks for pointing that out. I think renaming the .whl file to 'cp37-cp37m' will work. Actually we are now updating the wheel files on our pypi server to solve the problem.

As to the torchsparse-2.1.0+torch112cu113-cp37-cp37m-linux_x86_64.whl, I think the version under this wheel is 2.1.0 from my side. Could you provide more information about how did you get the wheel?

ys-2020 commented 1 year ago

Renaming the .whl file 'cp37-cp37' to 'cp37-cp37m' can solve the problem, Thanks!

Glad to hear that!

douwenhao68 commented 1 year ago

Hi @douwenhao68! Thanks for pointing that out. I think renaming the .whl file to 'cp37-cp37m' will work. Actually we are now updating the wheel files on our pypi server to solve the problem.

As to the torchsparse-2.1.0+torch112cu113-cp37-cp37m-linux_x86_64.whl, I think the version under this wheel is 2.1.0 from my side. Could you provide more information about how did you get the wheel?

I got the .whl file '[torchsparse-2.1.0+torch112cu113-cp37-cp37-linux_x86_64.whl' from the http://pypi.hanlab.ai/simple/torchsparse/ , then add the 'cp37m' to it.
Maybe I should wait for the pypi serve to update.

ys-2020 commented 1 year ago

Hi @douwenhao68! Thanks for pointing that out. I think renaming the .whl file to 'cp37-cp37m' will work. Actually we are now updating the wheel files on our pypi server to solve the problem. As to the torchsparse-2.1.0+torch112cu113-cp37-cp37m-linux_x86_64.whl, I think the version under this wheel is 2.1.0 from my side. Could you provide more information about how did you get the wheel?

I got the .whl file '[torchsparse-2.1.0+torch112cu113-cp37-cp37-linux_x86_64.whl' from the http://pypi.hanlab.ai/simple/torchsparse/ , then add the 'cp37m' to it. Maybe I should wait for the pypi serve to update.

That's weird. This should be the right wheel. I'll keep an eye on this problem when updating the pypi server.

By the way, how did you read the version number?

douwenhao68 commented 1 year ago

Hi @douwenhao68! Thanks for pointing that out. I think renaming the .whl file to 'cp37-cp37m' will work. Actually we are now updating the wheel files on our pypi server to solve the problem. As to the torchsparse-2.1.0+torch112cu113-cp37-cp37m-linux_x86_64.whl, I think the version under this wheel is 2.1.0 from my side. Could you provide more information about how did you get the wheel?

I got the .whl file '[torchsparse-2.1.0+torch112cu113-cp37-cp37-linux_x86_64.whl' from the http://pypi.hanlab.ai/simple/torchsparse/ , then add the 'cp37m' to it. Maybe I should wait for the pypi serve to update.

That's weird. This should be the right wheel. I'll keep an eye on this problem when updating the pypi server.

By the way, how did you read the version number?

By printing the __version__, the other modules are still old. Please notify me after the update. 栓Q!

ys-2020 commented 1 year ago

Hi @douwenhao68! Thanks for pointing that out. I think renaming the .whl file to 'cp37-cp37m' will work. Actually we are now updating the wheel files on our pypi server to solve the problem. As to the torchsparse-2.1.0+torch112cu113-cp37-cp37m-linux_x86_64.whl, I think the version under this wheel is 2.1.0 from my side. Could you provide more information about how did you get the wheel?

I got the .whl file '[torchsparse-2.1.0+torch112cu113-cp37-cp37-linux_x86_64.whl' from the http://pypi.hanlab.ai/simple/torchsparse/ , then add the 'cp37m' to it. Maybe I should wait for the pypi serve to update.

That's weird. This should be the right wheel. I'll keep an eye on this problem when updating the pypi server. By the way, how did you read the version number?

By printing the __version__, the other modules are still old. Please notify me after the update. 栓Q!

Sure! I will inform you when the update is finished. But I still think this problem shouldn't be caused by the wheels.

I also printed the torchsparse.__version__ under this wheel, and got 2.1.0+torch112cu113. Maybe you need to check if there is an old version of TorchSparse installed in your environment or if a wrong version.py is included in your import path?

douwenhao68 commented 1 year ago

Sry, it seems like a fault in my copied env.