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
@pytest.mark.skipif(notsum([OPENEYE_AVAILABLE, AMBERTOOLS_AVAILABLE]), reason="requires a charge toolkit")deftest_can_charge_methane():
# verify we can assign AM1 charges to methane# See https://github.com/openforcefield/openff-nagl/issues/152 for moremol=Molecule.from_smiles("C")
mol.assign_partial_charges("am1-mulliken")
Output
E ValueError: No registered toolkits can provide the capability "assign_partial_charges" for args "()" and kwargs "{'molecule': Molecule with name '' and SMILES '[H][C]([H])([H])[H]', 'partial_charge_method': 'am1-mulliken', 'use_conformers': None, 'strict_n_conformers': False, 'normalize_partial_charges': True, '_cls': <class 'openff.toolkit.topology.molecule.Molecule'>}"
E Available toolkits are: [ToolkitWrapper around The RDKit version 2024.03.5, ToolkitWrapper around AmberTools version 23.6, ToolkitWrapper around Built-in Toolkit version None]
E ToolkitWrapper around The RDKit version 2024.03.5 <class 'openff.toolkit.utils.exceptions.ChargeMethodUnavailableError'> : partial_charge_method 'am1-mulliken' is not available from RDKitToolkitWrapper. Available charge methods are {'mmff94': {}, 'gasteiger': {}}
E ToolkitWrapper around AmberTools version 23.6 <class 'subprocess.CalledProcessError'> : Command '['antechamber', '-i', 'molecule.sdf', '-fi', 'sdf', '-o', 'charged.mol2', '-fo', 'mol2', '-pf', 'yes', '-dr', 'n', '-c', 'mul', '-nc', '0.0']' returned non-zero exit status 1.
E ToolkitWrapper around Built-in Toolkit version None <class 'openff.toolkit.utils.exceptions.ChargeMethodUnavailableError'> : Partial charge method "am1-mulliken"" is not supported by the Built-in toolkit. Available charge methods are {'zeros': {'rec_confs': 0, 'min_confs': 0, 'max_confs': 0}, 'formal_charge': {'rec_confs': 0, 'min_confs': 0, 'max_confs': 0}}
../../../micromamba/envs/openff-nagl-test/lib/python3.10/site-packages/openff/toolkit/utils/toolkit_registry.py:280: ValueError
Computing environment (please complete the following information):
Operating system: macOS-13
Output of running conda list
Notable packages:
ambertools 23.6 (passes in macOS-latest)
RDKit 2024.03.5 (I put in the !=2024.03.6 pin I found in the toolkit in case it was that; if of interest, a related test did fail with 2024.03.6 as well)
The text was updated successfully, but these errors were encountered:
lilyminium
changed the title
Failing to assign charges with ambertools on macOS-13
Failing to assign AM1 charges with ambertools on macOS-13
Oct 21, 2024
Issue
I'm seeing a weird issue in NAGL CI where I can't seem to assign AM1 charges to methane using AmberTools on macOS-13. This test passes with macOS-latest and a related test passed with macOS-12 before I updated the CI matrix. It might be a good idea to test across a wider matrix of Mac versions.
I haven't tried with other charge methods like am1bcc as I uncovered this from a failing NAGL test.
Maybe related to #1911?
To Reproduce
The test I'm running at the moment is:
Output
Computing environment (please complete the following information):
conda list
Notable packages:
!=2024.03.6
pin I found in the toolkit in case it was that; if of interest, a related test did fail with 2024.03.6 as well)Full:
Additional context
The text was updated successfully, but these errors were encountered: