← Back to team overview

dolfin team mailing list archive

Re: UFC Python wrapper location change?

 

On Fri, 2010-08-20 at 11:56 +0200, Anders Logg wrote:
> On Fri, Aug 20, 2010 at 10:54:04AM +0100, Garth N. Wells wrote:
> > I'm running into a Python error (below), which I suspect is due to the
> > relocation of the UFC Python module (now in its own subdirectory). Do I
> > need to add
> >
> >     from ufc import *
> >
> > somewhere?
> >
> > Garth
> >
> > Traceback (most recent call last):
> >   File "demo.py", line 20, in <module>
> >     from dolfin import *
> >   File
> > "/home/garth/Work/FEniCS/lib/python2.6/site-packages/dolfin/__init__.py", line 13, in <module>
> >     import dolfin.cpp as cpp
> >   File
> > "/home/garth/Work/FEniCS/lib/python2.6/site-packages/dolfin/cpp.py",
> > line 8902, in <module>
> >     class GenericFunction(ufc.function,Variable):
> > AttributeError: 'module' object has no attribute 'function'
> 
> Looks like a missing __init__.py in the ufc directory, but I thought
> that was added?
> 

It's present on my machine.

> --
> Anders
> 
> PS: Will be offline for a few hours. Things building fine on my Lucid
> machine so far.

Make sure that you clean out any pkg-config and old versions for UFC.

Garth





Follow ups

References