Bugs item #2998318, was opened at 2010-05-07 16:53
Message generated for change (Comment added) made by oscarl-2
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2998318&group_id=78018
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: win32
Group: None
Status: Open
Resolution: None
>Priority: 7
Private: No
Submitted By: Oscar Lesta (oscarl-2)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python doesn't works with Windows Scripting Host anymore.
Initial Comment:
In a clean WinXP Pro install, I've installed ActivePython-3.1.2.3-win32-x86.msi.
Trying to execute the following script:
-------- C:\test.vbs ----------
set x = CreateObject("Python")
-------------------------------
Fails with the followin information:
--------------------------
Windows Scripting Host:
Line: 1
Character: 1
Error: ActiveX component can't create object: 'Python'
Code: 800A01AD
Origen: Microsoft VBScript runtime error
--------------------------
Just to be sure, I executed the following lines:
C:\Python31\Lib\site-packages\win32comext\axscript\client>pyscript.py
Registered: Python
C:\Python31\Lib\site-packages\win32comext\axscript\client>cd C:\
Rerunning C:\>test.vbs now doesn't shows the previous error, but a new one stating that: "the application could not be started because MSVCR90.DLL was not found".
Installing the Visual C++ 9 Runtime redistributable from Microsoft (file vcredist_x86.exe) does not improves the situation.
The same happens with: ActivePython-2.6.5.12-win32-x86.msi and with
http://www.python.org/ftp/python/2.7/python-2.7b1.msi
But it works OK with: ActivePython-2.5.4.3-win32-x86.msi
----------------------------------------------------------------------
>Comment By: Oscar Lesta (oscarl-2)
Date: 2010-05-07 17:04
Message:
Trying to run the following code (saved as test.wsf):
<Job Id="WshTest">
<script language="Python.AXScript.2">
import sys
import win32com.client
import win32api
ws = win32com.client.Dispatch("WScript.Shell")
ws.popup("Hello from Python!")
</script>
</job>
Shows two error messages, the first stating the missing MSVCR90.DLL, the
second
with the folling info:
--------------------------
Windows Scripting Host:
Command sequence: C:\test.wsf
Line: 0
Character: 1
Error: : Python.AXScript.2
Code: 8007007E
Origin: Microsoft VBScript runtime error
--------------------------
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2998318&group_id=78018
|