robotframework-appiumlibrary icon indicating copy to clipboard operation
robotframework-appiumlibrary copied to clipboard

getting Error "ModuleNotFoundError: No module named 'appium.webdriver.common.touch_action' " during launch application

Open Suphakorn95 opened this issue 1 year ago • 2 comments

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 from AppiumLibrary.keywords import * File "/Users/suphakorn/PycharmProjects/mobile-automatate/.venv/lib/python3.12/site-packages/AppiumLibrary/keywords/init.py", line 9, in from ._touch import _TouchKeywords File "/Users/suphakorn/PycharmProjects/mobile-automatate/.venv/lib/python3.12/site-packages/AppiumLibrary/keywords/_touch.py", line 3, in from appium.webdriver.common.touch_action import TouchAction PYTHONPATH: /Users/suphakorn/PycharmProjects/mobile-automatate/.venv/bin /Library/Frameworks/Python.framework/Versions/3.12/lib/python312.zip /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12 /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload /Users/suphakorn/PycharmProjects/mobile-automatate/.venv/lib/python3.12/site-packages

Please help me. Thanks you in advance.

Suphakorn95 avatar Apr 02 '24 11:04 Suphakorn95

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

ajaxpp avatar Apr 13 '24 15:04 ajaxpp

dupe; https://github.com/serhatbolsu/robotframework-appiumlibrary/issues/417 and suggested fix https://github.com/serhatbolsu/robotframework-appiumlibrary/pull/418

rasjani avatar Apr 15 '24 05:04 rasjani