Open mattwthompson opened 5 months ago
I don't have an answer, but the origin of the problem arises in the sqm
code which is called by antechamber:
Cannot properly run "/Users/runner/micromamba/envs/test_env/bin/sqm -O -i sqm.in -o sqm.out".
Two ideas about how to debug:
sqm.in
file for this case? Is it empty or obviously mal-formed? Also look at the sqm.out
file to see if there are any clues there.sdf
input files?Fewer and fewer Amber developers are using OSX, but some are, with both x86 and Apple silicon hardware. But the compilers being used tend to come from homebrew or macports, and may not be the same compilers that conda-forge is using.
Something's borked in the sqm.in
file indeed. From https://github.com/mattwthompson/partial_charge_experiments/actions/runs/8850845954/job/24306045345
2024-04-26T15:48:12.1491180Z ##[group]Run cat sqm.in
2024-04-26T15:48:12.1491890Z [36;1mcat sqm.in[0m
2024-04-26T15:48:12.1492290Z [36;1mcat sqm.out[0m
2024-04-26T15:48:12.1639160Z shell: /bin/bash -l {0}
2024-04-26T15:48:12.1639670Z env:
2024-04-26T15:48:12.1640110Z MAMBA_ROOT_PREFIX: /Users/runner/micromamba
2024-04-26T15:48:12.1640800Z MAMBA_EXE: /Users/runner/micromamba-bin/micromamba
2024-04-26T15:48:12.1641610Z CONDARC: /Users/runner/work/_temp/setup-micromamba/.condarc
2024-04-26T15:48:12.1642310Z ##[endgroup]
2024-04-26T15:48:12.3016330Z Run semi-empirical minimization
2024-04-26T15:48:12.3017570Z &qmmm
2024-04-26T15:48:12.3018100Z qm_theory='AM1', grms_tol=0.0005,
2024-04-26T15:48:12.3018770Z scfconv=1.d-10, ndiis_attempts=700, qmcharge=0,
2024-04-26T15:48:12.3019380Z /
2024-04-26T15:48:12.3019560Z
2024-04-26T15:48:12.3039260Z --------------------------------------------------------
2024-04-26T15:48:12.3040440Z AMBER SQM VERSION 19
2024-04-26T15:48:12.3041150Z
2024-04-26T15:48:12.3041550Z By
2024-04-26T15:48:12.3042530Z Ross C. Walker, Michael F. Crowley, Scott Brozell,
2024-04-26T15:48:12.3043520Z Tim Giese, Andreas W. Goetz,
2024-04-26T15:48:12.3044710Z Tai-Sung Lee and David A. Case
2024-04-26T15:48:12.3045300Z
2024-04-26T15:48:12.3045830Z --------------------------------------------------------
2024-04-26T15:48:12.3046410Z
2024-04-26T15:48:12.3046830Z QM ATOM VALIDATION: nquant has a value of 0
2024-04-26T15:48:12.3047550Z SANDER BOMB in subroutine validate_qm_atoms
2024-04-26T15:48:12.3048140Z nquant illegal
2024-04-26T15:48:12.3048510Z Need 0 < nquant <= natom
Here are the input and output files on my machine (M1, macOS 14) for comparison
In:
$ cat sqm.in
Run semi-empirical minimization
&qmmm
qm_theory='AM1', grms_tol=0.0005,
scfconv=1.d-10, ndiis_attempts=700, qmcharge=0,
/
6 C1 -0.5450 0.0220 -0.1810
7 N1 0.8590 -0.2900 0.0150
1 H1 -0.7260 0.3460 -1.2100
1 H2 -1.1600 -0.8590 0.0220
1 H3 -0.8530 0.8210 0.4980
1 H4 0.9510 -1.2560 0.3290
1 H5 1.2330 0.2880 0.7670
Out:
Results look the same on AmberTools 22 and 23, which makes sense as the underlying tools look the same
This is the SDF file, which does have hydrogens and generally looks normal (RDKit and OEChem parse it no problem): https://github.com/mattwthompson/partial_charge_experiments/blob/main/datafiles/CN.sdf
You can see from this job matrix that only a couple of OS/AmberTools combinations are affected: https://github.com/mattwthompson/partial_charge_experiments/actions/runs/8850845954
Solution to issue cannot be found in the documentation.
Issue
Existing AmberTools 23 binaries (or at least
antechamber
) crash on macOS 13 where they would fail on macOS 12. This was discovered when GitHub Actions recently bumpedmacos-latest
from using 12 (x64) to 14 (M1) nudging some of us to 13 (the newest x86 runner). @ialibay has found this is limited to the 23/13 combination; older macOS and older AmberTools don't crash like this. Unfortunately we (or at least my projects) must use 23 because sticking with x86 and Python 3.10 is not workable.There's some stuff in the knoweldge base about macOS SDKs but I don't think it's directly relevant: https://conda-forge.org/docs/maintainer/knowledge_base/#requiring-newer-macos-sdks
https://github.com/IAlibay/partial_charge_experiments/actions/runs/8846838752/job/24293490978 https://github.com/IAlibay/partial_charge_experiments/blob/8bb003f237fa112341d9d306e3a4a1aee5292fac/.github/workflows/at_test.yaml
Installed packages
Environment info