Compiling error using OSX Lion 10.7

This is the error I get when trying to compile my code using python.

Traceback (most recent call last):
  File "MyApp.py", line 3, in <module>
    from direct.showbase.ShowBase import ShowBase
  File "dstroot/pythoncode/Developer/Panda3D/lib/direct/showbase/ShowBase.py", line 10, in <module>
  File "/Developer/Panda3D/lib/pandac/PandaModules.py", line 8, in <module>
    from libpandaModules import *
  File "/Developer/Panda3D/lib/pandac/libpandaModules.py", line 2, in <module>
    Dtool_PreloadDLL("libpanda")
  File "/Developer/Panda3D/lib/pandac/extension_native_helpers.py", line 79, in Dtool_PreloadDLL
    imp.load_dynamic(module, pathname)
ImportError: dlopen(/Developer/Panda3D/lib/libpanda.dylib, 2): Library not loaded: @executable_path/../Frameworks/Cg.framework/Cg
  Referenced from: /Developer/Panda3D/lib/libpanda.dylib
  Reason: image not found

Does anyone know if its just because I’m using Lion?

It’s because you forgot to install the NVIDIA Cg Toolkit.
developer.download.nvidia.com/cg … il2012.dmg

Thank you, that fixed the issue, I wasn’t sure if that applied for 10.7 as well.

I figured out my other issue, so never mind.