dolfin not working in ubuntu 11.10 oneiric ocelot

Asked by Neeraj Kumar

I was using FEniCS using Ubuntu 11.04 natty & everything was working fine. I recently did a clean install of ubuntu 11.10 oneiric ocelot & tried to add fenics ppa but it shows import warning:

w: Failed to fetch http://ppa.launchpad.net/fenics/ppa/ubuntu/dists/oneiric/main/source/Sources 404 Not Found

I anyway did an apt-get-update without the fenics ppa. I installed fenics (it shows 11.05.2 for fenics & 0.9.11.1 for dolfin-bin) with all its dependencies from synaptic package manager.
But when I open a python terminal & try to import dolfin I get following error:

>>> from dolfin import *
*** The MPI_comm_size() function was called before MPI_INIT was invoked.
*** This is disallowed by the MPI standard.
*** Your MPI job will now abort.
[neeraj-M17x:2591] Abort before MPI_INIT completed successfully; not able to guarantee that all other processes were killed!

Apparantly, fenics is not properly installed for oneiric. When can I expect ubuntu 11.10 oneiric support in fenics ppa?

thanks & regards

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Johannes Ring
Solved:
Last query:
Last reply:
Revision history for this message
Best Johannes Ring (johannr) said :
#1

I have uploaded the latest released FEniCS packages to the FEniCS PPA for Ubuntu 11.10 now and they should be available in a few hours.

Revision history for this message
Tim Berger (tim-berger) said :
#2

I have written a post about the problem here: https://answers.launchpad.net/ubuntu/+source/fenics/+question/174657

The error message I get with the installed FEniCS is:
OSError: PyDOLFIN was not compiled with the present version of swig.
Install swig version 2.0.1 or recompiled PyDOLFIN with present swig

Ubuntu 11.10 includes swig 2.0.4

Are the latest released FEniCS packages compiled with this newer swig version?

Revision history for this message
Johannes Ring (johannr) said :
#3

Tim,

I have uploaded new packages in the FEniCS PPA today that should fix this problem. Please follow the instructions on the web page to install the latest packages:

  http://fenicsproject.org/download/ubuntu_details.html#ubuntu-ppa

Revision history for this message
Neeraj Kumar (neerajkumar9583) said :
#4

Thanks a lot Johannes...this solved my problem.

Revision history for this message
Neeraj Kumar (neerajkumar9583) said :
#5

Thanks Johannes Ring, that solved my question.

Revision history for this message
Tim Berger (tim-berger) said :
#6

Yes, the update are working and the new files solved the problem. Great work! Thank you very much!

Revision history for this message
Jack Hale (jack-hale) said :
#7

Hi,

I can confirm that the new oneiric ocelot packages are working, but they don't seem to have been compiled with PyTrilinos support resulting in errors like:

File "weak_form.py", line 105, in ssss_plate
    parameters["linear_algebra_backend"] = "Epetra"
  File "/usr/lib/python2.7/dist-packages/dolfin/cpp.py", line 2020, in __setitem__
    par._assign(value)
RuntimeError: *** Error: Illegal value for parameter. Allowed values are: [PETSc, STL, uBLAS]

Any ideas?

Revision history for this message
Johannes Ring (johannr) said :
#8

Yes, I had to disable Trilinos support because of an issue with MPI, DOLFIN 1.0-beta and Trilinos. This is fixed in the development version of DOLFIN, so Trilinos will be enabled again when DOLFIN 1.0-beta2 is released, which is hopefully sometime soon.