On Fri, Jul 11, 2014 at 8:39 PM, John Young <[email protected]> wrote: > Hello, > > I have an x86_64 machine running openSUSE 13.1 with Python 2.7 > and I am trying to use python-dolfin, but I am getting an error: > > frodo{young}% python > Python 2.7.6 (default, Nov 21 2013, 15:55:38) [GCC] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> from dolfin import * > > --------------------------------------------------- > DOLFIN runtime dependency is not met. > Install the following python module: 'ffc' > and make sure its location is listed in PYTHONPATH. > --------------------------------------------------- > > But python-FFC is in fact installed (and so is dolfin): > > frodo{young}% rpm -qa | grep python-FFC > python-FFC-1.3.0-5.4.x86_64 > > frodo{young}% rpm -qa | grep dolfin | sort > dolfin-1.3.0-2.21.x86_64 > dolfin-devel-1.3.0-2.21.x86_64 > libdolfin1_3-1.3.0-2.21.x86_64 > python-dolfin-1.3.0-2.21.x86_64 > python-dolfin_utils-1.3.0-2.21.noarch > > > I have googled (is that really a word?) around on the network > and found other folks who have seen the same error message, > but their proposed fixes do not seem to help. I am guessing > that I have some sort of incompatibility with some dependency, > but I have not been able to find it so far. > > If I try to import ffc directly, I get a different error: > > frodo{young}% python > Python 2.7.6 (default, Nov 21 2013, 15:55:38) [GCC] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> import ffc > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib64/python2.7/site-packages/ffc/__init__.py", line 18, in > <module> > from ffc.compiler import compile_form, compile_element > File "/usr/lib64/python2.7/site-packages/ffc/compiler.py", line 127, in > <module> > from ffc.analysis import analyze_forms, analyze_elements > File "/usr/lib64/python2.7/site-packages/ffc/analysis.py", line 43, in > <module> > from ffc.quadratureelement import default_quadrature_degree > File "/usr/lib64/python2.7/site-packages/ffc/quadratureelement.py", line > 136, in <module> > from ffc.fiatinterface import reference_cell > File "/usr/lib64/python2.7/site-packages/ffc/fiatinterface.py", line 43, in > <module> > from ufl.geometry import cellname2dim > ImportError: cannot import name cellname2dim >>>> > > So it might appear that ufl.geometry is involved, but I have > not yet found the problem. Has anyone else seen this? Any > suggestions?
It looks like there is something wrong with your installation. You might want to try reinstalling the packages or perhaps contact the package creator Sebastien Corot (see http://fenicsproject.org/download/contributed_packages.html#opensuse). BTW, it looks like the latest stable FEniCS release (1.4) is not available as a package for openSUSE (only 1.3). Until 1.4 is packaged for openSUSE, you might want to try out the new Vagrant based installation. Instructions are available at https://bitbucket.org/garth-wells/fenics-virtual. Johannes _______________________________________________ fenics-support mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics-support
