我刚刚在我的 Mac 上完成了 Panda3d 的安装,这是一个 3d Python 游戏引擎,但是当我尝试运行 hello world 示例时
ppython helloworld.py
我有一个问题:
Traceback (most recent call last):
File "helloworld.py", line 1, in <module>
from direct.showbase.ShoHewBase 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
我假设我的引擎安装出错了,我错过了引擎的某些部分,但我不确定如何处理这个问题。我真的很感激任何帮助。谢谢。