leng-yue / py-scrcpy-client

An easy to use python scrcpy client
https://leng-yue.github.io/py-scrcpy-client/
MIT License
290 stars 74 forks source link

adb 错误 #4

Closed cgcgcg-xs closed 3 years ago

cgcgcg-xs commented 3 years ago

程序打包前正常,打包后提示 adb 错误 (找不到adb.exe,问题是adb.exe已加入PATH了) [Errno subprocess] .\adb.EXE -s QECDU16E01001589 push C:\Users\ADMINI~1\AppData\Local\Temp_MEI184962\scrcpy/scrcpy-server.jar /data/local/tmp/: "adb: error: cannot stat 'C:\Users\ADMINI~1\AppData\Local\Temp\_MEI184962\scrcpy/scrcpy-server.jar': No such file or directory\r\n"

找到问题了,不是找不到adb.exe,是找不到scrcpy/scrcpy-server.jar,修改了下路径,搞定了!

leng-yue commented 2 years ago

你用的 pyinstaller? 那个好像要用 MEIPASS 之类的参数