Re: jybot doesn't work (OpenSuSE)

327 views
Skip to first unread message

Tatu aalto

unread,
Jun 6, 2013, 1:12:16 AM6/6/13
to travis...@gmail.com, robotframe...@googlegroups.com

Ugh

The python installation does not create jybot scripts automatically [1]. Follow the installation guide example for source installation to also install with jython [1].

For the other question, why your files are in tmp folder, I do not have any idea.

-Tatu
[1] http://code.google.com/p/robotframework/wiki/Installation#Installing_from_source

On Jun 6, 2013 3:01 AM, "Travis Thomas" <travis...@gmail.com> wrote:
Hello,
I used pip to install the Robot Framework. I have Jython installed but jybot isn't working. Additionally, the jybot file is stored in a tmp directory. See below:

user@host:/tmp/pip-build-qa/robotframework/src/bin> pybot --version
Robot Framework 2.8 rc1 (Python 2.7.3 on linux2)
user@host:/tmp/pip-build-qa/robotframework/src/bin> jybot --version
Traceback (innermost last):
  File "/tmp/pip-build-qa/robotframework/src/bin/jybot", line 4, in ?
ImportError: no module named robot
user@host:/tmp/pip-build-qa/robotframework/src/bin> jython --version
Jython 2.2.1 on java1.7.0_17
user@host:/tmp/pip-build-qa/robotframework/src/bin> find / -name jybot 2>/dev/null
/tmp/pip-build-root/robotframework/src/bin/jybot
/tmp/pip-build-qa/robotframework/src/bin/jybot

--
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 http://groups.google.com/group/robotframework-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Message has been deleted

Travis Thomas

unread,
Jun 6, 2013, 3:41:08 PM6/6/13
to robotframe...@googlegroups.com, travis...@gmail.com
qa@Scantron:/tmp/pip-build-qa/robotframework> jython setup.py install
Traceback (innermost last):
  File "setup.py", line 6, in ?
ImportError: no module named distutils
qa@Scantron:/tmp/pip-build-qa/robotframework> python
Python 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import distutils
>>> 

I don't understand why distutils would import at the command-line interpreter, but not in setup.py...

On Wednesday, June 5, 2013 10:12:16 PM UTC-7, Tatu aalto wrote:

Ugh

The python installation does not create jybot scripts automatically [1]. Follow the installation guide example for source installation to also install with jython [1].

For the other question, why your files are in tmp folder, I do not have any idea.

-Tatu
[1] http://code.google.com/p/robotframework/wiki/Installation#Installing_from_source

On Jun 6, 2013 3:01 AM, "Travis Thomas" <travis...@gmail.com> wrote:
Hello,
I used pip to install the Robot Framework. I have Jython installed but jybot isn't working. Additionally, the jybot file is stored in a tmp directory. See below:

user@host:/tmp/pip-build-qa/robotframework/src/bin> pybot --version
Robot Framework 2.8 rc1 (Python 2.7.3 on linux2)
user@host:/tmp/pip-build-qa/robotframework/src/bin> jybot --version
Traceback (innermost last):
  File "/tmp/pip-build-qa/robotframework/src/bin/jybot", line 4, in ?
ImportError: no module named robot
user@host:/tmp/pip-build-qa/robotframework/src/bin> jython --version
Jython 2.2.1 on java1.7.0_17
user@host:/tmp/pip-build-qa/robotframework/src/bin> find / -name jybot 2>/dev/null
/tmp/pip-build-root/robotframework/src/bin/jybot
/tmp/pip-build-qa/robotframework/src/bin/jybot

--
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-users+unsub...@googlegroups.com.

Travis Thomas

unread,
Jun 6, 2013, 4:22:53 PM6/6/13
to robotframe...@googlegroups.com, travis...@gmail.com
qa@Scantron:/tmp/pip-build-qa/robotframework> jython
Jython 2.2.1 on java1.7.0_17
Type "copyright", "credits" or "license" for more information.
>>> import distutils
Traceback (innermost last):
  File "<console>", line 1, in ?
ImportError: no module named distutils

Travis Thomas

unread,
Jun 6, 2013, 5:40:32 PM6/6/13
to robotframe...@googlegroups.com, travis...@gmail.com
I was able to get a step farther:

qa@Scantron:/tmp/pip-build-qa/robotframework> jython -Dpython.path=/usr/lib64/python2.7 setup.py install
Traceback (innermost last):
  File "setup.py", line 6, in ?
  File "/usr/lib64/python2.7/distutils/core.py", line 15
from distutils.errors import (DistutilsSetupError, DistutilsArgError,
                            ^
SyntaxError: invalid syntax

Tatu aalto

unread,
Jun 6, 2013, 5:49:55 PM6/6/13
to travis...@gmail.com, robotframe...@googlegroups.com

Ugh

It has been long time sinse I did build jybot with jython. So I am not best to answer but in last time it did went just like in the guide and I did not have to include anything.

Only thing, if I recall correctly, jython needs to be in path and one should not import any python libraries. Basically I did do: jython setup.py install

Perhaps some-one could answer your question better?

-Tatu

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.

Travis Thomas

unread,
Jun 6, 2013, 7:33:37 PM6/6/13
to robotframe...@googlegroups.com, travis...@gmail.com
I had multiple versions of Jython installed. The oldest version of Jython (2.2) was being referenced, which is not supported by the newest version of Robot. Gotta clean up...
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.

To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jorge Sasera

unread,
Jun 13, 2013, 12:36:22 PM6/13/13
to robotframe...@googlegroups.com, travis...@gmail.com
I had exactly the same problem recently. I hope it works also for you. After installing pybot I just had to proceed the same way to install jybot but using jython instead of python.
These were my steps:
$ tar -zxv -f robotframework-2.7.7.tar.gz
$ cd robotframework-2.7.7
$ sudo python setup.py install
$ sudo jython setup.py install
$ pybot --version
$ jybot --version

Wish you luck!
Reply all
Reply to author
Forward
0 new messages