You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I am trying to run your code on Windows, python 2.7:
adbrecord.py --show
But I get this error:
File "C:[path-to-code]\adb-event-record-master\adbrecord.py", line 73, in listAllEvent
stderr=PIPE)
File "C:\Python27\lib\subprocess.py", line 394, in init
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 644, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
So I tried to delve into subprocess.py and specifically look for the arguments passed in the constructor Popen as your code fails when calling subprocess.Popen(...) (adbrecord.py line 72)
Because I read somewhere that it's needed.
It apparently solved(?) the issue, but then I got the following error:
File "C:[path-to-code]\adb-event-record-master\adbrecord.py", line 67, in checkPermission
if subprocess.call(self.adb_command + [b'root']) != 0:
File "C:\Python27\lib\subprocess.py", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 394, in init
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 644, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
So I guess I basically need to add shell=True wherever subprocess is called.
Now I get:
line 68, in checkPermission
raise OSError('Insufficient permissions')
OSError: Insufficient permissions
Which I guess is related to permissions from my phone, so I'll try to solve the issue later.
PS.
This is how to constructor looks like in subprocess.py:
The text was updated successfully, but these errors were encountered:
So I am trying to run your code on Windows, python 2.7:
But I get this error:
So I tried to delve into subprocess.py and specifically look for the arguments passed in the constructor Popen as your code fails when calling subprocess.Popen(...) (adbrecord.py line 72)
I tried to solve the issue by for example adding shell = True to subprocess.Popen:
Because I read somewhere that it's needed.
It apparently solved(?) the issue, but then I got the following error:
So I guess I basically need to add shell=True wherever subprocess is called.
Now I get:
Which I guess is related to permissions from my phone, so I'll try to solve the issue later.
PS.
This is how to constructor looks like in subprocess.py:
The text was updated successfully, but these errors were encountered: