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?

Thanks!

-- 
Francesc Alted

------------------------------------------------------------------------------

_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to