Luc,
I have never used the setup that you are currently knee-deep in.
However, could you write a little script and execute it in two
places for us? The script just prints out the PYTHONPATH
import sys
print sys.path
Then please run it under VB and under your normal Python
executable. I suspect that the two lists will be very different,
or at least different enough.
Be Well
Anthony
On Mon, Feb 6, 2012 at 8:57 AM, Luc Kesters <luc.kest...@hotmail.com> wrote:
> One can use several scripting languages of which vBscript, Javascript and
> python amongs other.
> As I understand it, the windows script host (wscript.exe) is used to run a
> script and standard the (for windows) "native" script languagues vbScript
> will be used
> If one indicates python as languague the windows script host passes the
> script to the win32 Extensions module.
> This is done because in the script one can also use specific com-interfaces
> from that system which the python interpreter needs to work with those com
> interfaces.
> When I try to debug a simple script (just "import tables"), I notice that
> several methods in the win32 package is used (e.g. in
> C:\Python27\Lib\site-packages\win32comext\axscript\client\pyscript.py).
> To me it seems that the problem is in the interaction (wscript, win32 and
> pytables)
> I'll try to get more info on how the exact process works, but maybe this
> already rings a bell.
>
> > Message: 4
> > Date: Wed, 25 Jan 2012 11:17:58 -0600
> > From: Anthony Scopatz <scop...@gmail.com>
> > Subject: Re: [Pytables-users] Installation problems windows
> > To: Discussion list for PyTables
> > <pytables-users@lists.sourceforge.net>
> > Message-ID:
> > <capk-6t45d2hwhph2v2vgviqwbsrbjv3vhqek3spvb58tvf9...@mail.gmail.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > What do you mean that it is embedded in another system?
> >
> > I agree that your environment in general is probably set up
> > correctly, but what I don't understand is how you are getting
> > it to fail. What do VB and JavaScript have to do with this?
> >
> > Be Well
> > Anthony
> >
> > On Tue, Jan 24, 2012 at 5:33 PM, Luc Kesters
> > <luc.kest...@hotmail.com>wrote:
> >
> >> I seem to several MSVCR*.DLL on my system.
> >> I've checked every MSVCR90.DLL that I have on my system and the
> >> properties
> >> indicate for all of them "Product Name: Microsoft Visual Studio 2008"
> >> My expertise in this domain is limited so I'll check with a colleague.
> >>
> >> Furthermore it is bizar that if I run the same script (just "import
> >> tables")
> >> as a 'normal' script (in spyder, but at the command prompt 'python
> >> script.py' works also fine)
> >> So, to me it seems that my settings should be ok.
> >> PS. my installation of python, pytables,... is done with python(x,y) at
> >> once.
> >>
> >> >
> >> > Message: 3
> >> > Date: Mon, 23 Jan 2012 10:16:05 -0600
> >> > From: Anthony Scopatz <scop...@gmail.com>
> >> > Subject: Re: [Pytables-users] Installation problems windows
> >> > To: Discussion list for PyTables
> >> > <pytables-users@lists.sourceforge.net>
> >> > Message-ID:
> >> > <CAPk-6T67dXddkD8djBgosNtZhH5Who=adk0ceozwmvgcc2c...@mail.gmail.com>
> >> > Content-Type: text/plain; charset="iso-8859-1"
> >> >
> >> > Hello Luc,
> >> >
> >> > This is because you do not have the correct version of the Windows C
> >> > runtime library installed. Python is distributed with the Virtual C
> >> > 2008
> >> > (and not anything newer!). You need to install MSVCR90.DLL correctly
> >> > to
> >> > get this to work. This is a well known issue.
> >> >
> >> > Google for "ImportError" and "windows" and "MSVCR90.DLL" you should be
> >> > able
> >> > to find a solution online.
> >> >
> >> > Be Well
> >> > Anthony
> >> >
> >> > On Mon, Jan 23, 2012 at 7:04 AM, Luc Kesters
> >> > <luc.kest...@hotmail.com>wrote:
> >> >
> >> >> **
> >> >> 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
>
------------------------------------------------------------------------------
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