Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyaml syntax error #71

Open
BlackWyvernX opened this issue Jun 19, 2024 · 1 comment
Open

pyaml syntax error #71

BlackWyvernX opened this issue Jun 19, 2024 · 1 comment

Comments

@BlackWyvernX
Copy link

(equibind) akshat@Akshat:/mnt/d/program/condaenv/equibind$ python inference.py --config=configs_clean/inference.yml
Traceback (most recent call last):
File "inference.py", line 21, in
from train import load_model
File "/mnt/d/program/condaenv/equibind/train.py", line 13, in
from trainer.binding_trainer import BindingTrainer
File "/mnt/d/program/condaenv/equibind/trainer/binding_trainer.py", line 4, in
from trainer.trainer import Trainer
File "/mnt/d/program/condaenv/equibind/trainer/trainer.py", line 7, in
import pyaml
File "/home/akshat/miniconda3/envs/equibind/lib/python3.7/site-packages/pyaml/init.py", line 14
if (sort_keys := kws.pop('sort_dicts', None)) is not None:
^
SyntaxError: invalid syntax

this is the error I am getting again and again

@DanLep97
Copy link

DanLep97 commented Jun 26, 2024

I am getting the same issue.

I found a solution by modifying slightly the requirements inside the environment.yml file. I changed the version of pyaml to pyaml=17.12.1 which is compatible with python 3.7:

channels:
  - conda-forge
  - defaults
  - dglteam
  - pytorch
dependencies:
  - python=3.7
  - pytorch 1.10
  - torchvision
  - cudatoolkit=10.2
  - torchaudio
  - dgl-cuda10.2
  - rdkit
  - openbabel
  - biopython
  - rdkit
  - biopandas
  - pot
  - dgllife
  - joblib
  - pyaml=17.12.1
  - icecream
  - matplotlib
  - tensorboard

I hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants