I just installed the latest version of Panda3D and I already have Python25 installed on my machine. I’ve put a panda.pth file in my \Python25\lib\site-packages\ folder with the following:
c:/Panda3D-1.5.2
c:/Panda3D-1.5.2/bin
Checking sys.path produces the following:
['C:\\Python25\\Lib\\idlelib',
'C:\\Python25\\lib\\site-packages\\setuptools-0.6c8-py2.5.egg', 'C:\\Python25\\lib\\site-packages\\pyopengl-3.0.0b2-py2.5.egg', 'C:\\WINDOWS\\system32\\python25.zip', 'C:\\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\plat-win', 'C:\\Python25\\lib\\lib-tk', 'C:\\Python25', 'C:\\Python25\\lib\\site-packages', 'C:\\Python25\\lib\\site-packages\\PIL', 'C:\\Python25\\lib\\site-packages\\directpy', 'c:\\Panda3D-1.5.2', 'c:\\Panda3D-1.5.2\\bin', 'C:\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode']
So far so good. However, when doing the most simple test, using this code:
import direct.directbase.DirectStart
run()
I receive the following error (using WingIDE as my Python IDE):
NameError: global name 'config' is not defined
Here is the callstack from WingIDE if it helps:
test.py, line 1, in <module> import direct.directbase.DirectStart
DirectStart.py, line 3, in <module> from direct.showbase import ShowBase
ShowBase.py, line 10, in <module> from pandac.PandaModules import *
PandaModules.py, line 5, in <module> from libp3directModules import *
libp3directModules.py, line 16, in <module> notify = directNotify.newCategory("Interval")
DirectNotify.py, line 53, in newCategory self.setDconfigLevel(categoryName)
DirectNotify.py, line 70, in setDconfigLevel config
FWIW, I can run the sample programs that come with Panda3D from the Start Menu, however, it always asks where my Python.exe is.
This appears to be some type of path or setup issue, but I’m not quite clear where the problem is. Any ideas?
Thanks!