# AppiumLibrary throwing exception while adding to RED.xml file

**URL:** <https://forum.robotframework.org/t/appiumlibrary-throwing-exception-while-adding-to-red-xml-file/818>\
**Category:** Appium\
**Created:** [12 October 2020 11:17 UTC](https://forum.robotframework.org/t/appiumlibrary-throwing-exception-while-adding-to-red-xml-file/818 "2020-10-12T11:17:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@Gaurav](https://forum.robotframework.org/u/Gaurav)\
**Post date:** [12 October 2020 11:17 UTC](https://forum.robotframework.org/t/appiumlibrary-throwing-exception-while-adding-to-red-xml-file/818/1 "2020-10-12T11:17:11Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)\
**Post date:** [12 October 2020 12:02 UTC](https://forum.robotframework.org/t/appiumlibrary-throwing-exception-while-adding-to-red-xml-file/818/2 "2020-10-12T12:02:41Z")

</div>

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 …
