On 5/25/2010 2:06 AM, Francesc Alted wrote: > A Monday 24 May 2010 20:10:17 Christoph Gohlke escrigué: >>> Great. But I don't know why LZO DLL is not searched by default in >>> Python\Lib\site-packages\tables as this path should be searched by >>> default by the Python interpreter. Or perhaps this is valid only for >>> extensions (.pyd) and not DLLs (.dll)? >> >> That is a common issue on Python for Windows: sys.path != >> os.environ['PATH']. No directory in the Python tree is in >> os.environ['PATH'] by default. As a workaround to LoadLibrary and >> PyImport_ImportModule problems I sometimes add the following code to a >> package __init__.py file. >> >> import sys, os >> if os.name == 'nt': >> module_path = os.path.abspath(os.path.dirname(__file__)) >> os.environ['PATH'] = ';'.join((os.environ['PATH'], module_path)) >> sys.path.append(module_path) > > Very nice. I've added this to trunk. Hopefully PyTables will be easier to > install after that. > >> OK. The result depends on whether I run your stripped down code or the >> original array1.py file. >> >> >> Original array1.py: >> 1, s, f: crash, no traceback or console output >> 1, s: crash with traceback #1 >> 1, f: crash with traceback #1 >> s, f: crash with traceback #2 >> 1: OK >> s: OK >> f: crash with traceback #3 >> >> >> Stripped down version of array1.py: >> 1, s, f: crash with traceback #1<- different >> 1, s: crash with traceback #1 >> 1, f: crash with traceback #1 >> s, f: crash with traceback #2 >> 1: crash with traceback #1<- different >> s: OK >> f: crash with traceback #2<- different >> >> >> 1 -> hdfarray = createArray(root, 'array_1' ... >> s -> hdfarray = createArray(root, 'array_s' ... >> f -> hdfarray = createArray(root, 'array_f' ... > > By looking at your results, I think I've fixed something that could address > the issue. The fix is: > > http://pytables.org/trac/changeset/4450 > > Please could you update your trunk copy and tell me how it goes? >
That's it! All tests now pass on 32 and 64 bit Python 2.6/2.7 with HDF5 1.8.4-patch1 and numpy 1.4.1/2.0dev. Thanks a lot! I put the installers at <http://www.lfd.uci.edu/~gohlke/pythonlibs/#tables> and will update them for the final 2.2 version. Feel free to redistribute the files. LZO2 and Pthreads-win32 are GPL/LGPL licensed. -- Christoph -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= PyTables version: 2.2rc2.dev HDF5 version: 1.8.4-patch1 NumPy version: 1.4.1 Numexpr version: 1.3.1 (not using Intel's VML/MKL) Zlib version: 1.2.3 (in Python interpreter) LZO version: 2.03 (Apr 30 2008) BZIP2 version: 1.0.5 (10-Dec-2007) Blosc version: 0.9.0 (2010-05-04) Python version: 2.6.5 (r265:79063, Apr 26 2010, 17:05:32) [MSC v.1500 64 bit (AMD64)] Byte-ordering: little -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= PyTables version: 2.2rc2.dev HDF5 version: 1.8.4-patch1 NumPy version: 2.0.0.dev8426 Numexpr version: 1.3.1 (not using Intel's VML/MKL) Zlib version: 1.2.3 (in Python interpreter) LZO version: 2.03 (Apr 30 2008) BZIP2 version: 1.0.5 (10-Dec-2007) Blosc version: 0.9.0 (2010-05-04) Python version: 2.7b2 (r27b2:81019, May 9 2010, 10:33:25) [MSC v.1500 64 bit (AMD64)] Byte-ordering: little -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ------------------------------------------------------------------------------ _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users