Skip to content
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

python3.7.9 uiautomator脚本一直阻塞无法执行 #319

Open
yanhonghong opened this issue Nov 11, 2022 · 1 comment
Open

python3.7.9 uiautomator脚本一直阻塞无法执行 #319

yanhonghong opened this issue Nov 11, 2022 · 1 comment

Comments

@yanhonghong
Copy link

你好,请问这个包支持Python37环境吗,我这边Python3.7.9执行脚本,脚本一直处于阻塞状态

@unofficialdxnny
Copy link

unofficialdxnny commented Aug 3, 2024

Hello,

I understand you're having trouble with uiautomator and Python 3.7.9. From my experience, uiautomator was designed to work with Python 2.7 and Python 3.5, and it generally supports Python 3.6 as well. However, issues can arise when using it with Python 3.7 or later versions.

Here's What You Can Do:

  1. Check Compatibility:

    • Confirm the version of uiautomator you're using and review its documentation or release notes for compatibility information.
  2. Consider Downgrading Python:

    • If possible, try downgrading to Python 3.6, which is more likely to be compatible with uiautomator. This could resolve the blocking issue you're experiencing.
  3. Use a Virtual Environment:

    • Set up a virtual environment with Python 3.6 to manage different Python versions easily. This way, you can test if uiautomator works better with that version.

       python3.6 -m venv myenv
       source myenv/bin/activate  # On macOS/Linux
       myenv\Scripts\activate     # On Windows
       pip install uiautomator```
    

Consider using uiautomator2, a more recent library that offers similar functionality and might have better support for newer Python versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants