On Fri, Mar 7, 2014 at 3:38 AM, Rauno Cavallaro <[email protected]> wrote: > Just to clarify, I am kind of newbie. > I installed FEniCS using the Ubuntu PPA (Stable version) and updating it. > I tried some examples and created my own cases in C++, and everything was > working file. > However, I wanted to switch to python (much easier, and I am not such a > programmer in C++) . > Unfortunately, when i tried to run a demo, I got the following error: > > >> /usr/share/dolfin/demo/documented/stokes-stabilized/python$ python >> demo_stokes-stabilized.py >> Traceback (most recent call last): >> File "demo_stokes-stabilized.py", line 32, in <module> >> from dolfin import * >> File "/usr/lib/python2.7/dist-packages/dolfin/__init__.py", line 39, in >> <module> >> from dolfin.functions import * >> File "/usr/lib/python2.7/dist-packages/dolfin/functions/__init__.py", >> line 4, in <module> >> from dolfin.functions import function >> File "/usr/lib/python2.7/dist-packages/dolfin/functions/function.py", >> line 34, in <module> >> from dolfin.functions.constant import Constant >> File "/usr/lib/python2.7/dist-packages/dolfin/functions/constant.py", >> line 29, in <module> >> import ufl.domains >> ImportError: No module named domains
It looks like you might be mixing stable and dev versions. Try to completely remove all packages from the fenics-dev PPA (they are currently broken anyway). You can do this by running the following command: sudo apt-get -y purge fenics && \ sudo apt-get -y autoremove && \ sudo rm /etc/apt/sources.list.d/fenics-packages-fenics-dev-`lsb_release -cs`.list && \ sudo apt-get update && \ sudo apt-get -y install fenics Then run "dolfin-get-demos" to copy the demos to your home directory and run the demo from there. Johannes _______________________________________________ fenics-support mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics-support
