bot
bot copied to clipboard
ModuleNotFoundError: No module named 'pkg_resources'
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 "
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
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: @.***>
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: @.***>
Right, just run pip3 install --upgrade setuptools