The problem is that UFC was built with SWIG 2.0.11, while DOLFIN was
built with 2.0.12, see the build log:

https://launchpadlibrarian.net/185724769/buildlog_ubuntu-utopic-amd64.dolfin_1.4.0%2Bdfsg-4_UPLOADING.txt.gz

The fix is to use the FEniCS PPA, which also has the latest stable release.

Johannes

On Mon, Mar 30, 2015 at 5:12 PM, Garth N. Wells <[email protected]> wrote:
> I've seen the below error message a load of times on the mailing list,
> but trying the Ubuntu package for this first time I get it too. What's
> wrong with the package (Ubuntu 14.10)?
>
> Garth
>
>
> Traceback (most recent call last):
>
>   File "demo_cahn-hilliard.py", line 27, in <module>
>
>     from dolfin import *
>
>   File "/usr/lib/python2.7/dist-packages/dolfin/__init__.py", line 16,
> in <module>
>
>     import cpp
>
>   File "/usr/lib/python2.7/dist-packages/dolfin/cpp/__init__.py", line
> 42, in <module>
>
>     exec("import %s" % module_name)
>
>   File "<string>", line 1, in <module>
>
> ImportError: No module named common
> _______________________________________________
> fenics-support mailing list
> [email protected]
> http://fenicsproject.org/mailman/listinfo/fenics-support
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to