Hello,

I am running Ubuntu 13.04 (raring) and I have installed fenics from the
usual repositories, and also including
http://ppa.launchpad.net/fenics-packages/fenics/ubuntu/

I used dolfin-get-demos from the command line to get the demos and tried to
run
~/dolfin-demos/documented/poisson/python/poisson.py
but I get the following error message.

[python]% python demo_poisson.py
Traceback (most recent call last):
  File "demo_poisson.py", line 37, 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>
  File "/usr/lib/python2.7/dist-packages/dolfin/cpp/la.py", line 30, in
<module>
    _la = swig_import_helper()
  File "/usr/lib/python2.7/dist-packages/dolfin/cpp/la.py", line 26, in
swig_import_helper
    _mod = imp.load_module('_la', fp, pathname, description)
ImportError: No module named petsc4py.PETSc

Using "find" on my system uncovers only two files with names like that:
/usr/share/pyshared/petsc4py/include/petsc4py/petsc4py.PETSc_api.h
/usr/share/pyshared/petsc4py/include/petsc4py/petsc4py.PETSc.h
so I don't know if my system is missing something or if I have not
configured something correctly.

Would you please offer me some hints on how to get this demo going?


-- 
Mike Sussman
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to