Try switching to the dev version of FEniCS - the dev version of FIAT no longer depends on ScientificPython (it uses sympy instead).

Garth

On Thu, 9 Oct, 2014 at 3:05 PM, Bisotti M. <[email protected]> wrote:
Hi,

upgrading to numpy 1.9 on my Ubuntu 14.04 machine breaks dolfin.
It looks like FIAT imports ScientificPython, which imports oldnumeric from numpy, which was removed in version 1.9. Worse, this won’t be dealt with on the ScientificPython side of things [1]. Downgrading to numpy 1.8.2 is a workaround, but do you have any long-term ideas on how to deal with this?

Before the upgrade:

In [1]: import numpy
In [2]: numpy.__version__
Out[2]: '1.8.2'
In [3]: import dolfin
In [4]: dolfin.__version__
Out[4]: '1.4.0'

After the upgrade:

In [1]: import numpy
In [2]: numpy.__version__
Out[2]: '1.9.0'
In [3]: import dolfin
---------------------------------------------------------------------------
Exception Traceback (most recent call last)
<ipython-input-3-7d9b2153bc0b> in <module>()
----> 1 import dolfin

[… SNIP -> full error message at http://pastebin.com/4KXFB9Jf]

/usr/lib/python2.7/dist-packages/FIAT/expansions.py in <module>()
32 Unable to import the Python Scientific module required by FIAT.
     33 Consider installing the package python-scientific.
---> 34 """)
     35
     36 def xi_triangle( eta ):

Exception: Unable to import the Python Scientific module required by FIAT.
Consider installing the package python-scientific.

The error might not manifest itself if there still are *.pyc files in the numpy/oldnumeric directory.

Kind regards,
Marc-Antonio

[1] https://bitbucket.org/khinsen/scientificpython/issue/13/numpy-19-has-dropped-support-for
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to