appetizerio / replaykit.py

Python SDK for using Appetizer replaykit
Apache License 2.0
18 stars 5 forks source link

Initialization of the Appetizer fails #1

Closed hunterra closed 5 years ago

hunterra commented 5 years ago

Try to initialize the Appetizer with command appetizer = Appetizer(toolkit='D:\\Programs\\replaykit\\win32') This command fails with trace

Traceback (most recent call last): File "", line 1, in File "d:\Programs\WinPython\WinPython-32bit-3.4.4.6Qt5\python-3.4.4\lib\site-packages\appetizer\ap petizer.py", line 229, in init self.check_version(Appetizer.COMPAT_LEVEL) File "d:\Programs\WinPython\WinPython-32bit-3.4.4.6Qt5\python-3.4.4\lib\site-packages\appetizer\ap petizer.py", line 232, in check_version v = json.loads(self.check_output(['version'])) File "d:\Programs\WinPython\WinPython-32bit-3.4.4.6Qt5\python-3.4.4\lib\site-packages\appetizer\ap petizer.py", line 240, in check_output return subprocess.check_output(self.program + args) File "d:\Programs\WinPython\WinPython-32bit-3.4.4.6Qt5\python-3.4.4\lib\subprocess.py", line 607, in check_output with Popen(*popenargs, stdout=PIPE, **kwargs) as process: File "d:\Programs\WinPython\WinPython-32bit-3.4.4.6Qt5\python-3.4.4\lib\subprocess.py", line 859, in init restore_signals, start_new_session) File "d:\Programs\WinPython\WinPython-32bit-3.4.4.6Qt5\python-3.4.4\lib\subprocess.py", line 1114, in _execute_child startupinfo) PermissionError: [WinError 5]

Environment: Windows 7 x64, Python 3.4.4

mingyuan-xia commented 5 years ago

Please read the doc. the path should point to an exe not the folder https://github.com/appetizerio/replaykit.py/wiki#usage

hunterra commented 5 years ago

The folder "D:\Programs\replaykit\win32" contains "replaykit.exe" file. Anyway the error appears. The correct way is to give the full path to exe file like this "D:\Programs\replaykit\win32\replaykit.exe", not to the folder containing exe.