getting Error "ModuleNotFoundError: No module named 'appium.webdriver.common.touch_action' " during launch application
Hello All, I'm facing error below "Importing library 'AppiumLibrary' failed: ModuleNotFoundError: No module named 'appium.webdriver.common.touch_action' "
I am using:
-
python version: 3.12.0
-
appium 2.5.1
-
robotframework: 7.0.0
-
robotframework-appiumlibrary: 2.0.0
Please see error details below;
(.venv) MBPkhxngPaytine:mobile-automatate suphakorn$ robot -d Output --loglevel TRACE Tests/Login.robot
[ ERROR ] Error in file '/Users/suphakorn/PycharmProjects/mobile-automatate/Resources/Import.robot' on line 2: Importing library 'AppiumLibrary' failed: ModuleNotFoundError: No module named 'appium.webdriver.common.touch_action'
Traceback (most recent call last):
File "/Users/suphakorn/PycharmProjects/mobile-automatate/.venv/lib/python3.12/site-packages/AppiumLibrary/init.py", line 4, in
Please help me. Thanks you in advance.
try use this command $ pip install --force-reinstall "Appium-Python-Client<4.0.0" https://stackoverflow.com/questions/78310223/modulenotfounderror-no-module-named-appium-webdriver-common-touch-action
dupe; https://github.com/serhatbolsu/robotframework-appiumlibrary/issues/417 and suggested fix https://github.com/serhatbolsu/robotframework-appiumlibrary/pull/418