AppiumLibrary throwing exception while adding to RED.xml file

I had installed Appium Library: 1.5.0.6 with Python 3.6.7 & RobotFramework: 3.2.1. But while adding AppiumLibrary to RED.xml it throwing below 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\RobotTempDir1269721338017206056\robot_session_server.py”, line 43, in inner
result[‘result’] = func(*args, **kwargs)
File “C:\Users\A1029532\AppData\Local\Temp\RobotTempDir1269721338017206056\robot_session_server.py”, line 105, in inner
return to_call(*args, **kwargs)
File “C:\Users\A1029532\AppData\Local\Temp\RobotTempDir1269721338017206056\robot_session_server.py”, line 138, in inner
return to_call(*args, **kwargs)
File “C:\Users\A1029532\AppData\Local\Temp\RobotTempDir1269721338017206056\robot_session_server.py”, line 78, in inner
return func(*args, **kwargs)
File “C:\Users\A1029532\AppData\Local\Temp\RobotTempDir1269721338017206056\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\RobotTempDir1269721338017206056\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\RobotTempDir1269721338017206056\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
from AppiumLibrary.keywords import *
File “C:\Users\A1029532\AppData\Local\Programs\Python\Python36\Lib\site-packages\AppiumLibrary\keywords_init_.py”, line 7, in
from ._applicationmanagement import ApplicationManagementKeywords
File “C:\Users\A1029532\AppData\Local\Programs\Python\Python36\Lib\site-packages\AppiumLibrary\keywords_applicationmanagement.py”, line 6, in
from appium import webdriver
File "C:\Users\A1029532\AppData\Local\Programs\Python\Python36\Lib\site-packages\appium\webdriver_init
.py", line 19, in
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

Please suggest to resolve this issue.

Thanks,

Appium Lib is using python3’s typing hints which are not compatible with Jython 2.7.2 that looks like what RED is been executed on…

Actually, its Appium-Python-Client which is dependency of robotframework-appiumlibrary which is not compatible with 2.7.2 as it is shipped now …