ufl team mailing list archive
-
ufl team
-
Mailing list archive
-
Message #01856
Re: Strange import error
extract_sub_elements is simply not imported in ufl/algorithms/__init__.py.
Martin
On 2 May 2011 09:29, Anders Logg <logg@xxxxxxxxx> wrote:
> I'm experimenting with the element extraction/auto-select in FFC. When
> I do
>
> from ufl.algorithms import extract_sub_elements
>
> inside ffc.analysis, I get
>
> cannot import name extract_sub_elements
> Traceback (most recent call last):
> File "test.py", line 4, in <module>
> from dolfin import *
> File
> "/home/logg/scratch/src/dolfin/local/lib/python2.6/site-packages/dolfin/__init__.py",
> line 28, in <module>
> from dolfin.common import *
> File
> "/home/logg/scratch/src/dolfin/local/lib/python2.6/site-packages/dolfin/common/__init__.py",
> line 2, in <module>
> from dolfin.common.globalparameters import *
> File
> "/home/logg/scratch/src/dolfin/local/lib/python2.6/site-packages/dolfin/common/globalparameters.py",
> line 24, in <module>
> raise RuntimeError, "Could not import %s form compiler." %
> form_compiler_name
> RuntimeError: Could not import ffc form compiler.
>
> It works fine to import extract_elements. It also works fine if I do
>
> from ufl.algorithm.analysis import extract_sub_elements
>
> Strange? Could it have anything to do with analysis.py existing in
> both FFC and UFL?
>
> --
> Anders
>
> _______________________________________________
> Mailing list: https://launchpad.net/~ufl
> Post to : ufl@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ufl
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References