RC3 and Robot Framework problems --- workaround

Asked by Benny Phanichkul

***** workaround

see comment #2

-------------------------------------

After following this blogpost ( http://blog.mykhailo.com/2011/02/how-to-sikuli-and-robot-framework.html ) i was able to get a lot of my scripts running perfectly with robot framework. Today, I upgraded to RC3 and I got this error when I run C:\test\> robottest.bat robot_suite\verify_operations.txt

Exception in thread "main" Traceback (most recent call last):
File "", line 1, in
File "C:\test\robotframework-2.5.5.jar\Lib\robot\__init__$py.class", line 16, in
File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\os.py", line 118, in
ImportError: no os specific module found

i also tried roobotframework-2.6.0.jar file with no success. Downgrading to RC2 makes everything work again. Any ideas while RC3 would cause this to fail?

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Might be a problem of incompatible Jython versions.

Are you using the standalone robot framework.jar, that contains Jython 2.5.1.

Sikuli rc3 now contains Jython 2.5.2.

Check your sys.path.

Revision history for this message
Ricardo Cardona Ramirez (ricardona) said :
#2

Try change robottest.bat like this:

-Dpython.path=..\robotframework-2.6.0.jar\Lib;"%sikuli_jar%/Lib" ^

I do not know the reason, however, that it worked with RC3

Revision history for this message
Peter Kim (pd-kim) said :
#3

I am having the exact same problem.

Here is the information on my system:
- Windows XP Service Pack 3
- Java Runtime Environment (JRE 6_27)
- Jython 2.5.2
- Python 2.7.2
- Robot Framework 2.5.5
- Sikuli X 1.0rc3

My robottest.bat looks like the following:
@echo off
set sikuli_jar=D:\Program Files\Sikuli X\sikuli-script.jar
java -cp "robotframework-2.5.5.jar;%sikuli_jar%" ^
     -Dpython.path=..\robotframework-2.5.5.jar\Lib;"%sikuli_jar%/Lib" ^
     org.robotframework.RobotFramework ^
     --pythonpath=calc.sikuli ^
     --outputdir=results ^
     --loglevel=TRACE ^
     %*

When I run it, I get following message:
D:\Sikuli\RobotFramework> robottest.bat robot_suite\verify_operations.txt
Exception in thread "main" Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "D:\Sikuli\RobotFramework\robotframework-2.5.5.jar\Lib\robot\__init__$py.
class", line 16, in <module>
  File "D:\Program Files\Sikuli X\sikuli-script.jar\Lib\os.py", line 118, in <mo
dule>
ImportError: no os specific module found

Can you help with this problem?

Provide an answer of your own, or ask Benny Phanichkul for more information if necessary.

To post a message you must log in.