xcode importerror

i set up panda on my hackintosh, the samples run fine in terminal:
python Tut-bla.py

now i created a project in xcode, made a custom executable with the path to python and to my main.py.
but when i run the app, i get: File “/Users/kampfgnu/myStuff/dev/panda3d/Box2DTest/Main.py”, line 1, in
from pandac.PandaModules import *
ImportError: No module named pandac.PandaModules

so xcode seems not to find the pandamodules.

how can i tell xcode where to get the importmodules?

greets

You need to tell XCode to set the PYTHONPATH to include /Applications/Panda3D/1.6.1/lib/ .

where do i put the path?
projectsettings or something like that?
i am a mac xcode newbie :blush:

I don’t know beans about XCode, sorry. Never really used it.

Sounds like an XCode-specific question though, you might have more luck on XCode-related websites.

ah ok i found it, but know i get this:

ImportError: dlopen(/Applications/Panda3D/1.6.1/lib/libpandaexpress.dylib, 2): Library not loaded: libp3dtool.dylib
Referenced from: /Applications/Panda3D/1.6.1/lib/libpandaexpress.dylib
Reason: image not found

any ideas?

You need to add that directory to your library path too (DYLD_LIBRARY_PATH, I believe).

yeah, thats it.
thanks for your highspeed answers!