CP not able to start

Hi everyone,

Cellprofiler was working well on my MacMini.
Since last week CP is not able to open anymore…

We found this error massage and I hope someone can help me to fix this problem.

mito38:~ ahegele$ /Applications/CellProfiler.app/Contents/MacOS/CellProfiler
Uncaught exception in CellProfiler.py
Traceback (most recent call last):
File “/Applications/CellProfiler.app/Contents/Resources/CellProfiler.py”, line 173, in main
File “wx/init.pyc”, line 45, in
File “wx/_core.pyc”, line 4, in
File “wx/core.pyc”, line 14, in
File “wx/core.pyc”, line 10, in __load
ImportError: dlopen(/Applications/CellProfiler.app/Contents/Resources/lib/python2.7/lib-dynload/wx/core.so, 2): no suitable image found. Did find:
/Applications/CellProfiler.app/Contents/Resources/lib/python2.7/lib-dynload/wx/core.so: no matching architecture in universal wrapper
Failed to stop Ilastik

Thanks in advance!
Anna

1 Like

Hi Anna,

I’m not certain what the issue is, but the first step I suggest is to trash the CellProfiler configuration files, which might have gotten corrupted. Please see this FAQ: viewtopic.php?f=14&t=806&start=15#p12720

Let us know how it goes.
Best,
David

Hi David,
thank you for your reply…
Me and my boss tried to find this configuration files, but could not find any files named ~/Library/Preferences/CellProfilerLocal.cfg
Now we updated the Mac to version 10.10.3 and tried again to reinstall CP… the same problem as before.

in systemLog there comes this massage when I try to start CP:
May 22 10:01:31 mito38.bio.med.uni-muenchen.de Console[448]: Failed to connect (_consoleX) outlet from (NSApplication) to (ConsoleX): missing setter or instance variable
May 22 10:01:31 mito38.bio.med.uni-muenchen.de coreservicesd[95]: SFLEntryBase::ListHasChanged mach_msg returned 10000004d
May 22 10:02:03 mito38.bio.med.uni-muenchen.de CellProfiler[453]: WARNING: The Gestalt selector gestaltSystemVersion is returning 10.9.3 instead of 10.10.3. Use NSProcessInfo’s operatingSystemVersion property to get correct system version number.
Call location:
May 22 10:02:03 mito38.bio.med.uni-muenchen.de CellProfiler[453]: 0 CarbonCore 0x94ddf291 ___Gestalt_SystemVersion_block_invoke + 135
May 22 10:02:03 mito38.bio.med.uni-muenchen.de CellProfiler[453]: 1 libdispatch.dylib 0x913d00b5 dispatch_once_f + 251
May 22 10:02:03 mito38.bio.med.uni-muenchen.de CellProfiler[453]: 2 libdispatch.dylib 0x913d10d8 dispatch_once + 31
May 22 10:02:03 mito38.bio.med.uni-muenchen.de CellProfiler[453]: 3 CarbonCore 0x94d5869d _Gestalt_SystemVersion + 1050
May 22 10:02:03 mito38.bio.med.uni-muenchen.de CellProfiler[453]: 4 CarbonCore 0x94d577c0 Gestalt + 150
May 22 10:02:03 mito38.bio.med.uni-muenchen.de CellProfiler[453]: 5 libwx_macud-2.8.0.8.0.dylib 0x055db14b _Z14UMAInitToolboxtb + 43
May 22 10:02:03 mito38.bio.med.uni-muenchen.de CellProfiler[453]: 6 libwx_macud-2.8.0.8.0.dylib 0x055f2123 _ZN5wxApp10InitializeERiPPw + 65
May 22 10:02:15 mito38.bio.med.uni-muenchen.de CellProfiler[456]: WARNING: The Gestalt selector gestaltSystemVersion is returning 10.9.3 instead of 10.10.3. Use NSProcessInfo’s operatingSystemVersion property to get correct system version number.
Call location:
May 22 10:02:15 mito38.bio.med.uni-muenchen.de CellProfiler[456]: 0 CarbonCore 0x94ddf291 ___Gestalt_SystemVersion_block_invoke + 135
May 22 10:02:15 mito38.bio.med.uni-muenchen.de CellProfiler[456]: 1 libdispatch.dylib 0x913d00b5 dispatch_once_f + 251
May 22 10:02:15 mito38.bio.med.uni-muenchen.de CellProfiler[456]: 2 libdispatch.dylib 0x913d10d8 dispatch_once + 31
May 22 10:02:15 mito38.bio.med.uni-muenchen.de CellProfiler[456]: 3 CarbonCore 0x94d5869d _Gestalt_SystemVersion + 1050
May 22 10:02:15 mito38.bio.med.uni-muenchen.de CellProfiler[456]: 4 CarbonCore 0x94d577c0 Gestalt + 150
May 22 10:02:15 mito38.bio.med.uni-muenchen.de CellProfiler[456]: 5 libwx_macud-2.8.0.8.0.dylib 0x056db14b _Z14UMAInitToolboxtb + 43
May 22 10:02:15 mito38.bio.med.uni-muenchen.de CellProfiler[456]: 6 libwx_macud-2.8.0.8.0.dylib 0x056f2123 _ZN5wxApp10InitializeERiPPw + 65

Do you have any ideas?
Thanks in advance!
Anna

Hi Anna,

Be sure to note that the tilde character “~” represent your user directory, like “/Users/Anna”. You really should have a cfg file named /Users/<YOUR_USER_NAME>/Library/Preferences/CellProfilerLocal.cfg

If that doesn’t help, would you please send the info (screenshot is ok) of the window when you click [Apple icon in upper left of main GUI] -> About This Mac. Is this a particularly old machine?

Thanks,
David

…we got the same problem now with an other Mac.
After changing the preferences Cellprofiler does not start anymore…
and reinstalling is not solving the problem!

Here a screenshot atteched with problem explained in “red" text:


And about your previous quesion: there is no library-folder under user/ahegele… we made some
screenshots:






Hope to get an idea to solve the problem!
Thanks in advance!
Anna

Hi Anna,

Thanks for the debugging info. The configuration file is hidden, such that you can’t see it in Finder. You can either follow directions like these to see the file in Finder, or more simply use the Terminal app (see below).

First, close CellProfiler. Then launch Terminal and type

cd ~/Library/Preferences ls -l CellProfilerLocal.cfg
(Note the tilde in front of the Library folder - this indicates it is the Library folder in your USER directory, not the Library folder within the root folder of the whole machine)

then move the file to a safe, backup location (just in case we need it later):

mv ~/Library/Preferences/CellProfilerLocal.cfg ~/CellProfilerLocal.cfg.BACKUP
which moves the file to your /users/ directory.

It wouldn’t be a bad idea to reboot at this point since you’re having trouble, though normally it is not necessary. Try launching CellProfiler. Does that work now?

David

Hallo David,
we tried it out now and it works! Thank you very much!
:smiley: :smiley:

Anna

Very good! Well make it a point to make or clarify the FAQ for this issue.
[EDIT: The FAQ Issue CellProfiler 2.0 FAQ]
Cheers,
David

1 Like