<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Dear all,<div>I am developing a Qgis python plugin using PyTables 2.4. There is an error when starting Qgis main application. I checked the error message and found that there is an error when call 'import tables'  because some dll cannot be loaded.  </div><div>But when I run the python not in Qgis environment, PyTables works correctly.</div><div>I also open the Qgis console window and input 'import tables'. The error message is the same, saying that some dll cannot be loaded.</div><div><br></div><div>when I start Qgis with my own Python plugin, the error message is as following:</div><div><br></div><div><span style=" color:#ff0000;">Couldn't load plugin UAV due an error when calling its classFactory() method</span><br><br>Traceback (most recent call last):<br>  File "C:/PROGRA~2/Quantum GIS Wroclaw/apps/qgis/./python\qgis\utils.py", line 138, in startPlugin<br>    plugins[packageName] = package.classFactory(iface)<br>  File "C:\PROGRA~2\Quantum GIS Wroclaw\apps\qgis\python\plugins\UAV\__init__.py", line 24, in classFactory<br>    from UAV import UAV<br>  File "C:/PROGRA~2/Quantum GIS Wroclaw/apps/qgis/./python\qgis\utils.py", line 283, in _import<br>    mod = _builtin_import(name, globals, locals, fromlist, level)<br>  File "C:\PROGRA~2\Quantum GIS Wroclaw\apps\qgis\python\plugins\UAV\UAV\UAV.py", line 18, in <br>    from newprojectdlg import NewPorjectDlg<br>  File "C:/PROGRA~2/Quantum GIS Wroclaw/apps/qgis/./python\qgis\utils.py", line 283, in _import<br>    mod = _builtin_import(name, globals, locals, fromlist, level)<br>  File "C:\PROGRA~2\Quantum GIS Wroclaw\apps\qgis\python\plugins\UAV\UAV\gui\newprojectdlg.py", line 6, in <br>    import uav_tables<br>  File "C:/PROGRA~2/Quantum GIS Wroclaw/apps/qgis/./python\qgis\utils.py", line 283, in _import<br>    mod = _builtin_import(name, globals, locals, fromlist, level)<br>  File "C:\PROGRA~2\Quantum GIS Wroclaw\apps\qgis\python\plugins\UAV\UAV\data_table\uav_tables.py", line 3, in <br>    from tables import *<br>  File "C:/PROGRA~2/Quantum GIS Wroclaw/apps/qgis/./python\qgis\utils.py", line 283, in _import<br>    mod = _builtin_import(name, globals, locals, fromlist, level)<br>  File "C:\PROGRA~2\Quantum GIS Wroclaw\apps\Python27\lib\site-packages\tables\__init__.py", line 69, in <br>    from tables.utilsExtension import getPyTablesVersion, getHDF5Version<br>  File "C:/PROGRA~2/Quantum GIS Wroclaw/apps/qgis/./python\qgis\utils.py", line 283, in _import<br>    mod = _builtin_import(name, globals, locals, fromlist, level)<br>ImportError: DLL load failed: The specified procedure could not be found.</div><div><br></div><div>I have reinstall the pytable and also try the version 2.3, 2.2 and 2.1.  I also add the tables package path to the system 'path'  environment variable. The errors are still the same.  PyTables works correctly in standard python environment, but failed in Qgis python environment.  </div><div>I am not familiar with Qgis embedded python.Could any one help me on this.<br><br><div>--<br><div><p>Sincerely: Liye Zhang</p>
<p>University of Florida, Gainesville, Florida, USA<br>School of Traffic and Transportation, Tongji University, China. <br><br></p></div></div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>