OSX 10.8.5 Komodo 8.5.0 mozpython crash (image not found)

Running Komodo Edit (or IDE) on OSX, with some of the recent (10.8.5) system updates, you can get this delightful error message:

Image not found

With an error report containing:

dyld: Library not loaded: @executable_path/../Python
Referenced from: /Applications/Komodo Edit 8.app/Contents/MacOS/mozpython
Reason: image not found

Mashed in between a page of incomprehensible gibberish.

What does this mean? Oh, it’s just being a bit stupid, and lost track of where its own bits and pieces are. Ie, the mozpython embedded in Komodo can’t find the Komodo Python interpreter. “Help help I can’t find the forest, all these stupid trees are in the way!” Etc.

One side effect is it stops you being able to navigate to a function definition – which is a little annoying.

Until they roll out an updated version of Komodo, a short term fix is:

sudo install_name_tool -change “@executable_path/../Python” “@executable_path/../Frameworks/Python.framework/Python” “/Applications/Komodo Edit 8.app/Contents/MacOS/mozpython”

Note you’ll need to change “Edit” to “IDE” above if you’re using the IDE version of Komodo.

You can do this without restarting Komodo. Searching for a definition will then spin its wheels for a while, reorganising its brain, then after that everything will (should) be hunky dory again.

related

  • No Related Posts

September 24th, 2013 | Bugs |
Mastodon