[Nexus] Nexus with python on windows
Akeroyd, FA (Freddie)
F.A.Akeroyd at rl.ac.uk
Mon Jul 30 14:11:11 BST 2007
Jon,
I've compiled the python binding for Windows and added a link to then
from
http://download.nexusformat.org/kits/windows/
These binding are swig based and provide a direct interface to the usual
NeXus API functions; I'm afraid there is currently no support for
Numeric/numpy
Regards,
Freddie
-----Original Message-----
From: nexus-bounces at nexusformat.org
[mailto:nexus-bounces at nexusformat.org] On Behalf Of Jon Wright
Sent: 26 July 2007 17:27
To: nexus at nexusformat.org
Subject: [Nexus] Nexus with python on windows
Dear NeXus'ers,
I've just downloaded the nexus api which is pre-built for windows from:
http://download.nexusformat.org/kits/windows/
These look useful, but I'm wondering where to find the python bindings.
Is there a pre-compiled set around somewhere? Is it easier if I just use
PyTables for direct hdf access?
I did attempt to create a setup.py file for the ones in bindings/swig
and build things myself but have gotten stuck. There are a lot of linker
errors coming from missing export libraries for the hdf dll's with mingw
(see below). Naturally, I have not been able to find the hdf ".a"
libraries for mingw.
Whichever set of NeXus to python bindings, it seems neither supports the
Numeric or numpy packages for handling large arrays of binary data. Am I
missing something?
Thanks for your help,
Jon
C:\Program Files\NeXus Data Format\bindings\swig>C:\mingw\bin\gcc.exe
libNeXus.a -mno-cygwin -shared -s build\temp.win32
-2.4\Release\nxpython_wrap.o
build\temp.win32-2.4\Release\nxinterhelper.o
build\temp.win32-2.4\Release\_nxpython.def -L.
-LC:\Python24\libs -LC:\Python24\PCBuild -lNeXus -lpython24 -lmsvcr71
-o build\lib.win32-2.4\_nxpython.pyd libNeXus.a
Cannot export init_nxpython: symbol not defined
./libNeXus.a(napi.o): In function
`NXinternalopen':C:/msys/1.0/home/faa59/nexus-4.0.0/src/napi.c:212:
undefined referenc
e to `H5Fis_hdf5'
:C:/msys/1.0/home/faa59/nexus-4.0.0/src/napi.c:218: undefined reference
to `Hishdf'
./libNeXus.a(nxxml.o): In function
`getLinkTarget':C:/msys/1.0/home/faa59/nexus-4.0.0/src/nxxml.c:74:
undefined referenc
e to `mxmlFindElement'
:C:/msys/1.0/home/faa59/nexus-4.0.0/src/nxxml.c:79: undefined reference
to `mxmlFindElement'
./libNeXus.a(nxxml.o): In function
`NXXopen':C:/msys/1.0/home/faa59/nexus-4.0.0/src/nxxml.c:115: undefined
reference to
`mxmlSetCustomHandlers'
_______________________________________________
NeXus mailing list
NeXus at nexusformat.org
http://lists.nexusformat.org/mailman/listinfo/nexus
More information about the NeXus
mailing list