buggy Panda3D on ubuntu jaunty + i7.

Return to Installation

buggy Panda3D on ubuntu jaunty + i7.

Postby LBarret » Tue Jun 23, 2009 10:21 am

Really doesn't work .... :(
The DirectStart seems broken and so Vec3.
I used the i386 deb on the site.
Do I need to compile the whole thing ?

Code: Select all
lionel@gamr7-prime:/usr/share/panda3d/samples/Particles$ python2.5 Tut-Particle-Panel.py
DirectStart: Starting the game.
Traceback (most recent call last):
  File "Tut-Particle-Panel.py", line 11, in <module>
    import direct.directbase.DirectStart
  File "/usr/share/panda3d/direct/directbase/DirectStart.py", line 3, in <module>
    from direct.showbase import ShowBase
  File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 17, in <module>
    from MessengerGlobal import *
  File "/usr/share/panda3d/direct/showbase/MessengerGlobal.py", line 5, in <module>
    import Messenger
  File "/usr/share/panda3d/direct/showbase/Messenger.py", line 8, in <module>
    from direct.stdpy.threading import Lock
  File "/usr/share/panda3d/direct/stdpy/threading.py", line 29, in <module>
    from direct.stdpy import thread as _thread
  File "/usr/share/panda3d/direct/stdpy/thread.py", line 70, in <module>
    _threadsLock = pm.Mutex('thread._threadsLock')
TypeError: Mutex() argument must be string or read-only buffer, not tuple


Code: Select all
lionel@gamr7-prime:~/gamr7/trunk/code/app/parcel_editor$ ipython
Python 2.5.4 (r254:67916, Apr  4 2009, 17:55:16)
Type "copyright", "credits" or "license" for more information.

IPython 0.9.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: from pandac.PandaModules import DirectionalLight, AmbientLight, Vec3, VBase4

In [2]:

In [3]:

In [4]: direct_light1 = Vec3(0.8,0.0,-1.)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/home/lionel/gamr7/trunk/code/app/parcel_editor/<ipython console> in <module>()

TypeError: Arguments must match one of:
LVector3f()
LVector3f(const VBase3 copy)
LVector3f(float fill_value)
LVector3f(float x, float y, float z)

In [5]: direct_light1 = Vec3()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/home/lionel/gamr7/trunk/code/app/parcel_editor/<ipython console> in <module>()

TypeError: Arguments must match one of:
LVector3f()
LVector3f(const VBase3 copy)
LVector3f(float fill_value)
LVector3f(float x, float y, float z)

LBarret
 
Posts: 58
Joined: Wed Apr 25, 2007 5:39 am

Postby rdb » Tue Jun 23, 2009 10:26 am

Huh, that's weird. Do the same Vec3 operations fail in the normal python console (not ipython) ?
I prefer e-mail over PM
rdb
 
Posts: 8548
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands

Postby LBarret » Tue Jun 23, 2009 10:44 am

on python2.5 : same result.

but on python2.6 -which is aliased to python on this machine- it works.

very strange, as python2.6 shouldn't have anythin in its site-package.

The deb seems to do evil magic stuff...

-----

Edit : ok, looked a bit deeper, both python2.6 and python2.5 have the panda3D.pth, with the same content, but I still doesn't work.
LBarret
 
Posts: 58
Joined: Wed Apr 25, 2007 5:39 am

Postby rdb » Tue Jun 23, 2009 11:30 am

It is only supposed to work with Python 2.6. They renamed site-packages to dist-packages there. I suggest removing the panda3d.pth from the python2.5 site-packages to remove confusion.

Panda's jaunty deb is compiled against python 2.6, which is the default on ubuntu jaunty, so I actually didn't expect it to work at all in 2.5.

If you still want to use Python 2.5 instead of 2.6, install the Intrepid build instead.
I prefer e-mail over PM
rdb
 
Posts: 8548
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands

Postby LBarret » Wed Jun 24, 2009 4:06 am

ok, I understand but in the future could you add the expected python version in the name of the deb ?

This needs to be more explicit.
LBarret
 
Posts: 58
Joined: Wed Apr 25, 2007 5:39 am

Postby rdb » Wed Jun 24, 2009 4:21 am

Actually, it suprises me that you were able to install python 2.5 on Jaunty at all.

I marked python2.6 as dependency of the deb - and you are supposed to use "python" to run Panda stuff, not "python2.5".
I prefer e-mail over PM
rdb
 
Posts: 8548
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands


Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests