Re: [Soya-user] Remaining step to 0.15.0

2010-01-17 Thread Pierre-Yves David

On 17 janv. 2010, at 20:19, deavid wrote:

> test.py is corrected in my last push.

patch integrated to the SVN.

> sound-1.py is corrected too, but reverting a previous commit.

Jiba fixed it

That's great ! we finally get everything fine. Let's package a 0.15rc1 now.

regards

--
marmoute

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


Re: [Soya-user] Remaining step to 0.15.0

2010-01-17 Thread deavid
2010/1/17 Pierre-Yves David 

> I pushed your patch + plus some other fix to the svn :
>
> We stil have the following tutorial broken :
>
> tutorial/test.py
> tutorial/sound-1.py
>
>
test.py is corrected in my last push.

sound-1.py is corrected too, but reverting a previous commit.
___
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user


Re: [Soya-user] Remaining step to 0.15.0

2010-01-17 Thread Pierre-Yves David
I pushed your patch + plus some other fix to the svn :

We stil have the following tutorial broken :

tutorial/test.py
tutorial/sound-1.py

--
marmoute

On 17 janv. 2010, at 12:58, deavid wrote:

> - ode-mass tutorial
Fixed

> - ode-join tutorial
Awesome fix by Deavid

> - test
Still broken

> - particle tutorial
particle-1.py seem right now

> - pudding-meter-1 tutorial (needs to correct its import)
Fixed

