ch3ll0v3k / pybox2d

Automatically exported from code.google.com/p/pybox2d
Other
0 stars 0 forks source link

Problem with pyBox2d and Python 2.7.2 #45

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I installed pyBox2D on Windows7 and Python 2.7.2 and when I run demos.py (in 
testbed) I get the error :

Traceback (most recent call last):
  File "C:\Users\...\testbed\demos.py", line 29, in <module>
    from test_main import fwDebugDraw
  File "C:\Users\...\testbed\test_main.py", line 32, in <module>
    exec("from %s_main import *" % fwSettings.backend)
  File "<string>", line 1, in <module>
  File "C:\Users\Pascal\Desktop\pyBox2d\testbed\pygame_main.py", line 78, in <module>
    class fwBoundaryListener(box2d.b2BoundaryListener):
AttributeError: 'module' object has no attribute 'b2BoundaryListener'

I do not know what this mean.
How can I use pyBox2D and testbed with my configuration ?
Thank you.

Pascal Grandeau

Original issue reported on code.google.com by pgrand...@gmail.com on 20 Mar 2012 at 7:37

GoogleCodeExporter commented 8 years ago
As far as I can tell, b2BoundaryListener doesn't exist in the latest version of 
pybox2d. I guess we'll have to use an old version of pybox2d with the testbed.

Original comment by djfl...@gmail.com on 5 Jan 2014 at 1:42

GoogleCodeExporter commented 8 years ago
Actually, it turns out the link to the testbed on the home page is for the old 
version, but there's an 'examples' directory in the zip file for the latest 
version (here, as of writing 
https://code.google.com/p/pybox2d/downloads/detail?name=Box2D-2.3b0.zip) which 
I've just tested as working :)

Original comment by djfl...@gmail.com on 5 Jan 2014 at 3:28

GoogleCodeExporter commented 8 years ago
I don't know how I missed this issue -- but yes, the updated testbed is 
included with the source distribution as you've found. Sorry for it being such 
a tangled mess.

And yes, the boundary listener does not exist in the latest Box2D (and as such, 
pybox2d).  The world no longer has an explicit size limitation.

Original comment by sir...@gmail.com on 5 Jan 2014 at 4:32