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.

Home Page:https://docs.gramaddict.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModuleNotFoundError: No module named 'pkg_resources'

spikeyhair opened this issue · comments

I tried to install in Win10 and I am stucked at the step where it ask me to run this command:
python3 -m uiautomator2 init

I am getting this error:
C:\Users\kckw_\OneDrive\Python Projects\gramaddict\venv>python -m uiautomator2 init
Traceback (most recent call last):
File "", line 189, in run_module_as_main
File "", line 148, in get_module_details
File "", line 112, in get_module_details
File "C:\Users\kckw
\AppData\Roaming\Python\Python312\site-packages\uiautomator2_init
.py", line 40, in
import adbutils
File "C:\Users\kckw
\AppData\Roaming\Python\Python312\site-packages\adbutils_init_.py", line 12, in
from .adb import AdbConnection
File "C:\Users\kckw
\AppData\Roaming\Python\Python312\site-packages\adbutils_adb.py", line 16, in
from adbutils.utils import adb_path
File "C:\Users\kckw
\AppData\Roaming\Python\Python312\site-packages\adbutils_utils.py", line 15, in
from pkg_resources import resource_filename
ModuleNotFoundError: No module named 'pkg_resources'

I found that pkg_resources is actually available at
C:\Users\kckw_\OneDrive\Python Projects\gramaddict\venv\Lib\site-packages\pip_vendor
and
C:\Program Files\Python312\Lib\site-packages\pip_vendor

this is the path I set:
PATH=C:\Program Files\Python312\Scripts;C:\Program Files\Python312;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Users\kckw_\AppData\Local\Microsoft\WindowsApps;C:\Users\kckw_\AppData\Local\atom\bin;C:\Users\kckw_\OneDrive\Python Projects\gramaddict\platform-tools;C:\Users\kckw_\OneDrive\Python Projects\gramaddict\virtualspace\Lib\site-packages;C:\Users\kckw_\OneDrive\Python Projects\gramaddict\venv\Lib\site-packages\pip_vendor;

I tried to uninstall python, deleted the virtual env and start from the first step again. I am still hitting this error.
Please help. Thanks.

Maybe uiautomator2 (or one of his dependencies) doesn't support python 3.12. Have you tried to use a previous version of python? I suggest you 3.10