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.02k stars 161 forks source link

ModuleNotFoundError: No module named 'pkg_resources' #390

Open spikeyhair opened 3 months ago

spikeyhair commented 3 months ago

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_moduledetails 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 adbpath 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 pkgresources 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.

mastrolube commented 3 months ago

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

tien6193 commented 3 months ago

you should update setup tool

On Thu, Mar 28, 2024 at 2:32 PM Dennis @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/GramAddict/bot/issues/390#issuecomment-2024578139, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC5QNXD7NILBUYQUDGGH2RLY2O2OXAVCNFSM6AAAAABFMFT4GSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUGU3TQMJTHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

tien6193 commented 3 months ago

i can help you via utra view

On Mon, Apr 1, 2024 at 3:46 PM bui van tien @.***> wrote:

you should update setup tool

On Thu, Mar 28, 2024 at 2:32 PM Dennis @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/GramAddict/bot/issues/390#issuecomment-2024578139, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC5QNXD7NILBUYQUDGGH2RLY2O2OXAVCNFSM6AAAAABFMFT4GSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUGU3TQMJTHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Szymok commented 2 weeks ago

Right, just run pip3 install --upgrade setuptools