-
-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'pkg_resources' #390
Comments
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
<#390 (comment)>,
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
> <#390 (comment)>,
> 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 |
Step 1: Install Python 3.9 (if not already installed) python3.9 --version Step 2: Create a Virtual Environment cd /path/to/your/project python3.9 -m venv venv On Linux/macOS: source venv/bin/activate venv\Scripts\activate Step 3: Install GramAddict Package Install GramAddict using pip: pip install GramAddict Verify the installation: pip show GramAddict |
Use pyenv install 3.9 |
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.
The text was updated successfully, but these errors were encountered: