I've noticed that this issue occured already in the past but I can't figure out 
my problem. 

My settings: 
- python 2.7 
- windows vista 
- pytables is installed using python(x,y)


If I import pandas in a regular script it works fine.

I also use python scripting in an scripting engine that's embedded in another 
system (windows exe) which can use vbscript, javascript and also python. 
Other python scripting seems to work fine but if I want to use pytables I get 
this error message: 

[Error] 
Message="Syntax error in script" 
Number=44804 
[Error Context] 
Error_Description_1="Traceback (most recent call last):" 
Error_Description_2="  File ""<Script Block >"", line 1, in <module>" 
Error_Description_3="    import tables" 
Error_Description_4="  File 
""C:\Python27\lib\site-packages\tables\__init__.py"", line 63, in <module>" 
Error_Description_5="    from tables.utilsExtension import 
getPyTablesVersion, getHDF5Version" 
Error_Description_6="ImportError: DLL load failed: The specified module 
could not be found." 
Error_Source="Python ActiveX Scripting Engine" 
HResult=$80020009 
PreProcessor_Source_LineNr=3 
Script_Error_Column=-1 
Script_Error_LineNr=1 
Script_Error_Text="import tables" 
Win32errorMessage="Exception occurred" 

I'd tried to figure it out with a tool "dependecy walker" (see 
www.dependencywalker.com) 

I get the following error. .... 
00:00:15.179: 
LoadLibraryExA("C:\Python27\lib\site-packages\tables\utilsExtension.pyd", 
0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) called from 
"c:\windows\system32\PYTHON27.DLL" at address 0x03CB8BD1 by thread 1. 
00:00:15.194: *Loaded "c:\python27\lib\site-packages\tables\UTILSEXTENSION.PYD" 
at address 0x02CE0000 by thread 1. Successfully hooked module. * 
00:00:15.194: *Loaded "c:\python27\lib\site-packages\tables\HDF5DLL.DLL" at 
address 0x04D60000 by thread 1. Successfully hooked module. * 
00:00:15.210: *Loaded "c:\python27\lib\site-packages\tables\ZLIB1.DLL" at 
address 0x02D40000 by thread 1. Successfully hooked module. * 
00:00:15.225: *Loaded "c:\python27\lib\site-packages\tables\SZIP.DLL" at 
address 0x6C540000 by thread 1. Successfully hooked module. * 
00:00:15.225: Unloaded 
"c:\python27\lib\site-packages\tables\UTILSEXTENSION.PYD" at address 0x02CE0000 
by thread 1. 
00:00:15.225: Unloaded "c:\python27\lib\site-packages\tables\HDF5DLL.DLL" at 
address 0x04D60000 by thread 1. 
00:00:15.241: Unloaded "c:\python27\lib\site-packages\tables\SZIP.DLL" at 
address 0x6C540000 by thread 1. 
00:00:15.241: Unloaded "c:\python27\lib\site-packages\tables\ZLIB1.DLL" at 
address 0x02D40000 by thread 1. 
00:00:15.257: 
*LoadLibraryExA("C:\Python27\lib\site-packages\tables\utilsExtension.pyd", 
0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) returned NULL by thread 1. Error: 
The specified module could not be found (126). * 
00:00:15.491: First chance exception 0x0EEDFADE (Unknown) occurred in 
"c:\windows\system32\KERNEL32.DLL" at address 0x76A3FC56 by thread 1. 
00:00:15.506: LoadLibraryExW("C:\Windows\system32\btmmhook.dll", 0x00000000, 
LOAD_WITH_ALTERED_SEARCH_PATH) called from "c:\windows\system32\USER32.DLL" at 
address 0x763BE710 by thread 6. 
.... 

If I take UTILSEXTENSION.pyd, I get an error: " Error: At least one required 
implicit or forwarded dependency was not found. Warning: At least one 
delay-load dependency module was not found. Warning: At least one module has an 
unresolved import due to a missing export function in a delay-load dependent 
module."
That seems to be related to MSVCR90.DLL and it gives: 
"C:\Python27\lib\site-packages\tables\MSVCR90.DLL was not found"
UTILSEXTENSION.pyd is also related to HFD5DLL.DLL, PYTHON27.DLL which seem 
correctly link to 
":\windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCR90.DLL"

When running the script against python.exe no problem occurs.
So this means that on the same system I don't have the same behaviour. Does 
anyone have an idea what's going wrong? 
I'm not the developper of the other system, but maybe somebody can give me some 
elements so that I can give the developpers an idea. 

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to