microsoft / microsoft/Graphormer
Error --AttributeError: module 'distutils' has no attribute 'version'-- when running fairseq-train and evaluate.py examples
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.5k
- Forks
- 374
- PR merge metrics
- No merged PRs in 30d
Description
I have installed Graphormer.
When I run the examples from the quickstart page, I get this error:
RUN:
fairseq-train --user-dir ../../graphormer --num-workers 16 --ddp-backend=legacy_ddp --dataset-name zinc --dataset-source pyg --task graph_prediction --criterion l1_loss --arch graphormer_slim --num-classes 1 --attention-dropout 0.1 --act-dropout 0.1 --dropout 0.0 --optimizer adam --adam-betas '(0.9, 0.999)' --adam-eps 1e-8 --clip-norm 5.0 --weight-decay 0.01 --lr-scheduler polynomial_decay --power 1 --warmup-updates 60000 --total-num-update 400000 --lr 2e-4 --end-learning-rate 1e-9 --batch-size 64 --fp16 --data-buffer-size 20 --encoder-layers 12 --encoder-embed-dim 80 --encoder-ffn-embed-dim 80 --encoder-attention-heads 8 --max-epoch 10000 --save-dir ./ckpts
ERROR:
AttributeError: module 'distutils' has no attribute 'version'
If I run the "Evaluate" Python script, I get a similar error:
RUN:
python evaluate.py --user-dir ../../graphormer --num-workers 16 --ddp-backend=legacy_ddp --dataset-name pcqm4m --dataset-source ogb --task graph_prediction --criterion l1_loss --arch graphormer_base --num-classes 1 --batch-size 64 --pretrained-model-name pcqm4mv1_graphormer_base --load-pretrained-model-output-layer --split valid --seed 1
ERROR:
AttributeError: module 'distutils' has no attribute 'version'
Am I missing anything?
Is module 'distutils' the right version?
Thanks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Graphormer quickstart page and reproduce the reported fairseq-train command, then run evaluate.py with the shown arguments. Inspect the traceback and Python environment around the distutils.version failure. Done means both example commands run without this AttributeError, with the relevant compatibility guidance or fix documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100