Problem with Python API and CLI #1541
nicolasrincont
started this conversation in
General
Replies: 1 comment 9 replies
-
|
@nicolasrincont could you give us the output from your conda/mamba environment? something like |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm new to OpenFE and I'm trying to follow along the tutorials. When I try the Python API I have the following problem:
import openfe
from rdkit import Chem
Path to the folder containing .sdf files
sdf_folder = "inputs/"
Collect molecules from all sdf files
supp = []
for file in os.listdir(sdf_folder):
if file.endswith(".sdf"):
sdf_path = os.path.join(sdf_folder, file)
supplier = Chem.SDMolSupplier(sdf_path, removeHs=False)
supp.append(supplier)
ligands = [openfe.SmallMoleculeComponent.from_rdkit(mol) for mol in supp]
AttributeError Traceback (most recent call last)
Cell In[38], line 17
14 supplier = Chem.SDMolSupplier(sdf_path, removeHs=False)
15 supp.append(supplier)
---> 17 ligands = [openfe.SmallMoleculeComponent.from_rdkit(mol) for mol in supp]
AttributeError: module 'openfe' has no attribute 'SmallMoleculeComponent'
And when I try on CLI I get this:
openfe plan-rbfe-network -M ligands/ -p 35A_MD.pdb -o network_setup --n-protocol-repeats 3
Usage: openfe [OPTIONS] COMMAND [ARGS]...
Try 'openfe -h' for help.
Error: No such command 'plan-rbfe-network'.
Do you know what could be the issue?
Best,
Nicolás
Beta Was this translation helpful? Give feedback.
All reactions