ImportError: No module named ...

Please can I have some help with my installation.
As I understand it I need to build from the sources.
I have 32bit Suse 11.2
I downloaded: panda3d-1.6.2-linux32.tar.gz (51 M)
And ran:
makepanda/makepanda.py --everything > makeOut 2>makeOutErr
This got to the end, and created the built directory.
LD_LIBRARY_PATH=~/code/panda3d/panda3d-1.6.2/built/lib
export LD_LIBRARY_PATH
PATH=$PATH:~/code/panda3d/panda3d-1.6.2/built/bin


python
Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:18)
[GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

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


direct/src/showbase/ppython
Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:18)
[GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

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


How do I make sure I am running the correct version of python?
The manual says I should put panda3d.pth inside the python site-packages directory.
For me this is: /usr/local/lib/python2.6/site-packages

What do I put in panda3d.pth ?
I tried putting these lines in it:

~/code/panda3d/panda3d-1.6.2
~/code/panda3d/panda3d-1.6.2/built/bin

But it made no difference.

Thanks in advance for any help.

You shouldn’t try to manually set those paths yourself and run stuff directly. Instead, you should either use makepanda with the --installer option (which generates an .rpm in the source code directory), or use the installpanda script.

Furthermore, 1.6.2 is rather dated. Are you sure you want to use it?

I picked panda3d-1.6.2 as it is labelled as the latest stable release.

I have also tried:
cvs -d :pserver:anonymous@panda3d.cvs.sourceforge.net:/cvsroot/panda3d co panda3d
&
makepanda/makepanda.py --everything

This gave me 12 could not locates (some of which I have) and
finally failed on ARToolKit and I could not see how to turn of
ARToolKit

I can’t see what other version I can attempt to install,
Which version should I be using?

Thanks.

I have just tried:
makepanda/makepanda.py --everything --installer

(on panda3d-1.6.2, the only ‘stable’ version I can find)

This creates dir linuxroot & copies lots of files to it.
and end with:

chmod -R 555 linuxroot/usr/share/panda3d
rm -rf linuxroot/DEBIAN
rpm -E ‘%_target_cpu’ > built/tmp/architecture.txt
rpmbuild --define ‘_rpmdir /home/rob/code/panda3d/panda3d-1.6.2’ -bb panda3d.spec
Processing files: panda3d-1.6.2-1.i586

RPM build errors:
Storing dependency cache.
Elapsed Time: 39 min 18 sec

But an .rpm is not generated.

Is there a better version to use, and if so hoe do I get it?

Thanks for any help,

Rob.

You can ignore the warnings about missing packages, when compiling from CVS.