incorrect python bindings when python2.4-dev and python2.5-dev are present
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PTools |
Confirmed
|
Medium
|
Unassigned |
Bug Description
python: 2.4 and 2.5 installed. 2.4-dev and 2.5-dev
SConstruct needs to be modified
workaround: remove python2.4-dev package
Here is the log of python unittests:
ptools/Tests$ python unittest1.py
.EEE.E.EE..EE.EE
=======
ERROR: testTranslation1 (__main_
-------
Traceback (most recent call last):
File "unittest1.py", line 82, in testTranslation1
CoM1 = self.rigid1.
ArgumentError: Python argument types in
Rigidbody.
did not match C++ signature:
FindCenter(
=======
ERROR: testTranslation2 (__main_
-------
Traceback (most recent call last):
File "unittest1.py", line 93, in testTranslation2
self.
SystemError: NULL result without error in PyObject_Call
=======
ERROR: testMinusOperator (__main_
-------
Traceback (most recent call last):
File "unittest1.py", line 18, in testMinusOperator
coo3 = self.coo1 - self.coo2
SystemError: NULL result without error in PyObject_Call
=======
ERROR: testPlusOperator (__main_
-------
Traceback (most recent call last):
File "unittest1.py", line 13, in testPlusOperator
coo3 = self.coo1 + self.coo2
SystemError: NULL result without error in PyObject_Call
=======
ERROR: testGetAtom (__main_
-------
Traceback (most recent call last):
File "unittest1.py", line 115, in testGetAtom
self.
SystemError: NULL result without error in PyObject_Call
=======
ERROR: brief explanation:
-------
Traceback (most recent call last):
File "unittest1.py", line 137, in testSetCoords
self.
SystemError: NULL result without error in PyObject_Call
=======
ERROR: testCopy (__main_
-------
Traceback (most recent call last):
File "unittest1.py", line 35, in testCopy
self.
ArgumentError: Python argument types in
Rigidbody.
did not match C++ signature:
FindCenter(
=======
ERROR: testSetAtom (__main_
-------
Traceback (most recent call last):
File "unittest1.py", line 39, in testSetAtom
atom = self.r.CopyAtom(3)
ArgumentError: Python argument types in
Rigidbody.
did not match C++ signature:
CopyAtom(
CopyAtom(
=======
ERROR: in principle GetCoords(i,co) and unsafeGetCoords
-------
Traceback (most recent call last):
File "unittest1.py", line 64, in testUnsafeGetCoords
co1 = self.r.GetCoords(i)
ArgumentError: Python argument types in
Rigidbody.
did not match C++ signature:
GetCoords(
=======
ERROR: testTransRot (__main_
-------
Traceback (most recent call last):
File "unittest1.py", line 161, in testTransRot
sup = superpose(
ArgumentError: Python argument types in
_ptools.
did not match C++ signature:
superpose(
-------
Ran 16 tests in 0.129s
FAILED (errors=10)
Changed in ptools: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
same problem when 2.5-dev and 2.6-dev debian packages are installed.
The default python version used for running "scons" should probably be picked for including python.h and the linking phase.