Hi…I am trying to add AppiumLibrary to red.xml file but it throwing exception:
"RED was unable to find classes/modules inside ‘C:\Users\A1029532\AppData\Local\Programs\Python\Python36\Lib\site-packages\AppiumLibrary_init_.py’ module
Following exception has been thrown:
Traceback (most recent call last):
File "C:\Users\A1029532\AppData\Local\Temp\RobotTempDir330939198960366393\robot_session_server.py", line 43, in inner
result['result'] = func(*args, **kwargs)
File "C:\Users\A1029532\AppData\Local\Temp\RobotTempDir330939198960366393\robot_session_server.py", line 105, in inner
return to_call(*args, **kwargs)
File "C:\Users\A1029532\AppData\Local\Temp\RobotTempDir330939198960366393\robot_session_server.py", line 138, in inner
return to_call(*args, **kwargs)
File "C:\Users\A1029532\AppData\Local\Temp\RobotTempDir330939198960366393\robot_session_server.py", line 78, in inner
return func(*args, **kwargs)
File "C:\Users\A1029532\AppData\Local\Temp\RobotTempDir330939198960366393\robot_session_server.py", line 182, in get_classes_from_module
return red_module_classes.get_classes_from_module(module_location)
File "C:\Users\A1029532\AppData\Local\Temp\RobotTempDir330939198960366393\red_module_classes.py", line 25, in get_classes_from_module
inside_file_names = module_names_collector._try_to_find_names_in_module(module_name, module_location)
File "C:\Users\A1029532\AppData\Local\Temp\RobotTempDir330939198960366393\red_module_classes.py", line 238, in _try_to_find_names_in_module
module = importlib.import_module(module_name)
File "C:\jython2.7.2\Lib\importlib\__init__.py", line 37, in import_module
__import__(name)
File "C:\Users\A1029532\AppData\Local\Programs\Python\Python36\Lib\site-packages\AppiumLibrary\__init__.py", line 4, in <module>
from AppiumLibrary.keywords import *
File "C:\Users\A1029532\AppData\Local\Programs\Python\Python36\Lib\site-packages\AppiumLibrary\keywords\__init__.py", line 7, in <module>
from ._applicationmanagement import _ApplicationManagementKeywords
File "C:\Users\A1029532\AppData\Local\Programs\Python\Python36\Lib\site-packages\AppiumLibrary\keywords\_applicationmanagement.py", line 6, in <module>
from appium import webdriver
File "C:\Users\A1029532\AppData\Local\Programs\Python\Python36\Lib\site-packages\appium\webdriver\__init__.py", line 19, in <module>
from .webdriver import WebDriver as Remote
File "C:\Users\A1029532\AppData\Local\Programs\Python\Python36\Lib\site-packages\appium\webdriver\webdriver.py", line 88
def _make_w3c_caps(caps: Dict) -> Dict[str, List[Dict[str, Any]]]:
^
SyntaxError: mismatched input ':' expecting RPAREN"
I am using Python ver: 3.6.7
Appium Library: 1.5.0.6
RobotFramework ver: 3.2.1
Please provide support as i am completely blocked due to this exception.
Thanks,