> - pudding svgelements (fails to find elementtree library)
Does not crash (but I don't have cairo for further testing)


> - sound-1 tutorial
  File "sound.pyx", line 38, in soya._soya.check_al_error
soya._soya.ALError: AL_INVALID_OPERATION

> - unittest_events (test_queue_event)
Fixed


> - ode-collision-7-hit_func-3-contacts tutorial  (soya.Smoke expects
> integer number of particles, got float)
Fixed

> === SOLVED ===
> - laser rendering  (tutorials affected:  raypicking-1,raypicking-3,
> ode-collision-7-hit_func-3-contacts)
Fixed


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


Re: [Soya-user] Remaining step to 0.15.0

2010-01-17 Thread deavid
I have those patches in my local repo if anyone is interested:

c00cee5 Tutorial ode-mass: delete exit(0) call to allow the program run.
363458e Correct the import for elementtree (used in svgelements)
e0dde94 Tutorial particles-1: Change the default example to be
autogenerating particles by default.
fc93ce8 Tutorial particle-1: remove the deprecation warning.
c0895ec tutorial pudding-meter: update the import of meter library
cc54386 Tutorial ode collision 7: convert number of particles to int
9351d52 Jiba's version of laser.render


I'm working with other issues, when I finish I'll pusblish all the code
anyway.
___
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user


Re: [Soya-user] Remaining step to 0.15.0

2010-01-17 Thread deavid
- ode-mass tutorial
- ode-join tutorial
- test
- particle tutorial
- pudding-meter-1 tutorial (needs to correct its import)
- pudding svgelements (fails to find elementtree library)
- sound-1 tutorial
- unittest_events (test_queue_event)
- ode-collision-7-hit_func-3-contacts tutorial  (soya.Smoke expects
integer number of particles, got float)

=== SOLVED ===
- laser rendering  (tutorials affected:  raypicking-1,raypicking-3,
ode-collision-7-hit_func-3-contacts)

___
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-17 Thread deavid
I recieved a patch for laser.py render from Jiba, and it works.

So, after applying those changes raypicking-1, raypicking-3,
ode-collision-7-hit_func-3-contacts are working

ode-collision-7-hit_func-3-contacts.py - still has a bug:

ode-collision-7-hit_func-3-contacts.py:204: DeprecationWarning:
integer argument expected, got float
  s = soya.Smoke(self.parent,nb_particles=12*nl)


I'm attaching the patch.

It can be applied to the svn revision number 527.


0001-Jiba-s-version-of-laser.render.patch
Description: Binary data
___
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user


Re: [Soya-user] Remaining step to 0.15.0

2010-01-17 Thread deavid
2010/1/17 Pierre-Yves David :
> We made significant improvement and major bugfix to soya since 0.14.x. I 
> think you can publish a 0.15.x version. With the new Deavid patches for 
> up-to-date pyrex compatibility I think you should do it as soon as possible. 
> My initial schedule was to publish a release candidate this week end. For an 
> official release at the end of the month. But they are several issue I wish 
> to see fixed before a 0.15.0 :
>
>        - laser rendering
>        - ode-mass tutorial
>        - ode-join tutorial
>        - test
>        - particle tutorial
>
> I'm not available this sunday but maybe deavid and jiba can investigate those 
> issues (any others good-will are welcome of course).


I'm adding to the list the bugs i recently found:
- laser rendering  (tutorials affected:  raypicking-1,raypicking-3,
ode-collision-7-hit_func-3-contacts)
- ode-mass tutorial
- ode-join tutorial
- test
- particle tutorial
- pudding-meter-1 tutorial (needs to correct its import)
- pudding svgelements (fails to find elementtree library)
- sound-1 tutorial
- unittest_events (test_queue_event)

___
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-17 Thread deavid
Tried again all unittesting:

(there is only one error.)

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 69, 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.757s

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

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

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

--
Ran 4 tests in 2.423s

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

--
Ran 8 tests in 4.617s

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

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

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

OK

___
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-17 Thread deavid
Ok, I'm testing again all examples.

= summary =
* ode stuff was corrected, except ode-join and ode-mass that might
need some review.
* gui stuff now doesn't give any warning
* particle-1 needs review
* pudding stuff works
* pudding-meter-1 needs to correct its import
* pudding-svgelements-1 is failing to find elementtree library
* raypicking-1,raypicking-3, ode-collision-7-hit_func-3-contacts:
laser class is failing to render.
* sound-1 doesn't work; seems to be a error introduced recently in the svn.
* test keeps failing: "no cal3dbody"

===


ode-collision-7-hit_func-3-contacts.py - seems to work, but mouse
click don't work (no laser drawed, no effect)
Python2.5 says:
Exception exceptions.TypeError: "unsupported operand type(s) for *:
'NoneType' and 'float'" in 'soya._soya.PythonCoordSyst._render'
ignored

ode-join.py - acts odd; (this time I've seen something less odd)

ode-mass.py - exits without doing nothing

particle-1.py - works, but python says:  (the animation only happens
one or two secons; it is ok, or it should be a sustained rate of
particles?)
/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-meter-1.py - fails to import pudding.ext.meter (it works
perfectly when I corrected the import)
Traceback (most recent call last):
  File "pudding-meter-1.py", line 10, in 
import pudding.ext.meter
ImportError: No module named pudding.ext.meter

pudding-svgelements-1.py - fails to import svgelements. It says that i
don't have python-elementtree, but Debian's aptitude says it's
installed.
/usr/lib/python2.5/site-packages/soya/pudding/ext/svgelements.py:25:
DeprecationWarning: raising a string exception is deprecated
  raise "You need elementtree from http://effbot.org/zone/element-index.htm";
Traceback (most recent call last):
  File "pudding-svgelements-1.py", line 8, in 
import soya.pudding.ext.svgelements as svgelements
  File "/usr/lib/python2.5/site-packages/soya/pudding/ext/svgelements.py",
line 25, in 
raise "You need elementtree from http://effbot.org/zone/element-index.htm";
You need elementtree from http://effbot.org/zone/element-index.htm

raypicking-1, raypicking-3.py -- the laser doesn't render:
Exception exceptions.TypeError: "unsupported operand type(s) for *:
'NoneType' and 'float'" in 'soya._soya.PythonCoordSyst._render'
ignored

sound-1.py - doesn't work.

sound-1.py:80: DeprecationWarning: the sets module is deprecated
  cube = NoisyCube(scene, cube.Cube().to_model())
AL_INVALID_ENUM
Traceback (most recent call last):
  File "sound-1.py", line 102, in 
soya.MainLoop(scene).main_loop()
  File "main_loop.pyx", line 181, in soya._soya.MainLoop.main_loop
  File "main_loop.pyx", line 272, in soya._soya.MainLoop.advance_time
  File "world.pyx", line 584, in soya._soya._World.advance_time
  File "sound-1.py", line 68, in advance_time
soya.check_al_error()
  File "sound.pyx", line 38, in soya._soya.check_al_error
soya._soya.ALError: AL_INVALID_ENUM

test.py - fails, no atribute cal3dbody

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