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 "", line 3, in <module>
    from direct.showbase.ShowBase import ShowBase
  File "dstroot/pythoncode/Developer/Panda3D/lib/direct/showbase/", line 10, in <module>
  File "/Developer/Panda3D/lib/pandac/", line 8, in <module>
    from libpandaModules import *
  File "/Developer/Panda3D/lib/pandac/", line 2, in <module>
  File "/Developer/Panda3D/lib/pandac/", 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. … 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.