You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Having difficulty installing Selenium2Library for use with robotframework #573
I'm attempting to learn more about robotframework, and the documentation mentioned using Selenium2Library if one wishes to interact with a web browser. So I tried pip installing this to my virtualenv, but it looks like something went wrong:
(robotenv)btweed@btweed:[~/virtualenvs/robotenv/PlayArea]>pip install robotframework-selenium2library
Collecting robotframework-selenium2library
Using cached robotframework-selenium2library-1.7.4.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/w6/rjdtmsb96ks4nv4xfm2p8v400000gp/T/pip-build-__rwphnc/robotframework-selenium2library/setup.py", line 7, in <module>
from ez_setup import use_setuptools
File "/private/var/folders/w6/rjdtmsb96ks4nv4xfm2p8v400000gp/T/pip-build-__rwphnc/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/w6/rjdtmsb96ks4nv4xfm2p8v400000gp/T/pip-build-__rwphnc/robotframework-selenium2library
I'm using pip 8.0.2 to install this package to a Python 3.4.3 virtualenv for use with Robot Framework 3.0. Is there a different package that I should try installing? Also, is there a standardized way that robotframework users install and work with Selenium2Library?
I'm new to Python and Robotframework. I use the python version 3.4. Is it good idea to use beta or should I download python 2.9? and use the selenium2library?
Selenium2Library is not compatible with Python 3, but we are working on the support. If you want to use the official release then you must use Python 2.7. The next major release should bring support for Python. If you need to Python 3 support now, then best option is to use Selenium2Library fork which provides the support.
@HelioGuilherme66, I have tried to use your fork in python 3.4.3 but am not able to install the selenium2library. I get following error:
Traceback (most recent call last):
File "c:\python34\lib\site-packages\ez_setup.py", line 143, in use_setuptools
raise ImportError
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Pankaj\AppData\Local\Temp\pip-2jognamh-build\setup.py", line 8, in <module>
use_setuptools()
File "c:\python34\lib\site-packages\ez_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "c:\python34\lib\site-packages\ez_setup.py", line 125, in _do_download
_build_egg(egg, tarball, to_dir)
File "c:\python34\lib\site-packages\ez_setup.py", line 116, in _build_egg
raise IOError('Could not build the egg.')
OSError: Could not build the egg.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Pankaj\AppData\Local\Temp\pip-2jognamh-build\
No! Sorry but this is a issue tracker for main project. This issue is Closed, for my fork you should open an Issue there. Or you can see try to merge some PRs we are making here to get it fixed.
(you don't seem to be using pip to install, try to download the package and install from it with pip)
Activity
HelioGuilherme66 commentedon Jan 29, 2016
Selenium2Library is not compatible with Python 3 (yet). See PR #564.
If you are willing to try a Beta package, you may install like:
Or download from Releases
tisto commentedon Apr 22, 2016
@HelioGuilherme66 thanks for your work! Where would be the right place to report bugs for your release/fork?
HelioGuilherme66 commentedon Apr 22, 2016
The right place to report bugs is at My fork tracker
But the goal is to have only the official branch merged.
Thish25 commentedon Sep 2, 2016
Hi,
I'm new to Python and Robotframework. I use the python version 3.4. Is it good idea to use beta or should I download python 2.9? and use the selenium2library?
aaltat commentedon Sep 2, 2016
Selenium2Library is not compatible with Python 3, but we are working on the support. If you want to use the official release then you must use Python 2.7. The next major release should bring support for Python. If you need to Python 3 support now, then best option is to use Selenium2Library fork which provides the support.
tisto commentedon Sep 6, 2016
@Thish25 I'm using @HelioGuilherme66 fork with Python 3 since quite a while and it works well for me.
pskpg86 commentedon Dec 23, 2016
@HelioGuilherme66, I have tried to use your fork in python 3.4.3 but am not able to install the selenium2library. I get following error:
Traceback (most recent call last):
File "c:\python34\lib\site-packages\ez_setup.py", line 143, in use_setuptools
raise ImportError
ImportError
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Pankaj\AppData\Local\Temp\pip-2jognamh-build\
Will you be able to check this.
HelioGuilherme66 commentedon Dec 23, 2016
@pskpg86
No! Sorry but this is a issue tracker for main project. This issue is Closed, for my fork you should open an Issue there. Or you can see try to merge some PRs we are making here to get it fixed.
(you don't seem to be using pip to install, try to download the package and install from it with
pip)