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?
-- 

                                                JY
------------------------------------------------------------
John E. Young                           NASA LaRC B1148/R226
Analytical Services and Materials, Inc.       (757) 864-8659
'All ideas and opinions expressed in this communication are
those of the author alone and do not necessarily reflect the
ideas and opinions of anyone else.'

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

Reply via email to