GramAddict / bot

Completely free and open-source human-like Instagram bot. Powered by UIAutomator2 and compatible with basically any Android device 5.0+ that can run Instagram - real or emulated.
https://docs.gramaddict.org
MIT License
1.11k stars 173 forks source link

Gramaddict wont start even though venv and python 3.9.7 are installed. I get this error #293

Open Justwonderingmaybe opened 1 year ago

Justwonderingmaybe commented 1 year ago

Traceback (most recent call last): File "C:\Program Files\Python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Program Files\Python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\User\Desktop\g.venv\Scripts\gramaddict.exe__main.py", line 7, in File "C:\Users\User\Desktop\g.venv\lib\site-packages\GramAddict\main.py", line 138, in main actionsargs.subparser File "C:\Users\User\Desktop\g.venv\lib\site-packages\GramAddict\main.py", line 40, in cmd_run start_bot() File "C:\Users\User\Desktop\g.venv\lib\site-packages\GramAddict\core\bot_flow.py", line 94, in start_bot if not configs.args or not check_adb_connection(): File "C:\Users\User\Desktop\g.venv\lib\site-packages\GramAddict\core\utils.py", line 169, in check_adb_connection stream = os.popen("adb devices") File "C:\Program Files\Python39\lib\os.py", line 983, in popen proc = subprocess.Popen(cmd, File "C:\Program Files\Python39\lib\subprocess.py", line 951, in init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Program Files\Python39\lib\subprocess.py", line 1420, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified

AbimbolaObadare commented 1 year ago

Do you have the file structure containing the config.yml file as stated in the docs

Geozstevenzz commented 1 year ago

The error is being raised when the Python script is trying to run the "adb devices" command using the "os.popen" function.

This error message typically indicates that either the "adb" command is not installed on your system, or that the "adb" command is not in your system's PATH environment variable.

Here are some steps you can try to resolve the issue:

Check if adb is installed: Verify that the Android Debug Bridge (adb) tool is installed on your system by running the "adb" command in the command line. If the adb command is not found, you will need to install it.

Add adb to your PATH: If the adb command is installed, but the operating system cannot find it, you may need to add the directory containing the adb executable to your PATH environment variable. This will allow your operating system to find the adb command when it is run from the command line.

Use the full path to adb: If you are unable to add the adb executable to your PATH environment variable, you can try using the full path to the adb executable in the "os.popen" function. This will ensure that the Python script is able to find the adb executable, even if it is not in the PATH environment variable.