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

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -