Re: [Soya-user] Patches to Soya3D that allow compiling with latest Pyrex

2010-01-11 Thread deavid
I tested again Soya against unitests and againsts tutorials, using a
older pyrex 0.9.7.2, and the effects are exactly the same.

So, in case that there is a difference between pyrex versions, these
would be prior to 0.9.7.2;

soya, when compiled using pyrex 0.9.7.2 and 0.9.8.5 behaves exactly in
the same way. Exactly the same errors.

___
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user


Re: [Soya-user] Patches to Soya3D that allow compiling with latest Pyrex

2010-01-11 Thread deavid
Trying again all the tutorials, I have seen that all of them are
working, with this exceptions:

GUI stuff works, but says this:
/usr/lib/python2.5/site-packages/soya/gui/widgets.py:276:
DeprecationWarning: process_event is deprecated, use MainLoop's events
attributs instead
  self.process_event(soya.process_event())

ODE collision 7th demonstration fails when it inits:

deavid:~/git/soya/soya/tutorial$ python ode-collision-7-hit_func-3-contacts.py
= Control =
arrows: move
espace: up
left:   down
mouse:  look
clic:   firing laser
right:  clic for stronger single shot
return: center the camera when you're lost
escape: quit
* Soya * Using 8 bits stencil buffer

* Soya * version 0.14
* Using OpenGL 1.5.8 NVIDIA 96.43.13
*   - renderer : GeForce4 MX 440/AGP/SSE2
*   - vendor   : NVIDIA Corporation
*   - maximum number of lights: 8
*   - maximum number of clip planes   : 6
*   - maximum number of texture units : 2
*   - maximum texture size: 2048 pixels

Traceback (most recent call last):
  File "ode-collision-7-hit_func-3-contacts.py", line 38, in 
soya.MAIN_LOOP.events
AttributeError: 'NoneType' object has no attribute 'events'
* Soya3D * Quit...


ode-join.py -- seems to be acting odd.

ode-mass.py -- doesn't seem to do anything (it closes inmediately the window)

deavid:~/git/soya/soya/tutorial$ python ode-mass.py
* Soya * Using 8 bits stencil buffer

* Soya * version 0.14
* Using OpenGL 1.5.8 NVIDIA 96.43.13
*   - renderer : GeForce4 MX 440/AGP/SSE2
*   - vendor   : NVIDIA Corporation
*   - maximum number of lights: 8
*   - maximum number of clip planes   : 6
*   - maximum number of texture units : 2
*   - maximum texture size: 2048 pixels

Mass: 50.0
Center of Gravity: (0.0, 5.400953674316, -9.0)
Inertia Tensor: ((511.0, 512.0, 513.0), (512.0, 522.0, 523.0), (513.0,
523.0, 533.0))
* Soya3D * Quit...




particle-1.py -- seems to work (not at all, though), but says:
/usr/lib/python2.5/site-packages/soya/particle.py:22:
DeprecationWarning: The content of this module is now in the soya
module.
  warnings.warn("The content of this module is now in the soya
module.", DeprecationWarning)


Pudding stuff won't work:
deavid:~/git/soya/soya/tutorial$ python pudding-console-2.py
* Soya * Using 8 bits stencil buffer

* Soya * version 0.14
* Using OpenGL 1.5.8 NVIDIA 96.43.13
*   - renderer : GeForce4 MX 440/AGP/SSE2
*   - vendor   : NVIDIA Corporation
*   - maximum number of lights: 8
*   - maximum number of clip planes   : 6
*   - maximum number of texture units : 2
*   - maximum texture size: 2048 pixels

* Soya Pudding * Version: 0.1-0
Traceback (most recent call last):
  File "pudding-console-2.py", line 52, in 
pudding.main_loop.MainLoop(scene).main_loop()
  File "/usr/lib/python2.5/site-packages/soya/pudding/main_loop.py",
line 25, in __init__
self.events = []
AttributeError: attribute 'events' of 'soya._soya.MainLoop' objects is
not writable
* Soya3D * Quit...


raypicking-1.py and raypicking3.py -- They fail inside the laser class
with this error, and laser won't appear.
Exception exceptions.UnboundLocalError: "local variable 'direct'
referenced before assignment" in 'soya._soya.PythonCoordSyst._render'
ignored


test.py -- fails with the following message:
Traceback (most recent call last):
  File "test.py", line 40, in 
class InterpolatingBody(soya.Cal3dBody):
AttributeError: 'module' object has no attribute 'Cal3dBody'
* Soya3D * Quit...


The rest of tutorials are working with the last changes.

___
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user


Re: [Soya-user] Patches to Soya3D that allow compiling with latest Pyrex

2010-01-11 Thread deavid
Pierre,
after compiling your patched version of soya, i tried the unittests,
the log follows:
===
deavid:~/git/soya/soya/test$ ls
dataunittest_geom.py unittest_ode_body.py
unittest_render.py
unittest_categories.py  unittest_gravity.py  unittest_ode_geom.py
unittest_task.py
unittest_events.py  unittest_init.py unittest_ode_gravity.py
unittest_time.py
deavid:~/git/soya/soya/test$ python unittest_categories.py
...
--
Ran 7 tests in 3.245s

OK
deavid:~/git/soya/soya/test$ python unittest_events.py
E
==
ERROR: test_queue_event (__main__.EventsTC)
--
Traceback (most recent call last):
  File "unittest_events.py", line 68, in test_queue_event
self.assertIn(DOWN_LEFT, self.main_loop.raw_events)
AttributeError: 'EventsTC' object has no attribute 'assertIn'

--
Ran 9 tests in 1.230s

FAILED (errors=1)
deavid:~/git/soya/soya/test$ python unittest_geom.py
..
--
Ran 2 tests in 0.003s

OK
deavid:~/git/soya/soya/test$ python unittest_gravity.py
..
--
Ran 2 tests in 0.003s

OK
deavid:~/git/soya/soya/test$ python unittest_init.py

--
Ran 4 tests in 1.413s

OK
deavid:~/git/soya/soya/test$ python unittest_ode_body.py

--
Ran 8 tests in 2.815s

OK
deavid:~/git/soya/soya/test$ python unittest_ode_geom.py
..
--
Ran 2 tests in 0.002s

OK
deavid:~/git/soya/soya/test$ python unittest_ode_gravity.py
..
--
Ran 2 tests in 0.003s

OK
deavid:~/git/soya/soya/test$ python unittest_render.py
FF
==
FAIL: test_render_back (__main__.ScreenShotTC)
--
Traceback (most recent call last):
  File "unittest_render.py", line 57, in test_render_back
self.assertEquals(screenshot.getpixel((0,0)),(255, 0, 0))
AssertionError: (0, 0, 0) != (255, 0, 0)

==
FAIL: test_render_front (__main__.ScreenShotTC)
--
Traceback (most recent call last):
  File "unittest_render.py", line 44, in test_render_front
self.assertEquals(screenshot.getpixel((0,0)),(255, 0, 0))
AssertionError: (0, 0, 0) != (255, 0, 0)

--
Ran 2 tests in 1.367s

FAILED (failures=2)
deavid:~/git/soya/soya/test$ python unittest_task.py
..
--
Ran 2 tests in 0.699s

OK
deavid:~/git/soya/soya/test$ python unittest_time.py
...
--
Ran 3 tests in 1.071s

OK

___
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user