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

Importing library 'Appiumlibrary' failed: ModuleNotFoundError: No module named 'Appiumlibrary'

Open asknattawut opened this issue 3 years ago • 3 comments

Hi everyone,

I have been trying to use Appiumlibrary to run automated testing on Android Simulator; However, When I run the code VScode run an error message as below:

Exception has occurred. Suspended due to logged error: Error in file '/Users/nattawutkreangkraileard/Desktop/Mobiletest/tasks.robot' on line 2: Importing library 'Appiumlibrary' failed: ModuleNotFoundError: No module named 'Appiumlibrary' Traceback (most recent call last): None PYTHONPATH: /Users/nattawutkreangkraileard/.vscode/extensions/robocorp.robotframework-lsp-0.46.0/src/robotframework_debug_adapter /Users/nattawutkreangkraileard/Desktop/Mobiletest /Users/nattawutkreangkraileard/.vscode/extensions/robocorp.robotframework-lsp-0.46.0/src /Users/nattawutkreangkraileard/.vscode/extensions/robocorp.robotframework-lsp-0.46.0/src/robotframework_ls/vendored /Users/nattawutkreangkraileard/.robocorp/holotree/b1f3c244e_0041a488/lib/python38.zip /Users/nattawutkreangkraileard/.robocorp/holotree/b1f3c244e_0041a488/lib/python3.8 /Users/nattawutkreangkraileard/.robocorp/holotree/b1f3c244e_0041a488/lib/python3.8/lib-dynload /Users/nattawutkreangkraileard/.robocorp/holotree/b1f3c244e_0041a488/lib/python3.8/site-packages

This is my code: `*** Settings *** Library Appiumlibrary

*** Test Cases *** Open Test Application For Android Open Test Application

*** Keywords *** Open Test Application Open Application remote_url=http://localhost:4723/wd/hub ... deviceName=Test Device ... platformVersion=11.0 ... platformName=Android ... appPackage=com.material.components ... appActivity=com.material.components.activity.MainMenu `

Kindly advise How to fix this error.

Great thanks!

K.Nattawut

asknattawut avatar Apr 26 '22 01:04 asknattawut

i also have this issue and cant figure it out i am using VS code and tried pycharm and both not reconizing it

saife-elRefaye avatar Aug 29 '22 05:08 saife-elRefaye

after library you need 2 space, but I am not sure why it doesn't work

serhatbolsu avatar Oct 25 '22 20:10 serhatbolsu

hi @asknattawut,

Is it probably because you used Appiumlibrary instead of AppiumLibrary.

joshuariveramnltech avatar Apr 05 '23 08:04 joshuariveramnltech