You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python -c "from openff.toolkit.topology import Molecule; smi = \"CC\"; molecule = Molecule.from_smiles(smi); molecule.generate_conformers(n_conformers=1)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/nick/uv-venvs/test_env/lib/python3.11/site-packages/openff/toolkit/topology/molecule.py", line 2323, in generate_conformers
return toolkit_registry.call(
^^^^^^^^^^^^^^^^^^^^^^
File "/home/nick/uv-venvs/test_env/lib/python3.11/site-packages/openff/toolkit/utils/toolkit_registry.py", line 280, in call
raise ValueError(msg)
ValueError: No registered toolkits can provide the capability "generate_conformers" for args "(Molecule with name '' with bad SMILES and Hill formula 'C2H6',)" and kwargs "{'n_conformers': 1, 'rms_cutoff': None, 'clear_existing': True, 'make_carboxylic_acids_cis': True}"
Available toolkits are: [ToolkitWrapper around The RDKit version 2025.09.1pre, ToolkitWrapper around Built-in Toolkit version None]
ToolkitWrapper around The RDKit version 2025.09.1pre <class 'ModuleNotFoundError'> : No module named 'constraint'
It's likely you're encountering missing deps since you're using an installation route other than conda. We don't officially support installation via pip, since some of our deps historically haven't been available there, we want to minimize our maintenance surface area, and our advisory board wasn't interested in us spending resources to support it. However, you may be able to make a working pip-only build by installing pip equivalents of the packages from from our testing conda environment - many (if not all) of the non-OpenFF packages are available from pypi.
If you do manage to get it working, I'm sure other folks might find it useful - Please post here if you do!
many thanks for the comment. I'm using uv/pip because it's easier to work with in a HPC environment that uses ARM/GH200s with spack integration, and many of the packages in my environment require building from source.
Activity
j-wags commentedon Apr 30, 2025
Thanks for the concise example, but I'm unable to reproduce. Here are my steps:
It's likely you're encountering missing deps since you're using an installation route other than conda. We don't officially support installation via pip, since some of our deps historically haven't been available there, we want to minimize our maintenance surface area, and our advisory board wasn't interested in us spending resources to support it. However, you may be able to make a working pip-only build by installing pip equivalents of the packages from from our testing conda environment - many (if not all) of the non-OpenFF packages are available from pypi.
If you do manage to get it working, I'm sure other folks might find it useful - Please post here if you do!
rubber-duck-debug commentedon Apr 30, 2025
Hey j-wags,
many thanks for the comment. I'm using uv/pip because it's easier to work with in a HPC environment that uses ARM/GH200s with spack integration, and many of the packages in my environment require building from source.
I got it to work by additionally installing:
Now passes without error. I'll write more complete from-scratch installation instructions when I get some more time later.