openatx / uiautomator2

Android Uiautomator2 Python Wrapper
MIT License
6.18k stars 1.35k forks source link

packaging.version.InvalidVersion: Invalid version #960

Closed vinhomesoceanpark closed 2 months ago

vinhomesoceanpark commented 2 months ago

I'm quite tired of this situation. I tried downgrading the package to the one shown in the picture but the problem still persists.

One strange thing is when I use weditor to connect first. Run the code and click on the coordinates , and the code in the terminal will not error anymore.

Hope you check it out 3 Screenshot 2024-04-28 115811 2

codeskyblue commented 2 months ago

how about update uiautomator2 version to 3.0.9 this version removed packaging lib and a lot of other useless lib

vinhomesoceanpark commented 2 months ago

yes i have trying use 3.0.9. So it still have error about packaging too. You can see at my picture here :( xx

codeskyblue commented 2 months ago

@vinhomesoceanpark This is because there two python installed on your computer(python39, python12), remove python39 will make it right