Installation problem in (k)ubuntu 11.04

Hello. Since I updated to kubuntu natty (64b), I can’t use panda3d anymore.
I can install it using ‘dpkg -i’ and the package aviable at download page for maverick(64) with no errors, but still doesn’t run.

[arbosis@Callisto /usr/share/panda3d/samples/Asteroids] python Tut-Asteroids.py 
Traceback (most recent call last):
  File "Tut-Asteroids.py", line 13, in <module>
    import direct.directbase.DirectStart
ImportError: No module named direct.directbase.DirectStart

I haven’t been able to find if anyone is having this problem.

any help? :slight_smile:

This is because (K)Ubuntu change default python to 2.7. Your panda is still using 2.6(and installed on). You need to change panda3d.pth file from python2.6 to python2.7. Another solution is to use python2.6 instead of python to run your app.

Use python2.6. You can’t use python2.7 with the maverick build of Panda3D.

You are right ! If I use python2.6 it works. Thanks.

But how do i “change panda3d.pth file from python2.6 to python2.7” ?

That won’t work, as the maverick build of Panda3D is built against Python 2.6. Copying the .pth file around, as deflected suggested, won’t work.

True. :slight_smile:

will there be a python2.7 build for ubuntu natty?

If it bothers you that ‘python’ is the wrong command… it’s just a symbolic link on linux:

me@pc:~$ which python
/usr/bin/python
me@pc:~$ ls -la /usr/bin/python
lrwxrwxrwx 1 root root 9 2011-05-01 02:49 /usr/bin/python -> python2.7

…update the sym link to 2.6 if it makes life easier.

Cheers,
Gary

Actually, scratch that, might cause problems with other software. On linux, however, you should find you have a ‘ppython’ command that always points to the right Python version for Panda…

finally the easiest way is to run everything with python2.6 game.py

Thanks anyway. I hope panda3d will get an update and don’t stay with the old dependencies

+float("inf")

Please, I beg of you, please don’t change that symlink!

I definetly won’t change that symbolic link xD

All right, the buildbot now builds daily builds for Ubuntu Natty.
Can anyone try it out?
panda3d.org/download.php?pl … =devel&sdk

It works perfectly for me on natty 64bit, with python 2.7.

The package is called panda3d1.8, I didn’t expect that O: