Skip to content

Error trying to run acpype with mopac #139

Description

@gVallverdu

Hi

I have a radical molecule and I would try to run acpype. As sqm does not handle open shell system I try to use mopac instead but I got errors.

  • ACPYPE version is 2023.10.27
  • AnteChamber 2023

First of all, I've installed mopac from conda. The mopac binary is mopac but acpype seems to look for mopac.sh. Do I need a specific mopac file?

Second, acpype doesn't set any input file for mopac (but it does for sqm). Maybe I have to provide this file? Basically the error comes from missing mopac input file.

Thank you in advance for any help.

Here is the output:

============================================================================
| ACPYPE: AnteChamber PYthon Parser interfacE v. 2023.10.27 (c) 2025 AWSdS |
============================================================================
DEBUG: CLI: -i input.pdb -b PVO -c bcc -a gaff2 -o gmx -n 0 -m 2 -q mopac
DEBUG: Python Version 3.12.3 | packaged by conda-forge | (main, Apr 15 2024, 18:38:13) [GCC 12.3.0]
DEBUG: Max execution time tolerance is 3h
DEBUG: setResNameCheckCoords done
DEBUG: Net charge drift '0.000000'
==> ... charge set to 0
==> ... converting pdb input file to mol2 input file
DEBUG: /softs/contrib/apps/anaconda/3/envs/AmberTools23/bin/obabel -ipdb input.pdb -omol2 -O PVO.mol2
==> * Babel OK *
==> Executing Antechamber...
DEBUG: /softs/contrib/apps/anaconda/3/envs/AmberTools23/bin/antechamber -dr no -i PVO.mol2 -fi mol2 -o PVO_bcc_gaff2.mol2 -fo mol2 -c bcc -nc 0 -m 2 -s 2 -df 0 -at gaff2 -pf n
DEBUG: No file left to be removed
ERROR: ++++++++++start_quote+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ERROR:
Welcome to antechamber 22.0: molecular input file processor.

Info: The atom type is set to gaff2; the options available to the -at flag are
 gaff, gaff2, amber, bcc, and sybyl.

Info: Finished reading file (PVO.mol2); atoms read (38), bonds read (45).
Info: Determining atomic numbers from atomic symbols which are case sensitive.
Running: /softs/contrib/apps/anaconda/3/envs/AmberTools23/bin/bondtype -j full -i ANTECHAMBER_BOND_TYPE.AC0 -o ANTECHAMBER_BOND_TYPE.AC -f ac
Warning: For atom (ID: 37, Name: V37) the best APS is not zero.
 Bonds involving this atom are frozen.

Running: /softs/contrib/apps/anaconda/3/envs/AmberTools23/bin/atomtype -i ANTECHAMBER_AC.AC0 -o ANTECHAMBER_AC.AC -p gaff2
Info: Total number of electrons: 191; net charge: 0
Info: The number of electrons is odd (191).
 Please check the total charge (-nc flag) and spin multiplicity (-m flag).

Running: /softs/contrib/apps/anaconda/3/envs/AmberTools23/bin/mopac.sh

 MOPAC is a semiempirical quantum chemistry program

 It uses a single argument, the MOPAC data-set
 The command to run MOPAC is 'mopac <data-set>.mop'

 For more information, see: HTTP://OpenMOPAC.net/Manual/running_MOPAC.html

 Press (return) to continue
/softs/contrib/apps/anaconda/3/envs/AmberTools23/bin/wrapped_progs/antechamber: Fatal Error!
Cannot open file (mopac.out) with mode (r).
No such file or directory

ERROR: ++++++++++end_quote+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ERROR: Antechamber failed
DEBUG: /softs/contrib/apps/anaconda/3/envs/AmberTools23/bin/parmchk2 -i PVO_bcc_gaff2.mol2 -f mol2 -o PVO_AC.frcmod -s 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions