On Mon, 2009-09-07 at 21:48 -0400, Mike Atkins wrote:
>
>
> On Mon, Sep 7, 2009 at 12:37 PM, osman <[email protected]> wrote:
>
> Hi,
> I have just installed FiPy using 2.0.2 sources and doing
> "python
> setup.py install". No errors were reported. This installed
> fipy
> in /usr/local/lib/python2.6/dist-packages. Now I tried the
> tests using
> python setup.py test
> This resulted in
....
>
> I get a segfault when I run this test as well. It seems to happen when
> solve/sweep is called with certain solvers, so my guess is there is
> something wrong with pysparse we have. I installed the pysparse
> package that was in the Debian Lenny repository, and since ubuntu is
> based on Debian, I'll bet we are using the same package(1.01-5) for
> pysparse. That's my idea, but I've no idea on fixing it.
>
OK. Thanks for the info Mike. I have two machines, and this one 64 bit
AMD with 64 bit ubuntu. I had the same problem as in the 32 bit laptop.
I just deleted /usr/lib/python2.6/dist-packages/pysparse* and checked
out svn version of pysparse and installed it. Now I only get 3 failures
out of 476! I first tried doing apt-get remove but it could not find
any. I must have intalled it 2 years ago without the package manager.
======================================================================
FAIL: Doctest:
fipy.tools.dimensions.physicalField.PhysicalField.getsctype
----------------------------------------------------------------------
Traceback (most recent call
last):
File "/usr/lib/python2.6/doctest.py", line 2145, in
runTest
raise
self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
fipy.tools.dimensions.physicalField.PhysicalField.getsctype
File "/home/osman/FiPy-2.0.2/fipy/tools/dimensions/physicalField.py",
line 902, in getsctype
----------------------------------------------------------------------
File "/home/osman/FiPy-2.0.2/fipy/tools/dimensions/physicalField.py",
line 907, in
fipy.tools.dimensions.physicalField.PhysicalField.getsctype
Failed
example:
PhysicalField(1,
'm').getsctype()
Expected:
<type
'numpy.int32'>
Got:
<type
'numpy.int64'>
======================================================================
FAIL: Doctest: fipy.variables.variable.Variable.getsctype
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 2145, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
fipy.variables.variable.Variable.getsctype
File "/home/osman/FiPy-2.0.2/fipy/variables/variable.py", line 641, in
getsctype
----------------------------------------------------------------------
File "/home/osman/FiPy-2.0.2/fipy/variables/variable.py", line 646, in
fipy.variables.variable.Variable.getsctype
Failed example:
Variable(1).getsctype()
Expected:
<type 'numpy.int32'>
Got:
<type 'numpy.int64'>
======================================================================
FAIL: Doctest:
fipy.variables.cellVariable.CellVariable._OperatorVariableClass
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 2145, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
fipy.variables.cellVariable.CellVariable._OperatorVariableClass
File "/home/osman/FiPy-2.0.2/fipy/variables/cellVariable.py", line 77,
in _OperatorVariableClass
----------------------------------------------------------------------
File "/home/osman/FiPy-2.0.2/fipy/variables/cellVariable.py", line 87,
in fipy.variables.cellVariable.CellVariable._OperatorVariableClass
Failed example:
b.getsctype()
Expected:
<type 'numpy.int32'>
Got:
<type 'numpy.int64'>
----------------------------------------------------------------------
Ran 476 tests in 268.449s
FAILED (failures=3)
I'll check the same fix on the 32 bit laptop next.
Osman