c++ - Python type error while embedding -
c++ - Python type error while embedding -
i trying run next python code c++(embedding python).
import sys import os import time import win32com.client com.dtmilano.android.viewclient import viewclient import re import pythoncom import thread os.popen('adb devices') canalyzer = none measurement = none def can_start(config_path): global canalyzer,measurement canalyzer = win32com.client.dispatch('canalyzer.application') canalyzer.visible = 1 measurement = canalyzer.measurement canalyzer.open(config_path) measurement.start() com_marshall_stream = pythoncom.comarshalinterthreadinterfaceinstream(pythoncom.iid_idispatch,canalyzer) homecoming com_marshall_stream
when seek phone call can_start
function, getting python type error . error traceback mentioned below.
"type 'exceptions.typeerror'. integer required. traceback object @ 0x039a198"
the function executing if straight ran python , executing in pc, code developed. later when transferred laptop, experiencing problem.
python c++ python-2.7 com python-embedding
Comments
Post a Comment