serhatbolsu / robotframework-appiumlibrary

AppiumLibrary is an appium testing library for RobotFramework
Apache License 2.0
404 stars 293 forks source link

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

Open Suphakorn95 opened 8 months ago

Suphakorn95 commented 8 months ago

Hello All, I'm facing error below "Importing library 'AppiumLibrary' failed: ModuleNotFoundError: No module named 'appium.webdriver.common.touch_action' "

I am using:

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.

ajaxpp commented 7 months ago

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

rasjani commented 7 months ago

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