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

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

Open
Suphakorn95 opened this issue Apr 2, 2024 · 2 comments

Comments

@Suphakorn95
Copy link

Suphakorn95 commented Apr 2, 2024

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.

@ajaxpp
Copy link

ajaxpp commented Apr 13, 2024

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
Copy link
Contributor

rasjani commented Apr 15, 2024

dupe; #417 and suggested fix #418

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

3 participants