perryhuynh / azurlane-auto

ALAuto - Azur Lane Automation Tool
Do What The F*ck You Want To Public License
22 stars 8 forks source link

Can't find specified file #8

Closed LazyBoii closed 5 years ago

LazyBoii commented 5 years ago

Environment details

0.1.1

Issue variability

Consistent

Issue

Running the command : python3 azurlane-auto.py always ends with FileNotFoundError: [WinError 2]

azur

Log


C:\Users\imaik\Downloads\Azur Lane\azurlane-auto-master>py -3 azurlane-auto.py
[2019-01-03 06:29:48] Initializing config module
[2019-01-03 06:29:48] Validating config
[2019-01-03 06:29:48] Starting azurlane-auto!
Traceback (most recent call last):
  File "azurlane-auto.py", line 91, in <module>
    Adb.init()
  File "C:\Users\imaik\Downloads\Azur Lane\azurlane-auto-master\util\adb.py", line 10, in init
    cls.kill_server()
  File "C:\Users\imaik\Downloads\Azur Lane\azurlane-auto-master\util\adb.py", line 25, in kill_server
    subprocess.call(cmd)
  File "C:\Users\imaik\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 323, in call
    with Popen(*popenargs, **kwargs) as p:
  File "C:\Users\imaik\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "C:\Users\imaik\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1178, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
perryhuynh commented 5 years ago

You don't have ADB installed on your system and/or on your PATH, I'll probably end up trying including the ADB binaries in the project so people don't have to install it themselves.

EDIT: It looks like I forgot to mention ADB installation in the README so I will update that as well if including the binary doesn't work.

LazyBoii commented 5 years ago

hmm, its weird because I have adb installed, also added it to my path just now and still get same error, possibly missing something else.

perryhuynh commented 5 years ago

Dunno if you have to restart the computer for it to apply on Windows but ADB works if you type adb in command prompt?

LazyBoii commented 5 years ago

Says its not recognized let me restart my computer.

Edit: ok its all set now i had the wrong adb binaries, had to update them, but ya adding the adb binaries/ mention in readme will help people who overlook that :D