[MMTK] problem with Netcdf

Abhinav Verma abhinav1205 at gmail.com
Tue Jul 25 10:43:17 CEST 2006


Hello,
 I am working on 64bit intel processor and I tried compliling MMTK. I
recompiled netcdf and Scientific Python to make sure everything works, but I
am having problems.
 I complied the latest beta3 of netcdf (stable release didnt work on my
machine) and then Scientific Python 2.6.11.
 When I check the Examples in Scientific pyhon for netcdf_demo.py it runs
and I get output as ..
########################################################################
ScientificPython-2.4.11/Examples> python netcdf_demo.py
[ 42.   1.  42.]
('n', 'xyz')
(10, 20)
{'xyz': 3, 't': None, 'n': 20}
{'foo': <NetCDFVariable object at 0x2aaaac034a98>, 'bar': <NetCDFVariable
object at 0x2aaaac034c48>}
{'xyz': 3, 't': None, 'n': 20}
{'foo': <NetCDFVariable object at 0x2aaaac034b28>, 'bar': <NetCDFVariable
object at 0x2aaaac034b70>}
[ 42.   1.  42.]
#########################################################################
but when I do Examples from MMTK, I get the following

########################################################################
MMTK-2.4.6/Examples/Trajectories> python trajectory_extraction.py
netcdf: No such file or directory
Traceback (most recent call last):
  File "trajectory_extraction.py", line 15, in ?
    full = Trajectory(None, 'full_trajectory.nc')
  File "/usr/lib64/python2.4/site-packages/MMTK/Trajectory.py", line 102, in
__init__
    file = NetCDF.NetCDFFile(filename, 'r')
  File "/usr/lib64/python2.4/site-packages/Scientific/IO/NetCDF.py", line
143, in NetCDFFile
    return apply(_NetCDFFile, args)
IOError: No error

#########################################################################
my netcdf is was compiled with --enable64 option but was still installed in
/usr/lib directory and I then copied the filed to /usr/lib64/ for python to
find it.

I dont understand what is going wrong and where?

thanks in advance,
Abhi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://starship.python.net/pipermail/mmtk/attachments/20060725/ccf8bec8/attachment.htm


More information about the mmtk mailing list