[MMTK] problem with MMTK energy term

Lucia Avalle avallelucia at gmail.com
Thu Dec 2 00:06:54 UTC 2010


Hi,
I am working with MMTK2.7.2
I run the following example and got an error:

In [1]: from MMTK import *

In [2]: from MMTK.ForceFields import Amber99ForceField

In [3]: univer = InfiniteUniverse(Amber99ForceField())
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/home/lucia/LuciaDocuments2010/MMTK-2.7.2/<ipython console> in <module>()

/home/lucia/LuciaDocuments2010/MMTK-2.7.2/MMTK/ForceFields/__init__.py
in __call__(self, *args, **kw)
     28
     29     def __call__(self, *args, **kw):
---> 30         ffc = getattr(__import__(self.module, self.globals),
self.object)
     31         ffc.description = _description
     32         return apply(ffc, args, kw)

/home/lucia/LuciaDocuments2010/MMTK-2.7.2/MMTK/ForceFields/Amber/__init__.py
in <module>()
     12
     13 __docformat__ = 'epytext'
     14
---> 15 from AmberForceField import Amber99ForceField, Amber94ForceField, \
     16                              Amber91ForceField, OPLSForceField

/home/lucia/LuciaDocuments2010/MMTK-2.7.2/MMTK/ForceFields/Amber/AmberForceField.py
in <module>()
     58 __docformat__ = 'epytext'
     59
---> 60 from MMTK.ForceFields import MMForceField
     61 from MMTK.ForceFields.Amber import AmberData
     62 import os

/home/lucia/LuciaDocuments2010/MMTK-2.7.2/MMTK/ForceFields/MMForceField.py
in <module>()
     25 #

     26
---> 27 from MMTK.ForceFields.BondedInteractions import BondedForceField
     28 from MMTK.ForceFields.NonBondedInteractions import \
     29      NonBondedForceField, LJForceField, ElectrostaticForceField, \

/home/lucia/LuciaDocuments2010/MMTK-2.7.2/MMTK/ForceFields/BondedInteractions.py
in <module>()
      6 #

      7
----> 8 from MMTK.ForceFields.ForceField import ForceField, ForceFieldData
      9 from MMTK import Utility
     10 from Scientific.Geometry import Vector

/home/lucia/LuciaDocuments2010/MMTK-2.7.2/MMTK/ForceFields/ForceField.py
in <module>()
      9 from Scientific import N
     10 import copy, itertools, operator
---> 11 from MMTK_energy_term import PyEnergyTerm as EnergyTerm
     12
     13 # Class definitions

ImportError: No module named MMTK_energy_term

Could anybody help me with this problem? I was running MMTK2.6 version
and I've got the same error.
Thank you in advance
Lucia Avalle



More information about the mmtk mailing list