Since version 2.7.0 Jython contains pip bundled in. It just needs to be activated by running the following command before using it:
jython -m ensurepip
So actually after that it should be possible to install Selenium2Library for Robot Framework with
jython -m pip install robotframework-selenium2library
right?
But when I do this I get the following error:
AttributeError: 'module' object has no attribute 'geteuid'
Here is the 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
for 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>
from pip.util import get_installed_distributions, get_prog
File "C:\Jython27\Lib\site-packages\pip\util.py", line 17, in <module>
from 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 am I getting this error?
BTW: installing from source works nice with
jython setup.py install
Addition information: I´m on Windows 8.1 64 bit with Java 1.8, Jython 2.7.0, Robot Framework 2.8.7
jython get-pip.pyin download folder. - Wlad