knossos-project / knossos

KNOSSOS is a software tool for the visualization and annotation of 3D image data and was developed for the rapid reconstruction of neural morphology and connectivity.
https://knossos.app
GNU General Public License v2.0
73 stars 19 forks source link

Application closes immediately after opening #459

Closed jcohenadad closed 6 years ago

jcohenadad commented 6 years ago

Hi, I downloaded this version: macos.KNOSSOS-5.1 I am running OSX 10.13.3. When opening the application, the KNOSSOS logo appears, and then the application closes immediately.

Eroica commented 6 years ago

Hi,

could you try running KNOSSOS from the command-line? You can do it like this:

Just copy and paste the output of the Terminal for us. This allows us to see where exactly KNOSSOS fails to launch.

jcohenadad commented 6 years ago
./knossos.app/Contents/MacOS/knossos 
Warning: Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing.
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
uname -a
Darwin julien-macbook 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64
Eroica commented 6 years ago

Thanks for the report, this is a bug in our build system. We are linking KNOSSOS with the wrong Python library.

For now, you should be able to run KNOSSOS from the command-line by prepending a suitable PYTHONHOME environment variable. If you are in /Applications

PYTHONHOME=/usr knossos.app/Contents/MacOS/knossos

Or for some specific shells:

env PYTHONHOME=/usr knossos.app/Contents/MacOS/knossos
Eroica commented 6 years ago

I updated the .app package to include the correct Python library. You should be able to run KNOSSOS normally after downloading the new package from our releases (https://github.com/knossos-project/knossos/releases/download/v5.1/macos.KNOSSOS-5.1.zip).