Comment by jeffnyman:

For what it's worth, there may be a problem with this running on Windows. When I try it on Linux (Ubuntu 10.4), it works fine. But when I try to run the following command on Windows 7:

java -jar robotframework-2.5.2.jar --help

I get the following error:

Exception in thread "main" Traceback (most recent call last):
  File "<string>", line 1, in <module>
File "C:\Crypto\AppDev\Lattice\robotframework-2.5.2.jar\Lib\robot\__init__$py.class", line 23, in <module> File "C:\Crypto\AppDev\Lattice\robotframework-2.5.2.jar\Lib\robot\output\__init__$py.class", line 16, in <module> File "C:\Crypto\AppDev\Lattice\robotframework-2.5.2.jar\Lib\robot\output\output$py.class", line 18, in <module> File "C:\Crypto\AppDev\Lattice\robotframework-2.5.2.jar\Lib\robot\common\__init__$py.class", line 16, in <module> File "C:\Crypto\AppDev\Lattice\robotframework-2.5.2.jar\Lib\robot\common\model$py.class", line 15, in <module>
  File "c:\python26\lib\random.py", line 43, in <module>
    from warnings import warn as _warn
  File "c:\python26\lib\warnings.py", line 394, in <module>
    bytes_warning = sys.flags.bytes_warning
AttributeError: 'systemstate' object has no attribute 'flags'

I do have a PYTHONPATH environment variable set that is pointing to my Lib directory within my Python installation directory. I'm not sure if I need to add anything else to it. Again, this definitely works on Ubuntu. I'm using Python 2.6.5 on both Ubuntu and Windows.


For more information:
http://code.google.com/p/robotframework/wiki/JavaIntegration

Reply via email to