runIDE dies when trying to open a file

Asked by Greg Howell

In general, my sikuli works great, but there is one script in particular that will kill runIDE if I try to open it. I don't know what it is about this script that is causing it to fail, but I know the script works because I use it as an import into another script. It's just not a script that I would run alone (it's a bunch of utility functions). How do I troubleshoot this because there's no errors anywhere? I even tried to run runIDE.cmd from a windows shell so I would see the output, but it just silently quits. I suspect that it's a coding/python interpreter thing, but not sure how to find out where it is. I can open the .py file in IDLE just fine and edit it there.

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
RaiMan (raimund-hocke) said :
#1

has the contained .py the same name as the .sikuli?

Revision history for this message
Greg Howell (ghowell) said :
#2

Yes it does have the same .py name as the .sikuli folder. In fact the script was initially created with the IDE and saved that way. At one point I had included some "with" statements and then ran into that issue with it complaining about the "...will become a reserved keyword in Python" issue and I put in the "from __future__ import with_statement". But then I went back through and removed all those with statements and tried to make it as basic as possible (well relatively so) and still have problems.

Tell you what, if you don't mind, I'll attach the .sikuli folder here and let me know if you see anything.

Thanks

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of RaiMan
Sent: Thursday, July 03, 2014 3:42 AM
To: Howell, Greg
Subject: Re: [Question #251120]: runIDE dies when trying to open a file

Your question #251120 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/251120

    Status: Open => Needs information

RaiMan requested more information:
has the contained .py the same name as the .sikuli?

--
To answer this request for more information, you can either reply to this email or enter your reply at the following page:
https://answers.launchpad.net/sikuli/+question/251120

You received this question notification because you asked the question.

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

not possible here to add attachments.

You might either send it zipped silently to my mail at or store the zip somewhere in the net and post the link.

Revision history for this message
Greg Howell (ghowell) said :
#4

Raiman,

Thanks for the reply. I didn't have email access this weekend, so I'm just now getting back to you, but anyway, I wanted to send that stuff to you but I didn't have your email address. Looks like you started to type it in below, but it didn't make it. Please let me know if you'd still be willing to look at my code and I'll send it.

Thanks,
Greg

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of RaiMan
Sent: Friday, July 04, 2014 2:37 AM
To: Howell, Greg
Subject: Re: [Question #251120]: runIDE dies when trying to open a file

Your question #251120 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/251120

    Status: Open => Answered

RaiMan proposed the following answer:
not possible here to add attachments.

You might either send it zipped silently to my mail at or store the zip somewhere in the net and post the link.

--
If this answers your question, please go to the following page to let us know that it is solved:
https://answers.launchpad.net/sikuli/+question/251120/+confirm?answer_id=2

If you still need help, you can reply to this email or go to the following page to enter your feedback:
https://answers.launchpad.net/sikuli/+question/251120

You received this question notification because you asked the question.

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

Guess you are using 1.0.1

The .sikuli contains a .png with the same name as the .sikuli and hence the .py

This is a bug:
a nameit.sikuli should not contain any other file named namit.xxx (besides .py and .html)

so rename the .png manually and in your code respectively.

Be aware of that bug, as long as you are using 1.0.1

Revision history for this message
Greg Howell (ghowell) said :
#7

Thank you Raimund. That was the ticket. I changed the filename and it reads into the IDE just fine now.