selenium webdriver - How to install Selenium2Library for Robot Framework using pip + Jython? -


since version 2.7.0 jython contains pip bundled in. needs activated running following command before using it:

jython -m ensurepip 

so after should possible install selenium2library robot framework with

jython -m pip install robotframework-selenium2library 

right?

but when following error:

attributeerror: 'module' object has no attribute 'geteuid' 

here full cmd / shell output:

c:\foldername>jython -m pip install selenium2library traceback (most recent call last):   file "c:\jython27\lib\runpy.py", line 151, in _run_module_as_main     mod_name, loader, code, fname = _get_module_details(mod_name)   file "c:\jython27\lib\runpy.py", line 151, in _run_module_as_main     mod_name, loader, code, fname = _get_module_details(mod_name)   file "c:\jython27\lib\runpy.py", line 109, in _get_module_details     return _get_module_details(pkg_main_name)   file "c:\jython27\lib\runpy.py", line 109, in _get_module_details     return _get_module_details(pkg_main_name)   file "c:\jython27\lib\runpy.py", line 101, in _get_module_details     loader = get_loader(mod_name)   file "c:\jython27\lib\pkgutil.py", line 478, in get_loader     return find_loader(fullname)   file "c:\jython27\lib\pkgutil.py", line 488, in find_loader     importer in iter_importers(fullname):   file "c:\jython27\lib\pkgutil.py", line 439, in iter_importers     __import__(pkg)   file "c:\jython27\lib\site-packages\pip\__init__.py", line 10, in <module>     pip.util import get_installed_distributions, get_prog   file "c:\jython27\lib\site-packages\pip\util.py", line 17, in <module>     pip.locations import (   file "c:\jython27\lib\site-packages\pip\locations.py", line 109, in <module>     build_prefix = _get_build_prefix()   file "c:\jython27\lib\site-packages\pip\locations.py", line 90, in _get_build_ prefix     if file_uid != os.geteuid(): attributeerror: 'module' object has no attribute 'geteuid' 

why getting error?

btw: installing source works nice with

jython setup.py install 

addition information: i´m on windows 8.1 64 bit java 1.8, jython 2.7.0, robot framework 2.8.7

i ran after installing jython 2.7.0. seems reason pip 1.6 (really old) being used (which leads error), steps should fix it:

  1. delete folder %temp%\pip_build_[username]
  2. run jython -m pip install -u pip upgrade pip uninstall , upgrade pip 7.x

hope helps!


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -