Python & OSX: Testa mitt fysiklib!

Permalänk
Medlem

Python & OSX: Testa mitt fysiklib!

Som en del kanske vet håller jag på med ett 2d-fysiklib i python. Bygger på den utmärkta fysikmotorn Chipmunk men med ett python-lager ovanpå så det är lätt att använda direkt fårn python.

Jag är nu väldigt nära en stor release men är osäker på om det funkar som det ska i OSX. Tyvärr har jag ingen enkel möjlighet att testa själv, så därför hade jag varit mycket tacksam om någon (eller gärna flera) som har en mac med OSX på kunde tanka hem koden och köra testscriptet! Inget svårt alls förutom att man måste ha en c-kompilator installerad och python.

Koden kan man tanka hem här:
http://deepwhite.viblo.se:8050/pymunk-0.8.9a1.zip

1. Packa upp till en map
2. Från den mappen, kör följande två kommandon:

> python setup.py build_chipmunk > python setup.py test

Förhoppningsvis ska resultatet av testet bli en massa rader som skriver ut ok och slutligen en sammanfattning som även den slutar med OK.

Är ni intresserade får ni givetvis testa även på andra operativsystem, ju fler som testar desto bättre, men viktigast är OSX eftersom jag har testat på både Windows och Ubuntu själv.

Har även gjort en logga för libbet:

Ser den bra ut, eller borde jag ändra på något? Eller kanske helt skrota den och börja om från scratch med något annat än en grön orm av bollar och 3 boxar?

edit: ändrade på länken till ny version

Visa signatur

AK47s for everyone! - Angry mob
Since NaN /= NaN, I think, we should decipher 'NaN' as 'Not a NaN' - Miguel Mitrofanov
(Varför är människan så benägen att tro på Gud?) Antagligen har det lönat sig och evolutionen har drivit fram sådana hjärnor. - Anon

Permalänk
Medlem

Kört på Leopard med näst senaste versionen av Macbook Pro:

running test running egg_info writing pymunk.egg-info/PKG-INFO writing eager_resources to pymunk.egg-info/eager_resources.txt writing top-level names to pymunk.egg-info/top_level.txt writing dependency_links to pymunk.egg-info/dependency_links.txt reading manifest file 'pymunk.egg-info/SOURCES.txt' writing manifest file 'pymunk.egg-info/SOURCES.txt' running build_ext Loading chipmunk for Darwin (32bit) [/Users/bjorn/Desktop/pymunk-0.8.9/pymunk/libchipmunk.dylib] testCreation (tests.unittests.UnitTestBB) ... ok testMethods (tests.unittests.UnitTestBB) ... ok test (tests.unittests.UnitTestBody) ... ok testConversion (tests.unittests.UnitTestBody) ... ok testPositonFunction (tests.unittests.UnitTestBody) ... ok testVelocityFunction (tests.unittests.UnitTestBody) ... ok testDampedRotarySpring (tests.unittests.UnitTestConstraint) ... ok testDampedSpring (tests.unittests.UnitTestConstraint) ... ok testGearJoint (tests.unittests.UnitTestConstraint) ... ok testPinJoint (tests.unittests.UnitTestConstraint) ... ok testPivotjoint (tests.unittests.UnitTestConstraint) ... ok testRatchetJoint (tests.unittests.UnitTestConstraint) ... ok testRotaryLimitJoint (tests.unittests.UnitTestConstraint) ... ok testSimpleMotor (tests.unittests.UnitTestConstraint) ... ok testSlideJoint (tests.unittests.UnitTestConstraint) ... ok testGeneral (tests.unittests.UnitTestGeneral) ... ok testShape (tests.unittests.UnitTestShape) ... ok testAddRemove (tests.unittests.UnitTestSpace) ... ok testCollisionHandlers (tests.unittests.UnitTestSpace) ... ok testPointQueries (tests.unittests.UnitTestSpace) ... ok testPostStepCallback (tests.unittests.UnitTestSpace) ... ok testResizeRehash (tests.unittests.UnitTestSpace) ... ok testSegmentQueries (tests.unittests.UnitTestSpace) ... ok testAnglesDegrees (tests.vec2d_unittest.UnitTestVec2d) ... ok testAnglesRadians (tests.vec2d_unittest.UnitTestVec2d) ... ok testComparison (tests.vec2d_unittest.UnitTestVec2d) ... ok testCreationAndAccess (tests.vec2d_unittest.UnitTestVec2d) ... ok testCross (tests.vec2d_unittest.UnitTestVec2d) ... ok testHighLevel (tests.vec2d_unittest.UnitTestVec2d) ... ok testInplace (tests.vec2d_unittest.UnitTestVec2d) ... ok testLength (tests.vec2d_unittest.UnitTestVec2d) ... ok testMath (tests.vec2d_unittest.UnitTestVec2d) ... ok testPickle (tests.vec2d_unittest.UnitTestVec2d) ... ok testReverseMath (tests.vec2d_unittest.UnitTestVec2d) ... ok testUnary (tests.vec2d_unittest.UnitTestVec2d) ... ok ---------------------------------------------------------------------- Ran 35 tests in 0.015s OK

