[MMTK] ImportError: No module named Scientific_netcdf
Shirley Hui
shirleyhui at alumni.uwaterloo.ca
Sat May 8 07:45:43 CEST 2004
Yes I have the file Scientific_netcdf.pyd in the directory
C:\Python23\Lib\site-packages\Scientific\win32.
I fiddle around some more:
It appears that when I install Scientific through the actual installer
(ScientificPython-2.4.5.win32-py2.3.exe) from the web page:
http://starship.python.net/~hinsen/ScientificPython/
It works and I have no problems running the command below.
However, when I try and compiling Scientific via the source, I get hte
following errors.
I was under the impression that i needed to compile the Scientific source
according to this site:
http://dirac.cnrs-orleans.fr/mmtk_wiki/WindowsInstallation
However, I don't believe this is necessary, infact installing Scientific via
the exe should probably be enough...
Next I compiled and installed MMTK. I then tried running the command:
from MMTK.Dynamics import VelocityVerletIntegrator
to see if I installed MMTK properly, and I got the same thing happening as
above for Scientific.
I consulted the PYTHON help and noticed that you can set an environment
variable called PYTHONPATH to specify where Python should look for modules.
I set to that be C:\Python23\Lib\site-packages. I opened a new command
prompt and now it's working!
shirley
----- Original Message -----
From: "Michiel Jan Laurens de Hoon" <mdehoon at ims.u-tokyo.ac.jp>
To: "Shirley Hui" <shirleyhui at alumni.uwaterloo.ca>
Cc: <mmtk at python.net>
Sent: Saturday, May 08, 2004 12:31 AM
Subject: Re: [MMTK] ImportError: No module named Scientific_netcdf
> Shirley Hui wrote:
> > >>> import Scientific.IO.NetCDF
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in ?
> > File "Scientific\IO\NetCDF.py", line 131, in ?
> > from Scientific_netcdf import *
> > ImportError: No module named Scientific_netcdf
>
> Did you check whether you have the Scientific_netcdf module? There should
be a
> file Scientific_netcdf.pyd in
C:\Python23\Lib\site-packages\Scientific\win32.
>
> If you don't have it, try to compile Scientific Python after netcdf has
been
> installed. If I remember correctly, the netcdf stuff in Scientific Python
gets
> skipped during the installation if it cannot find netcdf at that time.
>
> --Michiel.
>
> --
> Michiel de Hoon, Assistant Professor
> University of Tokyo, Institute of Medical Science
> Human Genome Center
> 4-6-1 Shirokane-dai, Minato-ku
> Tokyo 108-8639
> Japan
> http://bonsai.ims.u-tokyo.ac.jp/~mdehoon
>
>
> _______________________________________________
> mmtk maillist - mmtk at starship.python.net
> http://starship.python.net/mailman/listinfo/mmtk
>
More information about the mmtk
mailing list