how to invoke VB script from Python

Asked by sonali

 we have one python script usinng sikuli tool and one vb script ,we want to integrate both

 so want to call vbscript from python.i tried some methods posted on your site like
import os
import sys
os.system(r"D:\sonaliimp\automation\v.vbs")

but it is throwing below error
[error] Stopped
[error] An error occurs at line 3
[error] Error message: Traceback (most recent call last):
 File "C:\Users\PANIGR~1\AppData\Local\Temp\sikuli-tmp8310844590916589886.py", line 3, in
 os.system(r"D:\sonaliimp\automation\v.vbs")
File "C:\Program Files\Sikuli\sikuli-r930-win32\Sikuli-IDE\sikuli-script.jar\Lib\subprocess.py", line 456, in call
 File "C:\Program Files\Sikuli\sikuli-r930-win32\Sikuli-IDE\sikuli-script.jar\Lib\subprocess.py", line 751, in __init__
 File "C:\Program Files\Sikuli\sikuli-r930-win32\Sikuli-IDE\sikuli-script.jar\Lib\subprocess.py", line 1236, in _execute_child
TypeError: unsupported operand type(s) for +: 'NoneType' and 'list'

Please help

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Apparently a problem in the Jython 2.5 subprocess module.
This version of Sikuli is no longer supported with such system/interpreter specific problems.

Either use an external Jython 2.7 and run your script with it or try with SikuliX version 1.1.0 (http://sikulix.com)

Can you help with this problem?

Provide an answer of your own, or ask sonali for more information if necessary.

To post a message you must log in.