DINKIN / winpython

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

guiqwt test module could not import h5py? #81

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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\loadsavei
tems_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: 找不到指定的程序。

Original issue reported on code.google.com by zcc...@gmail.com on 27 Aug 2013 at 3:44

GoogleCodeExporter commented 9 years ago
it seems h5py not works on python3.3.

Original comment by zcc...@gmail.com on 27 Aug 2013 at 6:25