← Back to team overview

dolfin team mailing list archive

Re: UFC Python wrapper location change?

 

On Fri, Aug 20, 2010 at 12:10 PM, Anders Logg <logg@xxxxxxxxx> wrote:
> On Fri, Aug 20, 2010 at 11:03:21AM +0100, Garth N. Wells wrote:
>> 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.
>>
>>
>> Make sure that you clean out any pkg-config and old versions for UFC.
>
> It's all installed in one directory which I just delete before
> testing.
>
> Can you give a short guide to running virtual machines for other OS on
> my Ubuntu Lucid machine? I'm thinking of testing earlier Ubuntu
> versions (+ Lucid and OS X).

For testing earlier versions of Ubuntu and Debian I would recommend
setting up a chroot environment:

  https://wiki.ubuntu.com/DebootstrapChroot

Johannes

> --
> Anders
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp
>



Follow ups

References