On Mac OSX Lion, Sikuli works for one local user only

Asked by Manpreet Singh

Please see issue 102371 where another user had the same issue. It expired. Don't know how to reopen it.

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
Manpreet Singh (junkblocker) said :
#1

Sorry, that should be see question 102371.

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

issue first reported with question (meanwhile expired):
https://answers.launchpad.net/sikuli/+question/102371

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

what Mac version?

what Sikuli version?

what error messages?

Revision history for this message
Manpreet Singh (junkblocker) said :
#4

uname -a
Darwin xxxxxxxxxxxx 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64

Sikuli version: X-1.0rc3

3/27/12 6:52:03.503 AM [0x0-0x677677].Sikuli-IDE: [JavaAppLauncher Error] CFBundleCopyResourceURL() failed loading MRJApp.properties file
3/27/12 6:52:03.000 AM kernel: CODE SIGNING: cs_invalid_page(0x1000): p=13480[JavaApplicationS] clearing CS_VALID
3/27/12 6:52:04.363 AM [0x0-0x677677].Sikuli-IDE: [LaunchRunner Error] No main class specified
3/27/12 6:52:04.364 AM [0x0-0x677677].Sikuli-IDE: [JavaAppLauncher Error] CallStaticVoidMethod() threw an exception
3/27/12 6:52:04.365 AM [0x0-0x677677].Sikuli-IDE: Exception in thread "main"
3/27/12 6:52:04.365 AM [0x0-0x677677].Sikuli-IDE: java.lang.NullPointerException
3/27/12 6:52:04.365 AM [0x0-0x677677].Sikuli-IDE: at apple.launcher.LaunchRunner.run(LaunchRunner.java:113)
3/27/12 6:52:04.365 AM [0x0-0x677677].Sikuli-IDE: at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
3/27/12 6:52:04.365 AM [0x0-0x677677].Sikuli-IDE: at apple.launcher.JavaApplicationLauncher.main(JavaApplicationLauncher.java:61)
3/27/12 6:52:04.389 AM com.apple.launchd.peruser.501: ([0x0-0x677677].Sikuli-IDE[13480]) Exited with code: 1

After this I reinstalled the app, like this:

 sudo chown -R <current_user> /Applications/Sikuli-IDE.app
 sudo chmod -R ug+rw /Applications/Sikuli-IDE.app
 Drag Drop the app from the dmg to /Applications

Later in the day, I logged out, switched to another user and tried to run Sikuli and did not see the exception. Came back home and run it from the current account and did not see the exception again.

So, it seems that the problem is solved. However, when the exception was happening, it happened every time.

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

Based on the your "solution", I found out, that the file
Sikuli-IDE.app/Contents/Info.plist

is missing read right for the group and everyone levels in the installation file.

--- The following workaround has to be used after installing Sikuli.

To repair it, open a terminal session and enter the following command:

chmod og+r /Applications/Sikuli-IDE.app/Contents/Info.plist

This has to be done while logged in as the user, that was used to install Sikuli the first time.

After this, you can use Sikuli with every user on this machine from the standard Applications folders.

Can you help with this problem?

Provide an answer of your own, or ask Manpreet Singh for more information if necessary.

To post a message you must log in.