Search code examples
python-3.xpipappiumrobotframeworkpython-2.x

SyntaxError while attempting to install AppiumLibrary for Robot Framework using pip


I have Python 2.7 installed. I am using Robot Framework and the RIDE IDE. I need the AppiumLibrary.

I have tried to install it at the CLI as follows:

pip install robotframework-appiumlibrary

This yields the following error:

enter image description here

What might be the issue here?


Solution

  • This looks like a case of broken dependency declaration. robotframework-appiumlibrary specifies Appium-Python-Client>=0.28 as a dependency and although older versions (>=0.28 and <1.0) supports Python 2.x, the later ones do not:

    https://pypi.org/project/Appium-Python-Client/

    Since v1.0.0, only Python 3 is supported

    So it should be possible to pre-install the latest version that supported Python 2.x to satisfy the dependency:

    1. pip install Appium-Python-Client==0.52
    2. pip install robotframework-appiumlibrary