bot icon indicating copy to clipboard operation
bot copied to clipboard

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

Open Justwonderingmaybe opened this issue 2 years ago • 2 comments

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

Justwonderingmaybe avatar Jan 23 '23 13:01 Justwonderingmaybe

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

AbimbolaObadare avatar Feb 04 '23 14:02 AbimbolaObadare

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.

Geozstevenzz avatar Feb 09 '23 12:02 Geozstevenzz