macOS 10.12 -- Python symbol not found

Hey there,

I’m currently on a macOS 10.12 (VM). When compiling Panda3D from git (the latest commit), it fails at 7% because dyld can’t find the symbol _PyExc_AssertionError (namely when involving interrogate).

I’ve tried with and without having python installed from brew (although that shouldn’t affect it; from this last build I did not have it installed), but I’m at a loss for what I need to do in order for this to compile correctly.

Here’s the full error log:

[  7%] Building Interrogate database built/pandac/input/libp3express.in
dyld: Symbol not found: _PyExc_AssertionError
  Referenced from: /Users/user/game/game/panda3d_source/built/bin/../lib/libp3interrogatedb.1.10.dylib
  Expected in: flat namespace
 in /Users/user/game/game/panda3d_source/built/bin/../lib/libp3interrogatedb.1.10.dylib
Storing dependency cache.
Elapsed Time: 2 min 19 sec
The following command returned a non-zero value: built/bin/interrogate -srcdir panda/src/express -Ipanda/src/express -DCPPPARSER -D__STDC__=1 -D__cplusplus=201103L -D__attribute__\(x\)= -D_LP64 -D__APPLE__ -oc built/tmp/libp3express_igate.cxx -od built/pandac/input/libp3express.in -fnames -string -refcount -assert -python-native -Sbuilt/include/parser-inc -Ipanda/src/express -S/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/include -Sbuilt/tmp -Sbuilt/include -Sthirdparty/darwin-libs-a/eigen/include -S/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -Sthirdparty/darwin-libs-a/openssl/include -DEIGEN_MPL2_ONLY= -DEIGEN_NO_DEBUG= -module panda3d.core -library libp3express buffer.h checksumHashGenerator.h circBuffer.h (...)

As you can see from the command itself, it did find the python headers (/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7), yet something just isn’t clicking.

This particular version is 2.7.10 and it’s the one that came installed on my Mac. The particular command I’m using is

python2.7 makepanda/makepanda.py --everything --installer --osxtarget 10.12 --arch x86_64

& any help would be appreciated.

Thanks so much!

Thanks. This issue has now been addressed in the latest master version.