ImportError: No module named robot

Asked by masuo

I downloaded Robot Framework module, and copied the folder robot in the SikulixAppData/Lib folder(
C:\Users\masuo\AppData\Roaming\Sikulix\Lib)

I setup Robot testcase in the SikuliX IDE, and run.
The following error occurred.

Could you tell me what is wrong.
I wrote script by reference to URL(http://www.sikulix.com/support.html).

[error:]
JythonSupport: exec: returns: Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named robot

[Script:]
runScript("""
robot
*** Variables ***

*** Settings ***
Library ./inline/LoginLibrary
Test Setup start calc
Test Teardown stop calc
*** Test Cases ***
case1(1+2)
    calc
    Status Should Be Accepted
""")

from sikuli import *

class LoginLibrary(object):
  def start_calc(self, page):
    pass
  def stop_calc(self):
    pass
  def calc(self):
    pass
  def status_should_be(self, expected):
    pass

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Clark Burbidge (clarkburbidge) said :
#1

Same question for me. I installed SikuliX. Put the whole "robot" folder in the AppData location so that this path exists: C:\Users\IEUser\AppData\Roaming\Sikulix\Lib\robot\__init__.py and I get the same error:

[error] JythonSupport: exec: returns: Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named robot

My robot folder came from a jython pip install of RF: C:\jython2.7.0\Lib\site-packages\robot. Robot Framework 2.9.1 (Jython 2.7.0 on java1.8.0_60)

My SikuliX script was from here: https://github.com/RaiMan/SikuliX-2014/blob/master/StuffContainer/testScripts/testRobot/testRun.sikuli/testRun.py

Saved to C:\Dev\SRF.sikuli

Revision history for this message
masuo (masuo-ohara) said :
#2

Did you solve this problem ?

Revision history for this message
Best RaiMan (raimund-hocke) said :
#3

sorry, not yet. starting with it tomorrow.

Revision history for this message
masuo (masuo-ohara) said :
#4

I tried SikuliX1.1.1(Build:2016-05-20) by using the following article.
http://sikulix-2014.readthedocs.io/en/latest/scenarios.html#using-robotframework

Thank you RaiMan.

Revision history for this message
masuo (masuo-ohara) said :
#5

Thanks RaiMan, that solved my question.