Loggan är väl OK, men kanske inte det mest tilltalande jag sett.

Jag tycker definitivt att du ska arbeta med ormen ivf

Permalänk
Medlem

Snow Leopard 10.6.2

running test running egg_info writing pymunk.egg-info/PKG-INFO writing eager_resources to pymunk.egg-info/eager_resources.txt writing top-level names to pymunk.egg-info/top_level.txt writing dependency_links to pymunk.egg-info/dependency_links.txt reading manifest file 'pymunk.egg-info/SOURCES.txt' writing manifest file 'pymunk.egg-info/SOURCES.txt' running build_ext Loading chipmunk for Darwin (64bit) [/Users/azero/Downloads/pymunk-0.8.9/pymunk/libchipmunk.dylib] testCreation (tests.unittests.UnitTestBB) ... FAIL testMethods (tests.unittests.UnitTestBB) ... FAIL test (tests.unittests.UnitTestBody) ... FAIL testConversion (tests.unittests.UnitTestBody) ... FAIL testPositonFunction (tests.unittests.UnitTestBody) ... FAIL testVelocityFunction (tests.unittests.UnitTestBody) ... FAIL testDampedRotarySpring (tests.unittests.UnitTestConstraint) ... FAIL testDampedSpring (tests.unittests.UnitTestConstraint) ... FAIL testGearJoint (tests.unittests.UnitTestConstraint) ... FAIL testPinJoint (tests.unittests.UnitTestConstraint) ... FAIL testPivotjoint (tests.unittests.UnitTestConstraint) ... FAIL testRatchetJoint (tests.unittests.UnitTestConstraint) ... FAIL testRotaryLimitJoint (tests.unittests.UnitTestConstraint) ... FAIL testSimpleMotor (tests.unittests.UnitTestConstraint) ... FAIL testSlideJoint (tests.unittests.UnitTestConstraint) ... FAIL testGeneral (tests.unittests.UnitTestGeneral) ... ok testShape (tests.unittests.UnitTestShape) ... FAIL testAddRemove (tests.unittests.UnitTestSpace) ... ERROR testCollisionHandlers (tests.unittests.UnitTestSpace) ... ERROR testPointQueries (tests.unittests.UnitTestSpace) ... ERROR testPostStepCallback (tests.unittests.UnitTestSpace) ... ERROR testResizeRehash (tests.unittests.UnitTestSpace) ... ERROR testSegmentQueries (tests.unittests.UnitTestSpace) ... ERROR testAnglesDegrees (tests.vec2d_unittest.UnitTestVec2d) ... ok testAnglesRadians (tests.vec2d_unittest.UnitTestVec2d) ... ok testComparison (tests.vec2d_unittest.UnitTestVec2d) ... ok testCreationAndAccess (tests.vec2d_unittest.UnitTestVec2d) ... ok testCross (tests.vec2d_unittest.UnitTestVec2d) ... ok testHighLevel (tests.vec2d_unittest.UnitTestVec2d) ... ok testInplace (tests.vec2d_unittest.UnitTestVec2d) ... ok testLength (tests.vec2d_unittest.UnitTestVec2d) ... ok testMath (tests.vec2d_unittest.UnitTestVec2d) ... ok testPickle (tests.vec2d_unittest.UnitTestVec2d) ... ok testReverseMath (tests.vec2d_unittest.UnitTestVec2d) ... ok testUnary (tests.vec2d_unittest.UnitTestVec2d) ... ok ====================================================================== ERROR: testAddRemove (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Users/azero/Downloads/pymunk-0.8.9/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Users/azero/Downloads/pymunk-0.8.9/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== ERROR: testCollisionHandlers (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Users/azero/Downloads/pymunk-0.8.9/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Users/azero/Downloads/pymunk-0.8.9/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== ERROR: testPointQueries (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Users/azero/Downloads/pymunk-0.8.9/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Users/azero/Downloads/pymunk-0.8.9/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== ERROR: testPostStepCallback (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Users/azero/Downloads/pymunk-0.8.9/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Users/azero/Downloads/pymunk-0.8.9/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== ERROR: testResizeRehash (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Users/azero/Downloads/pymunk-0.8.9/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Users/azero/Downloads/pymunk-0.8.9/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== ERROR: testSegmentQueries (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Users/azero/Downloads/pymunk-0.8.9/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Users/azero/Downloads/pymunk-0.8.9/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== FAIL: testCreation (tests.unittests.UnitTestBB) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 302, in testCreation self.assertEqual(bb_defined.left, -10) AssertionError: 0.0 != -10 ====================================================================== FAIL: testMethods (tests.unittests.UnitTestBB) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 313, in testMethods self.assert_(bb1.intersects(bb2)) AssertionError ====================================================================== FAIL: test (tests.unittests.UnitTestBody) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 22, in test self.assertEqual(b.mass, 10) AssertionError: 1.4044477616111843e+306 != 10 ====================================================================== FAIL: testConversion (tests.unittests.UnitTestBody) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 30, in testConversion self.assertEqual(b.local_to_world((1,1)), Vec2d(11,21)) AssertionError: Vec2d(1.0, 0.0) != Vec2d(11.0, 21.0) ====================================================================== FAIL: testPositonFunction (tests.unittests.UnitTestBody) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 42, in testPositonFunction self.assertEqual(b.position.y, 10) AssertionError: 0.0 != 10 ====================================================================== FAIL: testVelocityFunction (tests.unittests.UnitTestBody) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 61, in testVelocityFunction self.assertEqual(b.velocity.x, 5) AssertionError: 0.0078125 != 5 ====================================================================== FAIL: testDampedRotarySpring (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 251, in testDampedRotarySpring self.assertEqual(j.rest_angle, 0.4) AssertionError: 2.1219957909652723e-314 != 0.40000000000000002 ====================================================================== FAIL: testDampedSpring (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 244, in testDampedSpring self.assertEqual(j.rest_length, 7) AssertionError: 1.5786290650215846e-308 != 7 ====================================================================== FAIL: testGearJoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 271, in testGearJoint self.assertEqual(j.phase, 0.3) AssertionError: 4.0229503535403069e-314 != 0.29999999999999999 ====================================================================== FAIL: testPinJoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 221, in testPinJoint self.assertEqual(j.distance, 10) AssertionError: 5.2386914196813489e-11 != 10 ====================================================================== FAIL: testPivotjoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 238, in testPivotjoint self.assertEqual(j1.anchr1, j2.anchr2) AssertionError: Vec2d(0.0, 0.0) != Vec2d(2.12508297003e-314, 2.122889449e-314) ====================================================================== FAIL: testRatchetJoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 264, in testRatchetJoint self.assertEqual(j.angle, 0.0) AssertionError: 3.395193265742062e-314 != 0.0 ====================================================================== FAIL: testRotaryLimitJoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 258, in testRotaryLimitJoint self.assertEqual(j.max, 0.2) AssertionError: 0.0 != 0.20000000000000001 ====================================================================== FAIL: testSimpleMotor (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 277, in testSimpleMotor self.assertEqual(j.rate, 0.3) AssertionError: 2.1219957909652723e-314 != 0.29999999999999999 ====================================================================== FAIL: testSlideJoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 226, in testSlideJoint self.assertEqual(j.max, 12) AssertionError: 0.0 != 12 ====================================================================== FAIL: testShape (tests.unittests.UnitTestShape) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/azero/Downloads/pymunk-0.8.9/tests/unittests.py", line 81, in testShape self.assert_( c.point_query((11,1)) ) AssertionError ---------------------------------------------------------------------- Ran 35 tests in 0.007s FAILED (failures=16, errors=6)

Permalänk
Medlem

Intressant. Perfekt att ni hade olika python & OSX-versioner!

pymunk kompilerar osx-versionen i en fat binary som innehåller både en 32 och en 64-bits-version. Men det verkar inte som om den fattar vad den ska ladda sedan. Jag har splittat upp koden så att man bara får 32 respektive 64bit beroende på vad man kör, förhoppningsvis ska det funka bättre nu.

Vore kanon om ni kunde testa igen, fast denna gång med den här versionen istället: http://deepwhite.viblo.se:8050/pymunk-0.8.9a1.zip

bjornie: Ok, frågan är bara hur Jag är mer kodare än jag är grafiker, antar att det lyser igenom..

Visa signatur

AK47s for everyone! - Angry mob
Since NaN /= NaN, I think, we should decipher 'NaN' as 'Not a NaN' - Miguel Mitrofanov
(Varför är människan så benägen att tro på Gud?) Antagligen har det lönat sig och evolutionen har drivit fram sådana hjärnor. - Anon

Permalänk
Medlem

running test running egg_info writing pymunk.egg-info/PKG-INFO writing eager_resources to pymunk.egg-info/eager_resources.txt writing top-level names to pymunk.egg-info/top_level.txt writing dependency_links to pymunk.egg-info/dependency_links.txt reading manifest file 'pymunk.egg-info/SOURCES.txt' writing manifest file 'pymunk.egg-info/SOURCES.txt' running build_ext Loading chipmunk for Darwin (32bit) [/Users/bjorn/Desktop/pymunk-0.8.9a1/pymunk/libchipmunk.dylib] ... /* Allt OK igen */

Allt ok fortfarande. Datorn jag har är ju en 64-bitars, dock så har inte Leopard fullt stöd för 64 bitar som jag förstått det. Är på väg att uppdatera till Snow Leopard - tur för dig att jag inte hunnit göra det?!

Ang. grafik - jag förstår precis vad du menar, jag är likadan. Så jag kan nog inte komma med några konstruktiva råd

Permalänk
Medlem

simon@riemann ~/D/p/pymunk-0.8.9a1> uname -a; and python --version; and python setup.py test Darwin riemann.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386 i386 Python 2.6.1 running test running egg_info writing pymunk.egg-info/PKG-INFO writing eager_resources to pymunk.egg-info/eager_resources.txt writing top-level names to pymunk.egg-info/top_level.txt writing dependency_links to pymunk.egg-info/dependency_links.txt reading manifest file 'pymunk.egg-info/SOURCES.txt' writing manifest file 'pymunk.egg-info/SOURCES.txt' running build_ext Loading chipmunk for Darwin (64bit) [/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/pymunk/libchipmunk64.dylib] testCreation (tests.unittests.UnitTestBB) ... FAIL testMethods (tests.unittests.UnitTestBB) ... FAIL test (tests.unittests.UnitTestBody) ... FAIL testConversion (tests.unittests.UnitTestBody) ... FAIL testPositonFunction (tests.unittests.UnitTestBody) ... FAIL testVelocityFunction (tests.unittests.UnitTestBody) ... FAIL testDampedRotarySpring (tests.unittests.UnitTestConstraint) ... FAIL testDampedSpring (tests.unittests.UnitTestConstraint) ... FAIL testGearJoint (tests.unittests.UnitTestConstraint) ... FAIL testPinJoint (tests.unittests.UnitTestConstraint) ... FAIL testPivotjoint (tests.unittests.UnitTestConstraint) ... FAIL testRatchetJoint (tests.unittests.UnitTestConstraint) ... FAIL testRotaryLimitJoint (tests.unittests.UnitTestConstraint) ... FAIL testSimpleMotor (tests.unittests.UnitTestConstraint) ... FAIL testSlideJoint (tests.unittests.UnitTestConstraint) ... FAIL testGeneral (tests.unittests.UnitTestGeneral) ... ok testShape (tests.unittests.UnitTestShape) ... FAIL testAddRemove (tests.unittests.UnitTestSpace) ... ERROR testCollisionHandlers (tests.unittests.UnitTestSpace) ... ERROR testPointQueries (tests.unittests.UnitTestSpace) ... ERROR testPostStepCallback (tests.unittests.UnitTestSpace) ... ERROR testResizeRehash (tests.unittests.UnitTestSpace) ... ERROR testSegmentQueries (tests.unittests.UnitTestSpace) ... ERROR testAnglesDegrees (tests.vec2d_unittest.UnitTestVec2d) ... ok testAnglesRadians (tests.vec2d_unittest.UnitTestVec2d) ... ok testComparison (tests.vec2d_unittest.UnitTestVec2d) ... ok testCreationAndAccess (tests.vec2d_unittest.UnitTestVec2d) ... ok testCross (tests.vec2d_unittest.UnitTestVec2d) ... ok testHighLevel (tests.vec2d_unittest.UnitTestVec2d) ... ok testInplace (tests.vec2d_unittest.UnitTestVec2d) ... ok testLength (tests.vec2d_unittest.UnitTestVec2d) ... ok testMath (tests.vec2d_unittest.UnitTestVec2d) ... ok testPickle (tests.vec2d_unittest.UnitTestVec2d) ... ok testReverseMath (tests.vec2d_unittest.UnitTestVec2d) ... ok testUnary (tests.vec2d_unittest.UnitTestVec2d) ... ok ====================================================================== ERROR: testAddRemove (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== ERROR: testCollisionHandlers (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== ERROR: testPointQueries (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== ERROR: testPostStepCallback (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== ERROR: testResizeRehash (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== ERROR: testSegmentQueries (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== FAIL: testCreation (tests.unittests.UnitTestBB) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 302, in testCreation self.assertEqual(bb_defined.left, -10) AssertionError: 0.0 != -10 ====================================================================== FAIL: testMethods (tests.unittests.UnitTestBB) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 313, in testMethods self.assert_(bb1.intersects(bb2)) AssertionError ====================================================================== FAIL: test (tests.unittests.UnitTestBody) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 22, in test self.assertEqual(b.mass, 10) AssertionError: 1.4044477616111843e+306 != 10 ====================================================================== FAIL: testConversion (tests.unittests.UnitTestBody) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 30, in testConversion self.assertEqual(b.local_to_world((1,1)), Vec2d(11,21)) AssertionError: Vec2d(1.0, 0.0) != Vec2d(11.0, 21.0) ====================================================================== FAIL: testPositonFunction (tests.unittests.UnitTestBody) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 42, in testPositonFunction self.assertEqual(b.position.y, 10) AssertionError: 0.0 != 10 ====================================================================== FAIL: testVelocityFunction (tests.unittests.UnitTestBody) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 61, in testVelocityFunction self.assertEqual(b.velocity.x, 5) AssertionError: 0.0078125 != 5 ====================================================================== FAIL: testDampedRotarySpring (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 251, in testDampedRotarySpring self.assertEqual(j.rest_angle, 0.4) AssertionError: 2.1219957909652723e-314 != 0.40000000000000002 ====================================================================== FAIL: testDampedSpring (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 244, in testDampedSpring self.assertEqual(j.rest_length, 7) AssertionError: 2.1319897192291477e-314 != 7 ====================================================================== FAIL: testGearJoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 271, in testGearJoint self.assertEqual(j.phase, 0.3) AssertionError: 4.0229503535403069e-314 != 0.29999999999999999 ====================================================================== FAIL: testPinJoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 221, in testPinJoint self.assertEqual(j.distance, 10) AssertionError: 2.1303582156534508e-314 != 10 ====================================================================== FAIL: testPivotjoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 238, in testPivotjoint self.assertEqual(j1.anchr1, j2.anchr2) AssertionError: Vec2d(0.0, 0.0) != Vec2d(2.12508524274e-314, 2.122889449e-314) ====================================================================== FAIL: testRatchetJoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 264, in testRatchetJoint self.assertEqual(j.angle, 0.0) AssertionError: 3.395193265742062e-314 != 0.0 ====================================================================== FAIL: testRotaryLimitJoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 258, in testRotaryLimitJoint self.assertEqual(j.max, 0.2) AssertionError: 0.0 != 0.20000000000000001 ====================================================================== FAIL: testSimpleMotor (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 277, in testSimpleMotor self.assertEqual(j.rate, 0.3) AssertionError: 5.5652522611750714e-309 != 0.29999999999999999 ====================================================================== FAIL: testSlideJoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 226, in testSlideJoint self.assertEqual(j.max, 12) AssertionError: 8.3861843050869425e-317 != 12 ====================================================================== FAIL: testShape (tests.unittests.UnitTestShape) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/Desktop/pymunk/pymunk-0.8.9a1/tests/unittests.py", line 81, in testShape self.assert_( c.point_query((11,1)) ) AssertionError ---------------------------------------------------------------------- Ran 35 tests in 0.010s FAILED (failures=16, errors=6)

(Ignorera det faktum att uname säger i386, resten av systemet vet att jag kör 64bitars)

Permalänk
Medlem

Oh, jobbigt. Nånting är fel på 64bit, frågan är bara vad? Har testat det på ubuntu 64bit och då funkade det bra såklart. Undrar just om det kan vara structar som packas olika jämfört med linux 64bit eller något sånt? Annars skulle man ju tro att det funkade likadant när båda är *nix-system..

Koden undersöker om python kör i 64bits läge genom att testa hur stor en void-pekare är, både för att välja hur den ska kompilera koden och sedan vilken version den ska ladda in, så man tycker att det borde funka. Och vi kan ju se från din output att den kört på 64bit-varianten.

Eftersom du inte klippte in den antar jag att själva kompileringen (build_chipmunk) gick bra utan några fel?

Visa signatur

AK47s for everyone! - Angry mob
Since NaN /= NaN, I think, we should decipher 'NaN' as 'Not a NaN' - Miguel Mitrofanov
(Varför är människan så benägen att tro på Gud?) Antagligen har det lönat sig och evolutionen har drivit fram sådana hjärnor. - Anon

Permalänk
Medlem
Citat:

Ursprungligen inskrivet av vb
Eftersom du inte klippte in den antar jag att själva kompileringen (build_chipmunk) gick bra utan några fel?

Den gick utan problem, ja. Kör gcc-4.2.1 om det spelar någon roll.

Permalänk
Medlem

uname -a; python --version; python setup.py test Darwin Trinity.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386 Python 2.6.1 running test running egg_info writing pymunk.egg-info/PKG-INFO writing eager_resources to pymunk.egg-info/eager_resources.txt writing top-level names to pymunk.egg-info/top_level.txt writing dependency_links to pymunk.egg-info/dependency_links.txt reading manifest file 'pymunk.egg-info/SOURCES.txt' writing manifest file 'pymunk.egg-info/SOURCES.txt' running build_ext Loading chipmunk for Darwin (64bit) [/Volumes/Store/Nerladdat/pymunk-0.8.9a1/pymunk/libchipmunk64.dylib] testCreation (tests.unittests.UnitTestBB) ... FAIL testMethods (tests.unittests.UnitTestBB) ... FAIL test (tests.unittests.UnitTestBody) ... FAIL testConversion (tests.unittests.UnitTestBody) ... FAIL testPositonFunction (tests.unittests.UnitTestBody) ... FAIL testVelocityFunction (tests.unittests.UnitTestBody) ... FAIL testDampedRotarySpring (tests.unittests.UnitTestConstraint) ... FAIL testDampedSpring (tests.unittests.UnitTestConstraint) ... FAIL testGearJoint (tests.unittests.UnitTestConstraint) ... FAIL testPinJoint (tests.unittests.UnitTestConstraint) ... FAIL testPivotjoint (tests.unittests.UnitTestConstraint) ... FAIL testRatchetJoint (tests.unittests.UnitTestConstraint) ... FAIL testRotaryLimitJoint (tests.unittests.UnitTestConstraint) ... FAIL testSimpleMotor (tests.unittests.UnitTestConstraint) ... FAIL testSlideJoint (tests.unittests.UnitTestConstraint) ... FAIL testGeneral (tests.unittests.UnitTestGeneral) ... ok testShape (tests.unittests.UnitTestShape) ... FAIL testAddRemove (tests.unittests.UnitTestSpace) ... ERROR testCollisionHandlers (tests.unittests.UnitTestSpace) ... ERROR testPointQueries (tests.unittests.UnitTestSpace) ... ERROR testPostStepCallback (tests.unittests.UnitTestSpace) ... ERROR testResizeRehash (tests.unittests.UnitTestSpace) ... ERROR testSegmentQueries (tests.unittests.UnitTestSpace) ... ERROR testAnglesDegrees (tests.vec2d_unittest.UnitTestVec2d) ... ok testAnglesRadians (tests.vec2d_unittest.UnitTestVec2d) ... ok testComparison (tests.vec2d_unittest.UnitTestVec2d) ... ok testCreationAndAccess (tests.vec2d_unittest.UnitTestVec2d) ... ok testCross (tests.vec2d_unittest.UnitTestVec2d) ... ok testHighLevel (tests.vec2d_unittest.UnitTestVec2d) ... ok testInplace (tests.vec2d_unittest.UnitTestVec2d) ... ok testLength (tests.vec2d_unittest.UnitTestVec2d) ... ok testMath (tests.vec2d_unittest.UnitTestVec2d) ... ok testPickle (tests.vec2d_unittest.UnitTestVec2d) ... ok testReverseMath (tests.vec2d_unittest.UnitTestVec2d) ... ok testUnary (tests.vec2d_unittest.UnitTestVec2d) ... ok ====================================================================== ERROR: testAddRemove (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== ERROR: testCollisionHandlers (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== ERROR: testPointQueries (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== ERROR: testPostStepCallback (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== ERROR: testResizeRehash (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== ERROR: testSegmentQueries (tests.unittests.UnitTestSpace) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 104, in setUp self.s.add(self.s1,self.s2) File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/pymunk/__init__.py", line 161, in add self._add_shape(o) File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/pymunk/__init__.py", line 206, in _add_shape assert shape._hashid not in self._shapes, "shape already added to space" AssertionError: shape already added to space ====================================================================== FAIL: testCreation (tests.unittests.UnitTestBB) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 302, in testCreation self.assertEqual(bb_defined.left, -10) AssertionError: 0.0 != -10 ====================================================================== FAIL: testMethods (tests.unittests.UnitTestBB) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 313, in testMethods self.assert_(bb1.intersects(bb2)) AssertionError ====================================================================== FAIL: test (tests.unittests.UnitTestBody) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 22, in test self.assertEqual(b.mass, 10) AssertionError: 1.4044477616111843e+306 != 10 ====================================================================== FAIL: testConversion (tests.unittests.UnitTestBody) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 30, in testConversion self.assertEqual(b.local_to_world((1,1)), Vec2d(11,21)) AssertionError: Vec2d(1.0, 0.0) != Vec2d(11.0, 21.0) ====================================================================== FAIL: testPositonFunction (tests.unittests.UnitTestBody) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 42, in testPositonFunction self.assertEqual(b.position.y, 10) AssertionError: 0.0 != 10 ====================================================================== FAIL: testVelocityFunction (tests.unittests.UnitTestBody) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 61, in testVelocityFunction self.assertEqual(b.velocity.x, 5) AssertionError: 0.0078125 != 5 ====================================================================== FAIL: testDampedRotarySpring (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 251, in testDampedRotarySpring self.assertEqual(j.rest_angle, 0.4) AssertionError: 2.1219957909652723e-314 != 0.40000000000000002 ====================================================================== FAIL: testDampedSpring (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 244, in testDampedSpring self.assertEqual(j.rest_length, 7) AssertionError: 2.1258680482509163e-314 != 7 ====================================================================== FAIL: testGearJoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 271, in testGearJoint self.assertEqual(j.phase, 0.3) AssertionError: 4.0229503535403069e-314 != 0.29999999999999999 ====================================================================== FAIL: testPinJoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 221, in testPinJoint self.assertEqual(j.distance, 10) AssertionError: 8.3440269694020052e-309 != 10 ====================================================================== FAIL: testPivotjoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 238, in testPivotjoint self.assertEqual(j1.anchr1, j2.anchr2) AssertionError: Vec2d(0.0, 2.12596127251e-314) != Vec2d(2.12525096421e-314, 2.47032822921e-323) ====================================================================== FAIL: testRatchetJoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 264, in testRatchetJoint self.assertEqual(j.angle, 0.0) AssertionError: 3.395193265742062e-314 != 0.0 ====================================================================== FAIL: testRotaryLimitJoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 258, in testRotaryLimitJoint self.assertEqual(j.max, 0.2) AssertionError: 0.0 != 0.20000000000000001 ====================================================================== FAIL: testSimpleMotor (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 277, in testSimpleMotor self.assertEqual(j.rate, 0.3) AssertionError: 2.1219957909652723e-314 != 0.29999999999999999 ====================================================================== FAIL: testSlideJoint (tests.unittests.UnitTestConstraint) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 226, in testSlideJoint self.assertEqual(j.max, 12) AssertionError: 9.8813129168249309e-324 != 12 ====================================================================== FAIL: testShape (tests.unittests.UnitTestShape) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Store/Nerladdat/pymunk-0.8.9a1/tests/unittests.py", line 81, in testShape self.assert_( c.point_query((11,1)) ) AssertionError ---------------------------------------------------------------------- Ran 35 tests in 0.014s FAILED (failures=16, errors=6)

Visa signatur

Server: Hp Microserver Gen8, Xeon E3-1265V2 , 16gb RAM

Permalänk
Medlem

Lurigt. Helt klart något med 64bits python på OSX iaf, frågan är bara vad och vad jag kan göra åt det.. jag antar att inte någon av er har någon idé? Lutar nog åt att jag får ge upp osx 64bit support tyvärr

Visa signatur

AK47s for everyone! - Angry mob
Since NaN /= NaN, I think, we should decipher 'NaN' as 'Not a NaN' - Miguel Mitrofanov
(Varför är människan så benägen att tro på Gud?) Antagligen har det lönat sig och evolutionen har drivit fram sådana hjärnor. - Anon

Permalänk
Medlem
Citat:

Ursprungligen inskrivet av vb
Lurigt. Helt klart något med 64bits python på OSX iaf, frågan är bara vad och vad jag kan göra åt det.. jag antar att inte någon av er har någon idé? Lutar nog åt att jag får ge upp osx 64bit support tyvärr

Om du ser till att den kör 32bit-versionen även på x64 så borde det väl gå bra (eller?)

Permalänk
Medlem

Tyvärr tror jag inte det löser problemet, som jag skrev så kollar koden hur stor en void-pekare är (32 eller 64 bitar) och agerar baserat på det och när du körde koden tyckte den att pekaren var 64bitar stor. Då vore det konstigt om det skulle funka med kod kompilerad för 32bit? Men, man vet ju aldrig.. Om du orkar får du gärna testa med en ny version som alltid kompilerar för 32bit:
http://deepwhite.viblo.se:8050/pymunk-0.8.9a2.zip

Visa signatur

AK47s for everyone! - Angry mob
Since NaN /= NaN, I think, we should decipher 'NaN' as 'Not a NaN' - Miguel Mitrofanov
(Varför är människan så benägen att tro på Gud?) Antagligen har det lönat sig och evolutionen har drivit fram sådana hjärnor. - Anon

Permalänk
Medlem
Citat:

Ursprungligen inskrivet av vb
Tyvärr tror jag inte det löser problemet, som jag skrev så kollar koden hur stor en void-pekare är (32 eller 64 bitar) och agerar baserat på det och när du körde koden tyckte den att pekaren var 64bitar stor. Då vore det konstigt om det skulle funka med kod kompilerad för 32bit? Men, man vet ju aldrig.. Om du orkar får du gärna testa med en ny version som alltid kompilerar för 32bit:
http://deepwhite.viblo.se:8050/pymunk-0.8.9a2.zip

Det funkar ju inte, klart det blir knasigt om man gör så... tänkte lite fel