openatx / uiautomator2

Android Uiautomator2 Python Wrapper
MIT License
6.26k stars 1.36k forks source link

uiautomator2/assets/app-uiautomator.apk' not found #940

Closed lbdann2 closed 4 months ago

lbdann2 commented 5 months ago

OSError: file 'C:/Users/User/AppData/Local/Temp/_MEI291642/uiautomator2/assets/app-uiautomator.apk' not found [31280] Failed to execute script 'autozaliv' due to unhandled exception! Whats wrong?

lbdann2 commented 5 months ago

https://ibb.org.ru/1/ILPO1D https://ibb.org.ru/1/ILPASQ

alialerwi commented 4 months ago

go to assert folder in C:\Python39\Lib\site-packages\uiautomator2\assets and convert ,sh to .bat and run it to download them here is the file just copy it to that folder and run it

here is how i converted it @echo off set APK_VERSION=2.3.3 curl -L "https://github.com/openatx/android-uiautomator-server/releases/download/%APK_VERSION%/app-uiautomator.apk" --output "app-uiautomator.apk" curl -L "https://github.com/openatx/android-uiautomator-server/releases/download/%APK_VERSION%/app-uiautomator-test.apk" --output "app-uiautomator-test.apk"

codeskyblue commented 4 months ago

已修复,升级到3.0.3以上就行。目前的最新版本是3.0.4

alexitooh commented 3 months ago

tengo el mismo problemas en todas las versiones, pero el problema es cuando esta compilado a .exe solo ahi sucede

https://prnt.sc/NhiZ15y0wGuG

codeskyblue commented 3 months ago

@alexitooh which version u are using

nedsion commented 2 months ago

got same issue with 3.0.8 but only got while i build in .exe