Question

I'm trying to learn panda 3d, but I'm getting this error

importerror no module named direct.showbase.showbase

I'm using the latest versions of panda 3d 1.7.2, python 2.7 on windows xp, how to fix the error?

Was it helpful?

Solution

http://www.panda3d.org/forums/viewtopic.php?t=10363

Panda 3D on Windows comes with a special version of python that is preconfigured to work correctly with Panda, that python is run with ppython.

Otherwise you need to add the Panda libraries to your Python path from the Panda install. There is a file called panda3d.pth which has the python path necessary, and you can copy that file to C:\[Python Version]\Lib\site-packages.

I don't know what Panda3d's version of python is, but you will need to be running that if you don't want to use ppython.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top