android-tools icon indicating copy to clipboard operation
android-tools copied to clipboard

EventRecorder Error "Device tool installation failed"

Open evgeny9 opened this issue 13 years ago • 2 comments

When running "python recorder.py test" comand I'm getting an error "Device tool installation failed - cannot open 'c:\docume~1\user12~1\locals~1\temp\tmpfksn2g': No such file or directory". Host OS: Windows XP SP3.

Thank you!

evgeny9 avatar Mar 02 '12 16:03 evgeny9

having the same problem. very new to these. can anyone help?

sangmin22 avatar Feb 13 '13 12:02 sangmin22

with python=2.7 and adb=1.0.32 , found the issue: added suffix='.apk' to NamedTemporaryFile() and its started to work.

def installDeviceTool(): uninstall(_TARGET_PACKAGE); file = tempfile.NamedTemporaryFile(suffix='.apk') file.write(base64.b64decode(_g_base64Apk)) file.flush() ok, reply = install(file.name) print "installing %s" % file.name file.close() return ok, reply

thecreed avatar Dec 19 '16 07:12 thecreed