[MMTK] MMTK Install

konrad.hinsen at laposte.net konrad.hinsen at laposte.net
Mon Feb 14 18:31:17 CET 2005


On 14.02.2005, at 15:21, Justin Lemkul wrote:

> standard error which we've all seen:
>
>>>> from mmtk import *
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ImportError: No module named mmtk

The module is named MMTK, not mmtk. Python module names are case  
sensitive.

And then, as Peter already pointed out, Python C modules (MMTK has a  
few of those) compiled for Python 2.3 don't work with 2.4. So you need  
to install MMTK (and also NumPy and Scientific Python) under Python  
2.4.

> system would find my python2.4 and override its annoying tendency to  
> want to run 2.3, but is

That's a good idea as well. Note that there is a small problem with  
having multiple Python installations on one system: there is only one  
PYTHONPATH. Both Python 2.3 and 2.4 will look for modules in the same  
place, but only one of them can find correct C modules there.

One workaround is to write a wrapper script that sets PYTHONPATH for a  
specific version and then executes it.

Konrad.
--
------------------------------------------------------------------------ 
-------
Konrad Hinsen
Laboratoire Leon Brillouin, CEA Saclay,
91191 Gif-sur-Yvette Cedex, France
Tel.: +33-1 69 08 79 25
Fax: +33-1 69 08 82 61
E-Mail: khinsen at cea.fr
------------------------------------------------------------------------ 
-------




More information about the mmtk mailing list