Open ayushnoori opened 2 years ago
The problem should be caused by a mismatch between cudA, PyTorch, and PyTorle-Geometric versions. Install PyTorch - Geometric according to the tutorial on the official website https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html. I have installed CUDa and Pytorle-Geometric several times with other tutorials and encountered no response or errors. Only refer to the official website installation this time successfully. My installation steps are as follows:
conda create -n graphormer python=3.9
conda activate graphormer
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
pip install torch-scatter -f https://data.pyg.org/whl/torch-1.11.0+cu113.html
pip install torch-sparse -f https://data.pyg.org/whl/torch-1.11.0+cu113.html
pip install torch-geometric
pip install tensorboardX
pip install ogb
pip install rdkit-pypi
pip install dgl-cu113 dglgo -f https://data.dgl.ai/wheels/repo.html
pip install lmdb
Before run bash zinc.sh
:
cd fairseq
pip install . --use-feature=in-tree-build
python setup.py build_ext --inplace
pip uninstall setuptools
The problem should be caused by a mismatch between cudA, PyTorch, and PyTorle-Geometric versions. Install PyTorch - Geometric according to the tutorial on the official website https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html. I have installed CUDa and Pytorle-Geometric several times with other tutorials and encountered no response or errors. Only refer to the official website installation this time successfully. My installation steps are as follows:
conda create -n graphormer python=3.9 conda activate graphormer conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch pip install torch-scatter -f https://data.pyg.org/whl/torch-1.11.0+cu113.html pip install torch-sparse -f https://data.pyg.org/whl/torch-1.11.0+cu113.html pip install torch-geometric pip install tensorboardX pip install ogb pip install rdkit-pypi pip install dgl-cu113 dglgo -f https://data.dgl.ai/wheels/repo.html pip install lmdb
Before run
bash zinc.sh
:cd fairseq pip install . --use-feature=in-tree-build python setup.py build_ext --inplace pip uninstall setuptools
Hi @skye95git , thanks so much for providing the information. We will look into this by following your hint.
Hi @skye95git @zhengsx, I tried exactly these steps (up to pip uninstall setuptools
), however, encountered the following error:
(graphormer) [an252@compute-g-16-254 property_prediction]$ bash zinc.sh
Error processing line 1 of /home/an252/.conda/envs/graphormer_3/lib/python3.9/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/home/an252/.conda/envs/graphormer_3/lib/python3.9/site.py", line 169, in addpackage
exec(line)
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named '_distutils_hack'
I also discovered that the GCC >= 5.0 is required, otherwise running python setup.py build_ext --inplace
returns an error: Your compiler (g++ 4.8.5) may be ABI-incompatible with PyTorch!
and gcc: error: unrecognized command line option ‘-std=c++14’
. Thus, I ran module load gcc/9.2.0
to fix this issue (see here).
I would be grateful for your advice on how to resolve.
pip uninstall setuptools
, I do get error No module named '_distutils_hack'
. But the code still runs. GCC 10.3.0
Driver Version: 450.80.02
Hi Graphormer Team - thanks for this excellent codebase! I am opening a new issue because two similar issues have been previously closed. They are https://github.com/microsoft/Graphormer/issues/100 by @skye95git and https://github.com/microsoft/Graphormer/issues/99 by @mswzeus.
Bug
In short, despite carefully following the Graphormer installation instructions, there is no response at the console after running
bash zinc.sh
and interrupting the script produces aFile "<frozen importlib._bootstrap>", line 107, in acquire
error message.Failed Solutions
In https://github.com/microsoft/Graphormer/issues/99, it was suggested that
pip uninstall setuptools
would fix the issue; however, this was not the case. Rather, runningbash zinc.sh
now throwsterminate called after throwing an instance of 'std::bad_alloc'
(which is fixed by reinstallingsetuptools
).From @zhengsx in https://github.com/microsoft/Graphormer/issues/100:
Unfortunately, downgrading to
torch.version.cuda==10.2
did not fix the issue either (i.e.,bash zinc.sh
still hangs). Should I find a solution, I will follow-up on this thread for future reference.