microsoft / Graphormer

Graphormer is a general-purpose deep learning backbone for molecular modeling.
MIT License
2k stars 324 forks source link

An error occurs"TypeError: 'type' object is not subscriptable" when I run an example。 #116

Open tbontbiaq opened 2 years ago

tbontbiaq commented 2 years ago

I clone the nearest code from Graphormer branch [2b0b9a7],and I install fairseq branch[@ 98ebe4f].The virtual environments was shown,.But when I run the code, it compiles error:
**

da719c963c519b3d4118c114a9da1d4

** `Package Version


antlr4-python3-runtime 4.8 bitarray 2.5.1 certifi 2022.5.18.1 cffi 1.15.0 charset-normalizer 2.0.12 colorama 0.4.4 Cython 0.29.30 dgl 0.7.2 fairseq 1.0.0a0+98ebe4f googledrivedownloader 0.4 hydra-core 1.0.7 idna 3.3 importlib-metadata 4.11.4 importlib-resources 5.7.1 isodate 0.6.1 Jinja2 3.1.2 joblib 1.1.0 littleutils 0.2.2 lmdb 1.3.0 MarkupSafe 2.1.1 networkx 2.6.3 numpy 1.21.6 ogb 1.3.2 omegaconf 2.0.6 outdated 0.2.1 pandas 1.3.5 pip 21.2.2 portalocker 2.4.0 protobuf 3.20.1 pycparser 2.21 pyparsing 3.0.9 python-dateutil 2.8.2 python-louvain 0.16 pytz 2022.1 PyYAML 6.0 rdflib 6.1.1 rdkit-pypi 2021.9.3 regex 2022.4.24 requests 2.27.1 sacrebleu 2.1.0 scikit-learn 1.0.2 scipy 1.7.3 setuptools 61.2.0 six 1.16.0 tabulate 0.8.9 tensorboardX 2.4.1 threadpoolctl 3.1.0 torch 1.9.1+cu111 torch-geometric 1.7.2 torch-scatter 2.0.9 torch-sparse 0.6.12 torchaudio 0.9.1 tqdm 4.64.0 typing_extensions 4.2.0 urllib3 1.26.9 wheel 0.37.1 zipp 3.8.0 `

xuan197 commented 2 years ago

I also encountered the same problem as you, and then I tried to comment it out. Urllib Error Urlerror: <urlopen error [errno 101] network is unreachable>。

tbontbiaq commented 2 years ago

I also encountered the same problem as you, and then I tried to comment it out. Urllib Error Urlerror: <urlopen error [errno 101] network is unreachable>。

I solve this problem by:using python3.9 .Other independence remains the same.

xuan197 commented 2 years ago

I also use python3.9. Other package versions are the same as the requirements. Can you tell me how you solved it? Thank you

tbontbiaq commented 2 years ago

I also use python3.9. Other package versions are the same as the requirements. Can you tell me how you solved it? Thank you

What I have done: 1、echo $PATH in power shell , to make sure that the CUDA version in your local environment is 11.1; 2、The fairseq is in branch 98ebe4f, the whole project is in branch main.