Invalid Syntax Installing Selenium2Library

274 views
Skip to first unread message

Nexist Xenda'ths

unread,
Jun 21, 2017, 6:28:38 PM6/21/17
to robotframework-users
Hello:

I apologize if this is redundant, but I could not find the answer in the archives.

I am trying to set up the Robot Framework. I am using Python 3.6.1, Robot Framework 3.0.2, and Selenium 3.4.3. When I try to install Selenium2Library-1.8.0 (which should work on 3.3+ according to the readme), I get an Invaid Syntax Error. I notice that others seem to have installed it.

drist-macbook:~ drist$ python3 -m pip install robotframework-selenium2library
Collecting robotframework-selenium2library
  Using cached robotframework-selenium2library-1.8.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/jl/m6jt0cyx7h91fklh9xx862gm0000gp/T/pip-build-bfton0bi/robotframework-selenium2library/setup.py", line 7, in <module>
        from ez_setup import use_setuptools
      File "/private/var/folders/jl/m6jt0cyx7h91fklh9xx862gm0000gp/T/pip-build-bfton0bi/robotframework-selenium2library/src/ez_setup.py", line 106
        except pkg_resources.VersionConflict, e:
                                            ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/jl/m6jt0cyx7h91fklh9xx862gm0000gp/T/pip-build-bfton0bi/robotframework-selenium2library/

I am using a Mac running OSX 10.12.5.

Thank you

dm08

unread,
Jun 21, 2017, 6:32:08 PM6/21/17
to nex...@gmail.com, robotframework-users
Hi,

The latest version of selenium2library is not compatible with python 3. However recent master is. So you can install it by *pip install git+https://github.com/robotframework/Selenium2Library.git*

Thanks,
Dima

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Nexist Xenda'ths

unread,
Jun 21, 2017, 7:14:11 PM6/21/17
to robotframework-users, nex...@gmail.com
Dima:

Thank you very much. That worked perfectly
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages