How to install Selenium2Library for Robot Framework using pip + Jython?
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:Jython27Librunpy.py", line 151, in _run_module_as_main
mod_name, loader, code, fname = _get_module_details(mod_name)
File "C:Jython27Librunpy.py", line 151, in _run_module_as_main
mod_name, loader, code, fname = _get_module_details(mod_name)
File "C:Jython27Librunpy.py", line 109, in _get_module_details
return _get_module_details(pkg_main_name)
File "C:Jython27Librunpy.py", line 109, in _get_module_details
return _get_module_details(pkg_main_name)
File "C:Jython27Librunpy.py", line 101, in _get_module_details
loader = get_loader(mod_name)
File "C:Jython27Libpkgutil.py", line 478, in get_loader
return find_loader(fullname)
File "C:Jython27Libpkgutil.py", line 488, in find_loader
for importer in iter_importers(fullname):
File "C:Jython27Libpkgutil.py", line 439, in iter_importers
__import__(pkg)
File "C:Jython27Libsite-packagespip__init__.py", line 10, in <module>
from pip.util import get_installed_distributions, get_prog
File "C:Jython27Libsite-packagespiputil.py", line 17, in <module>
from pip.locations import (
File "C:Jython27Libsite-packagespiplocations.py", line 109, in <module>
build_prefix = _get_build_prefix()
File "C:Jython27Libsite-packagespiplocations.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
selenium-webdriver pip jython robotframework jython-2.7
add a comment |
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:Jython27Librunpy.py", line 151, in _run_module_as_main
mod_name, loader, code, fname = _get_module_details(mod_name)
File "C:Jython27Librunpy.py", line 151, in _run_module_as_main
mod_name, loader, code, fname = _get_module_details(mod_name)
File "C:Jython27Librunpy.py", line 109, in _get_module_details
return _get_module_details(pkg_main_name)
File "C:Jython27Librunpy.py", line 109, in _get_module_details
return _get_module_details(pkg_main_name)
File "C:Jython27Librunpy.py", line 101, in _get_module_details
loader = get_loader(mod_name)
File "C:Jython27Libpkgutil.py", line 478, in get_loader
return find_loader(fullname)
File "C:Jython27Libpkgutil.py", line 488, in find_loader
for importer in iter_importers(fullname):
File "C:Jython27Libpkgutil.py", line 439, in iter_importers
__import__(pkg)
File "C:Jython27Libsite-packagespip__init__.py", line 10, in <module>
from pip.util import get_installed_distributions, get_prog
File "C:Jython27Libsite-packagespiputil.py", line 17, in <module>
from pip.locations import (
File "C:Jython27Libsite-packagespiplocations.py", line 109, in <module>
build_prefix = _get_build_prefix()
File "C:Jython27Libsite-packagespiplocations.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
selenium-webdriver pip jython robotframework jython-2.7
Further details on this matter: github.com/rtomac/robotframework-selenium2library/issues/…
– Tset Noitamotua
Jun 5 '15 at 20:55
also: bugs.jython.org/issue2345
– Tset Noitamotua
Jun 5 '15 at 20:56
@JavierJ - Thank you, It made it on a Windows 8.1 machine but still have some troubles on a Windows 7 machine at work. Another possibility is may be installing pip manually with the help of get-pip.py (download it here) and then callingjython get-pip.py
in download folder.
– Tset Noitamotua
Nov 17 '15 at 8:48
add a comment |
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:Jython27Librunpy.py", line 151, in _run_module_as_main
mod_name, loader, code, fname = _get_module_details(mod_name)
File "C:Jython27Librunpy.py", line 151, in _run_module_as_main
mod_name, loader, code, fname = _get_module_details(mod_name)
File "C:Jython27Librunpy.py", line 109, in _get_module_details
return _get_module_details(pkg_main_name)
File "C:Jython27Librunpy.py", line 109, in _get_module_details
return _get_module_details(pkg_main_name)
File "C:Jython27Librunpy.py", line 101, in _get_module_details
loader = get_loader(mod_name)
File "C:Jython27Libpkgutil.py", line 478, in get_loader
return find_loader(fullname)
File "C:Jython27Libpkgutil.py", line 488, in find_loader
for importer in iter_importers(fullname):
File "C:Jython27Libpkgutil.py", line 439, in iter_importers
__import__(pkg)
File "C:Jython27Libsite-packagespip__init__.py", line 10, in <module>
from pip.util import get_installed_distributions, get_prog
File "C:Jython27Libsite-packagespiputil.py", line 17, in <module>
from pip.locations import (
File "C:Jython27Libsite-packagespiplocations.py", line 109, in <module>
build_prefix = _get_build_prefix()
File "C:Jython27Libsite-packagespiplocations.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
selenium-webdriver pip jython robotframework jython-2.7
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:Jython27Librunpy.py", line 151, in _run_module_as_main
mod_name, loader, code, fname = _get_module_details(mod_name)
File "C:Jython27Librunpy.py", line 151, in _run_module_as_main
mod_name, loader, code, fname = _get_module_details(mod_name)
File "C:Jython27Librunpy.py", line 109, in _get_module_details
return _get_module_details(pkg_main_name)
File "C:Jython27Librunpy.py", line 109, in _get_module_details
return _get_module_details(pkg_main_name)
File "C:Jython27Librunpy.py", line 101, in _get_module_details
loader = get_loader(mod_name)
File "C:Jython27Libpkgutil.py", line 478, in get_loader
return find_loader(fullname)
File "C:Jython27Libpkgutil.py", line 488, in find_loader
for importer in iter_importers(fullname):
File "C:Jython27Libpkgutil.py", line 439, in iter_importers
__import__(pkg)
File "C:Jython27Libsite-packagespip__init__.py", line 10, in <module>
from pip.util import get_installed_distributions, get_prog
File "C:Jython27Libsite-packagespiputil.py", line 17, in <module>
from pip.locations import (
File "C:Jython27Libsite-packagespiplocations.py", line 109, in <module>
build_prefix = _get_build_prefix()
File "C:Jython27Libsite-packagespiplocations.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
selenium-webdriver pip jython robotframework jython-2.7
selenium-webdriver pip jython robotframework jython-2.7
asked May 29 '15 at 13:32
Tset NoitamotuaTset Noitamotua
3971320
3971320
Further details on this matter: github.com/rtomac/robotframework-selenium2library/issues/…
– Tset Noitamotua
Jun 5 '15 at 20:55
also: bugs.jython.org/issue2345
– Tset Noitamotua
Jun 5 '15 at 20:56
@JavierJ - Thank you, It made it on a Windows 8.1 machine but still have some troubles on a Windows 7 machine at work. Another possibility is may be installing pip manually with the help of get-pip.py (download it here) and then callingjython get-pip.py
in download folder.
– Tset Noitamotua
Nov 17 '15 at 8:48
add a comment |
Further details on this matter: github.com/rtomac/robotframework-selenium2library/issues/…
– Tset Noitamotua
Jun 5 '15 at 20:55
also: bugs.jython.org/issue2345
– Tset Noitamotua
Jun 5 '15 at 20:56
@JavierJ - Thank you, It made it on a Windows 8.1 machine but still have some troubles on a Windows 7 machine at work. Another possibility is may be installing pip manually with the help of get-pip.py (download it here) and then callingjython get-pip.py
in download folder.
– Tset Noitamotua
Nov 17 '15 at 8:48
Further details on this matter: github.com/rtomac/robotframework-selenium2library/issues/…
– Tset Noitamotua
Jun 5 '15 at 20:55
Further details on this matter: github.com/rtomac/robotframework-selenium2library/issues/…
– Tset Noitamotua
Jun 5 '15 at 20:55
also: bugs.jython.org/issue2345
– Tset Noitamotua
Jun 5 '15 at 20:56
also: bugs.jython.org/issue2345
– Tset Noitamotua
Jun 5 '15 at 20:56
@JavierJ - Thank you, It made it on a Windows 8.1 machine but still have some troubles on a Windows 7 machine at work. Another possibility is may be installing pip manually with the help of get-pip.py (download it here) and then calling
jython get-pip.py
in download folder.– Tset Noitamotua
Nov 17 '15 at 8:48
@JavierJ - Thank you, It made it on a Windows 8.1 machine but still have some troubles on a Windows 7 machine at work. Another possibility is may be installing pip manually with the help of get-pip.py (download it here) and then calling
jython get-pip.py
in download folder.– Tset Noitamotua
Nov 17 '15 at 8:48
add a comment |
1 Answer
1
active
oldest
votes
I ran into this too after installing Jython 2.7.0. It seems that for some reason PIP 1.6 (really old) was being used (which leads to that error), this steps should fix it:
- Delete the folder %TEMP%pip_build_[username]
- Run
jython -m pip install -U pip to upgrade pip
to uninstall and upgrade PIP to 7.x
Hope this helps!
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f30530976%2fhow-to-install-selenium2library-for-robot-framework-using-pip-jython%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I ran into this too after installing Jython 2.7.0. It seems that for some reason PIP 1.6 (really old) was being used (which leads to that error), this steps should fix it:
- Delete the folder %TEMP%pip_build_[username]
- Run
jython -m pip install -U pip to upgrade pip
to uninstall and upgrade PIP to 7.x
Hope this helps!
add a comment |
I ran into this too after installing Jython 2.7.0. It seems that for some reason PIP 1.6 (really old) was being used (which leads to that error), this steps should fix it:
- Delete the folder %TEMP%pip_build_[username]
- Run
jython -m pip install -U pip to upgrade pip
to uninstall and upgrade PIP to 7.x
Hope this helps!
add a comment |
I ran into this too after installing Jython 2.7.0. It seems that for some reason PIP 1.6 (really old) was being used (which leads to that error), this steps should fix it:
- Delete the folder %TEMP%pip_build_[username]
- Run
jython -m pip install -U pip to upgrade pip
to uninstall and upgrade PIP to 7.x
Hope this helps!
I ran into this too after installing Jython 2.7.0. It seems that for some reason PIP 1.6 (really old) was being used (which leads to that error), this steps should fix it:
- Delete the folder %TEMP%pip_build_[username]
- Run
jython -m pip install -U pip to upgrade pip
to uninstall and upgrade PIP to 7.x
Hope this helps!
edited Oct 14 '15 at 15:07
answered Sep 24 '15 at 14:49
JavierJJavierJ
509413
509413
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f30530976%2fhow-to-install-selenium2library-for-robot-framework-using-pip-jython%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Further details on this matter: github.com/rtomac/robotframework-selenium2library/issues/…
– Tset Noitamotua
Jun 5 '15 at 20:55
also: bugs.jython.org/issue2345
– Tset Noitamotua
Jun 5 '15 at 20:56
@JavierJ - Thank you, It made it on a Windows 8.1 machine but still have some troubles on a Windows 7 machine at work. Another possibility is may be installing pip manually with the help of get-pip.py (download it here) and then calling
jython get-pip.py
in download folder.– Tset Noitamotua
Nov 17 '15 at 8:48