[MMTK] A rather annoying newbie question on the netCDF interface
Roger Jarvis
r.jarvis at postgrad.umist.ac.uk
Wed Jul 14 14:01:01 CEST 2004
Thankyou for responding so quickly. Following your advice I decided to
uninstall everything and reinstall according to the instructions on Wiki
using the most up to date versions of the windows installers. I now have
Python2.3.4, numarray1.0, netCDF3.5.0, pywin32-202 and
ScientificPython2.4.6. I placed the netcdf.dll in to the
\\Scientific\win32 directory with Scientific_netcdf.pyd
Unfortunately, Python is still crashing when I do 'import
Scientific.IO.NetCDF' (or similar) and I'm getting the msg box appearing
with the error I reported yesterday.
> Did that help?
>
> If not, then some additional information like what version of Windows
> you are using, and if you have a C compiler, wouldn't hurt.
My windows version is XP professional, it's up to date with the numerous
patches from the windowsupdate site. I have the freely downloadable
version of the MS Visual C++ compiler installed. Let me know if further
information would help.
Many thanks,
Roger
On Wed, 14 Jul 2004 01:35:07 +0100, Peter <mmtk at maubp.freeserve.co.uk>
wrote:
>>> If anyone can help me with the following problem then it would be
>>> much appreciated. I've been putting myself through the wringer
>>> trying to get the netCDF interface working in Scientific. I've
>>> installed the following on windows...
>>>
>>> 1. Python 2.3.3 using Python-2.3.3.exe from python.org
>>> 2. Scientific python using ScientificPython-2.4.6.win32-py2.3.exe
>>> 3. netCDF for win32 - (\\python23\include\netcdf.h and netcdf.inc;
>>> \\python23\libs\netcdf.lib; also netcdf.dll in PATH)
>>
>> That looks fine, from memory, perhaps some Windows user can confirm.
>> Which version of netCDF do you use? It must be the same that was used
>> when ScientificPython was compiled (I guess 3.5, which is the current
>> one).
>
> It was 3.5.0, see below.
>
>> Otherwise, no idea, sorry. Windows is a mystery to me.
>
> Have you looked at the Windows Installation instructions on the Wiki?
>
> http://dirac.cnrs-orleans.fr/mmtk_wiki/WindowsInstallation
>
> This should also explain other bits and pieces like Mark Hammond's
> Windows Extensions and setting up visualisations:
>
> I've been meaning to make the NetCDF installation bit more explicit.
>
> Anyway, the ScientificPython-2.4.6.win32-py2.3.exe installer was built
> using the prebuilt binary of netcdf-3.5.0 available here:
>
> ftp://ftp.unidata.ucar.edu/pub/netcdf/contrib/win32/netcdf-3.5.0.win32bin.ZIP
>
> If you are using the Scientific Python and MMTK installers, then I think
> all you need to do for netCDF is download that file, and extract just
> netcdf.dll into:
>
> C:\Windows\System32\netcdf.dll
>
> for Windows XP, or on Windows 2000 or NT:
>
> C:\WinNT\System32\netcdf.dll
>
> Did that help?
>
> If not, then some additional information like what version of Windows
> you are using, and if you have a C compiler, wouldn't hurt.
>
> Peter
>
> -------------------------------------------------------------------------
>
> P.S. In fact, anywhere on the path should work... I seem to have put it
> next too Scientific_netcdf.pyd on my Windows 2000 machine:
>
> C:\Python23\Lib\site-packages\Scientific\win32\netcdf.dll
>
> I was trying to find out what would go wrong if the DLL was in the wrong
> place, see this also email:
>
> http://starship.python.net/pipermail/mmtk/2004/000673.html
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
More information about the mmtk
mailing list