Embedding Python (3.7) on OSX crash on Py_Initialize when run as bundle

Arnaud Loonstra arnaud at sphaero.org
Thu Feb 28 06:08:56 EST 2019


I'm trying to wrap my head around an OSX app which has python embedded. 
This works fine if I run the build on the same machine as it is build on.

However when using Travis to build the app I can only get it to run from 
the terminal. A double click on the appdir (or using open) results in a 

0   libsystem_kernel.dylib        	0x00007fffb9d6cd42 __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007fffb9e5a457 pthread_kill + 90
2   libsystem_c.dylib             	0x00007fffb9cd24bb __abort + 140
3   libsystem_c.dylib             	0x00007fffb9cd242f abort + 144
4   com.your-company-name.www     	0x0000000108c6674e fatal_error + 606
5   com.your-company-name.www     	0x0000000108c65b3a _Py_FatalInitError 
+ 26
6   com.your-company-name.www     	0x0000000108c65bbe Py_Initialize + 126

I can't figure out what is going wrong. I can only guess that's there's 
something preventing it to access the python files?

The build log on travis is here:

It's artefact is here:

Python is build with the following flags:
./configure --prefix 
$HOME/openFrameworks/apps/devApps/$APPNAME/bin/python --disable-shared 
--with-openssl=$(brew --prefix openssl);

Anybody any pointers or advice?



More information about the Python-list mailing list