Issue with running inference.py
Hi there. I recently installed DiffDock, with all steps of the installation proceeding fine. When I attempted to test the installation by running the inference example in the README, the following traceback was returned:-
/home/khaledabdel/software/miniconda3/envs/diffdock/lib/python3.8/site-packages/torch_geometric/typing.py:31: UserWarning: An issue occurred while importing 'torch-scatter'. Disabling its usage. Stacktrace: /home/khaledabdel/software/miniconda3/envs/diffdock/lib/python3.8/site-packages/torch_scatter/_scatter_cuda.so: undefined symbol: _ZN2at4_ops6narrow4callERKNS_6TensorElll
warnings.warn(f"An issue occurred while importing 'torch-scatter'. "
/home/khaledabdel/software/miniconda3/envs/diffdock/lib/python3.8/site-packages/torch_geometric/typing.py:42: UserWarning: An issue occurred while importing 'torch-sparse'. Disabling its usage. Stacktrace: /home/khaledabdel/software/miniconda3/envs/diffdock/lib/python3.8/site-packages/torch_sparse/_diag_cuda.so: undefined symbol: _ZN3c106detail19maybe_wrap_dim_slowEllb
warnings.warn(f"An issue occurred while importing 'torch-sparse'. "
Traceback (most recent call last):
File "inference.py", line 10, in
From looking at this, it seems like something went wrong with the installation, as it appears some packages cannot be imported properly. A bit of clarification would be highly appreciative here.
System is a CentOS 7 machine, with CUDA 12.0 installed.
Thanks for your time
It may because your CUDA and torch version is not match, my suggestion is to check from the official website of pytorch and reinstall them.
You can check it my solution here!