Thanks to visit codestin.com
Credit goes to sourceforge.net

Menu

#81 guiqwt test module could not import h5py?

v2.7.6.1
Fixed
nobody
None
Medium
Defect
2014-11-07
2013-08-26
Anonymous
No

Originally created by: zcc...@gmail.com

What steps will reproduce the problem?
1.run "IPython Qt Console.exe"
2.input as below:
from guiqwt import tests
tests.run()
3.meet a ImportError when import h5py.

What is the expected output? What do you see instead?
execute the guiqwt test launcher.
the guiqwt test window appeared.

What version of the product are you using? On what operating system?
WinPython-32bit-3.3.2.3.exe, on windows xp sp3.

Please provide any additional information below.

from guiqwt import tests
tests.run()

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-603a88368817> in <module>()
      1 from guiqwt import tests
----> 2 tests.run()
      3

C:\WinPython-32bit-3.3.2.3\python-3.3.2\lib\site-packages\guiqwt\tests\__init__.py in run()
     15     import guiqwt.config # Loading icons
     16     from guidata.guitest import run_testlauncher
---> 17     run_testlauncher(guiqwt)
     18
     19 if __name__ == '__main__':

C:\WinPython-32bit-3.3.2.3\python-3.3.2\lib\site-packages\guidata\guitest.py in run_testlauncher(package)
    163     from guidata.qt.QtGui import QApplication
    164     app = QApplication([])
--> 165     win = TestLauncherWindow(package)
    166     win.show()
    167     app.exec_()

C:\WinPython-32bit-3.3.2.3\python-3.3.2\lib\site-packages\guidata\guitest.py in __init__(self, package, parent)
    132         test_package = sys.modules[test_package_name]
    133
--> 134         tests = get_tests(test_package)
    135         listwidget = QListWidget(self)
    136         listwidget.addItems([osp.basename(test.filename) for test in tests])

C:\WinPython-32bit-3.3.2.3\python-3.3.2\lib\site-packages\guidata\guitest.py in get_tests(test_package)
     36             continue
     37         if not module_name.startswith('_'):
---> 38             _temp = __import__(test_package.__name__, fromlist=[module_name])
     39             test_module = getattr(_temp, module_name)
     40             test = TestModule(test_module)

C:\WinPython-32bit-3.3.2.3\python-3.3.2\lib\site-packages\guiqwt\tests\loadsaveitems_hdf5.py in <module>()
     13 # This script requires read/write permissions on current directory
     14
---> 15 from guidata.hdf5io import HDF5Reader, HDF5Writer
     16
     17 from guiqwt.tests.loadsaveitems_pickle import IOTest

C:\WinPython-32bit-3.3.2.3\python-3.3.2\lib\site-packages\guidata\hdf5io.py in <module>()
     15 from uuid import uuid1
     16
---> 17 import h5py
     18 import numpy as np
     19

C:\WinPython-32bit-3.3.2.3\python-3.3.2\lib\site-packages\h5py\__init__.py in <module>()
----> 1 from h5py import _errors
      2 _errors.silence_errors()
      3
      4 from h5py import _conv
      5 _conv.register_converters()

ImportError: DLL load failed: 找不到指定的程序。

Discussion

  • Anonymous

    Anonymous - 2013-08-26

    Originally posted by: zcc...@gmail.com

    it seems h5py not works on python3.3.

     
  • Pierre Raybaut

    Pierre Raybaut - 2013-12-25

    The h5py build included in WinPython v3.3.2/2.7.5 is not compatible with Windows XP.

    Problem should be solved for v3.3.3/2.7.6, except that there is still an issue with pyzmq (preventing IPython and thus Spyder to start). Should be entirely fixed in v3.3.3.1/2.7.6.1.

     
  • Pierre Raybaut

    Pierre Raybaut - 2013-12-25
    • Description has changed:

    Diff:

    
    
    • status: New --> Fixed
    • Milestone: --> v2.7.6.1
     

Log in to post a comment.