adirschlezinger / pythonxy

Automatically exported from code.google.com/p/pythonxy
0 stars 0 forks source link

pytables (package tables) dlls missing #692

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If relevant, please answer to the following questions:
1. What version of Python(x,y) have you installed?

2.7.5.1

2. Which components have you installed (Python(x,y) installer:
componentpage):

c. Have you selected manually plugins in the component list?
Whatplugins?
yes, added some packages

3. Have you selected the option "Customize installation directories"?
b. No

5. Where did you install Python(x,y) itself?
a. default path

6. Have you installed Python(x,y):

    b. For "All users"

7. What is your operating system?
c. Windows 7

8. Is the operating system 64 bit?
b. No

9. When you installed Python(x,y), were you logged in as :
a. a regular user

10. If you are using Windows Vista/7, have you installed Python(x,y):
a. simply by double-clicking on the installer

11. Regarding installed software on your machine, how did you clean your
machine before installing Python(x,y)  (multiple answers are possible):
a. you didn't do anything, you installed Python(x,y) directly on your
machine without precaution

What steps will reproduce the problem?
1. install pythonxy
2. start python
3. import tables

What is the expected output? What do you see instead?

The tables package could not be loaded. The output is 

>>> import tables
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\tables\__init__.py", line 65, in <module>
    'Could not load "hdf5dll.dll", please ensure'
ImportError: Could not load "hdf5dll.dll", please ensure that it can be found 
in the system path

should be:

>>> import tables
>>>

Please provide any additional information below.

It seems all dlls the tables package needs are not there. From a previous 
tables installation I copied all dlls:

hdf5_hldll.dll
hdf5dll.dll
libz2.dll
lzo2.dll
sz.dll
zlib1.dll

into the tables folder C:\Python27\Lib\site-packages\tables

After that an import of tables works as expected.

Original issue reported on code.google.com by bobat...@gmail.com on 9 Oct 2013 at 10:50

GoogleCodeExporter commented 9 years ago
It seems you are NOT using the updated tables plugin. The version should is 
3.0.0-2 and it depends on h5py. The above DLL names are no longer used in most 
pxy plugins.

remove your c:\python27\Lib\site-pacakges\tables-* and re-install 
https://pythonxy.googlecode.com/files/pytables-3.0.0-2_py27.exe .

Original comment by grizzly.nyo on 10 Oct 2013 at 9:53

GoogleCodeExporter commented 9 years ago
I'm having the same problem.

Did have previous version of python(x,y) v 2.7.5.0.
PyTables _did_ work with this version.
Uninstalled it.

Did standard install of python(x,y) 2.7.5.1, Win 7 64-bit.
No extra packages, standard user, but installed with admin privileges for all 
users.

>>> import tables
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\tables\__init__.py", line 65, in <module>
    'Could not load "hdf5dll.dll", please ensure'
ImportError: Could not load "hdf5dll.dll", please ensure that it can be found 
in the system path

Deleted the directories:
C:\Python27\Lib\site-packages\tables
C:\Python27\Lib\site-packages\tables-3.0.0-py2.7.egg-info

Reinstalled just PyTables from 
https://pythonxy.googlecode.com/files/pytables-3.0.0-2_py27.exe

Still same problem.

Original comment by pacqa...@yahoo.com.au on 11 Oct 2013 at 4:05

GoogleCodeExporter commented 9 years ago
Ok, looked into this further. pytables is hard coded to check for the above 
DLLs.
edit C:\Python27\Lib\site-packages\tables\__init__.py and comment out lines 63 
to 66

    # if not _load_library('hdf5.dll', ctypes.cdll.LoadLibrary):
        # raise ImportError(
            # 'Could not load "hdf5.dll", please ensure'
            # ' that it can be found in the system path')

And test again.

Original comment by grizzly.nyo on 11 Oct 2013 at 6:28

GoogleCodeExporter commented 9 years ago
I did not use the updated tables plugin, I used the one that was shipping
with the installer. It was already there but did not import correctly.

The code here tests for 'hdf5dll.dll" which was missing. If I commented the
lines below out, it seemed to work.

#if not _load_library('hdf5dll.dll', ctypes.cdll.LoadLibrary):
    #    raise ImportError(
    #        'Could not load "hdf5dll.dll", please ensure'
    #        ' that it can be found in the system path')

Thanks for your help

Original comment by bobat...@gmail.com on 11 Oct 2013 at 7:02

GoogleCodeExporter commented 9 years ago
OK, success for me too.
Thanks for this.
Will this update be added into the next bug fix for python(x,y)?

Original comment by pacqa...@yahoo.com.au on 11 Oct 2013 at 10:39

GoogleCodeExporter commented 9 years ago
Offcourse. I'll release 2.7.5.2 soon enough.

Original comment by grizzly.nyo on 18 Oct 2013 at 6:50

GoogleCodeExporter commented 9 years ago

Original comment by grizzly.nyo on 9 Jan 2014 at 9:27