A Wednesday 25 June 2008, dragan savic escrigué: > Hi! > > I am using the latest version of HDF5 - 1.8.1. I guess I should > compile it with Visual Studio 2003 then, right? I got the following > message: > > * Found numpy 1.1.0 package installed. > * Found HDF5 headers at ``C:\tables-SVN\trunk\HDF5\include``, library > at ``C:\t bles-SVN\trunk\HDF5\dll``. > dll_file hdf5dll.dll C: ables-SVN runk\HDF5\lib > * Could not find LZO 2 headers and library; disabling support for it. > * Could not find LZO 1 headers and library; disabling support for it. > * Could not find bzip2 headers and library; disabling support for it. > running build_ext > No module named msvccompiler in numpy.distutils; trying from > distutils error: Python was built with Visual Studio 2003; > extensions must be built with a compiler than can generate compatible > binaries. Visual Studio 2003 was not found on this system. If you > have Cygwin installed, you can try compiling with MingW32, by passing > "-c mingw32" to setup.py.
Well, I'm definitely not an expert on the Windows platform, but my understanding is that, if you are using a Python interpreter compiled with VS2003 (the one that is provided in python.org is made with this compiler), then you will need VS2003 to compile extensions (I, for one, always use VS2003 for generating PyTables binaries for Win). However, have in mind that the HDF Group is not distributing binaries for VS2003 anymore, as they have switched to VS2005, so, if you have VS2003 you will need to compile HDF5 1.8.1 by yourself in order to be able to link it against your Python interpreter (I'm not sure if they support VS2003 in HDF5 1.8.x, though). Another option is to use HDF5 1.6.7, for which they are still providing binaries for VS2003 -- PyTables doesn't use anything specific to HDF5 1.8.x series, so you are safe to use 1.6.x versions. Having said, I've heard that, if you can come with a Python interpreter compiled with MinGW, you can link with MinGW-compiled extensions. But, as I said before, my understanding is that you won't be able to compile HDF5 using MinGW yet. Finally, the HDF Group is providing Cygwin binaries for both HDF5 1.6.7 and 1.8.1, so perhaps Cygwin would be a better bet for what you are trying to do -- although you may need to google a bit to figure out how to link these binaries with the Python interpreter. Hope this helps, -- Francesc Alted Freelance developer Tel +34-964-282-249 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Pytables-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pytables-users
