ImportError: No module named direct.directbase.DirectStart

Hi,
I am using Fedora Core 5 and installed Core 3 version of Panda3D available from the website. I was trying to run GreetingCard.py from /samples/GreetingCard, but I got an error.

Traceback (most recent call last):
File “GreetingCard.py”, line 1, in ?
import direct.directbase.DirectStart
ImportError: No module named direct.directbase.DirectStart

I found DirectStart in /usr/share/panda3d/direct/src/directbase and samples directory is in /usr/share/panda3d.

Now I dont know how to make it run. Please help me out.

I like to install panda3d-1.2.3 from the source itself. If you can provide me a detailed instruction in compiling and installing from source, that would be great!!!

Thank You
Akash

Did you run ppython instead of python?

David

I have the same problem and i tried to run it with “python” and “ppython”, but i say the same thing:
import direct.directbase.DirectStart
ImportError: No module named direct.directbase.DirectStart

How can i run it?

Try this sequence of commands:

ppython
>>> import sys
>>> sys.path

What does it output?

David

I tried:
ppython

sys
sys.path

and…

Python 2.4.1 (#1, May 16 2005, 15:19:29)
[GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

import sys
sys.path
[’’, ‘/usr/lib/python24.zip’, ‘/usr/lib/python2.4’, ‘/usr/lib/python2.4/plat-linux2’, ‘/usr/lib/python2.4/lib-tk’, ‘/usr/lib/python2.4/lib-dynload’, ‘/usr/lib/python2.4/site-packages’, ‘/usr/lib/python2.4/site-packages/Numeric’, ‘/usr/lib/python2.4/site-packages/gtk-2.0’]

after i tried to run the application but i said the samething

import direct.directbase.DirectStart

ImportError: No module named direct.directbase.DirectStart

(I used both commands: ppython and python)