On Mon, Jul 28, 2014 at 7:50 AM, Paul C. Leopardi <[email protected]> wrote: > Hi, > I recently upgraded my PC from Kubuntu 13.04 (Raring) to 14.04 (Trusty) and > tried using the FEnICS 1.3.0 packages available via the standard repositories. > This resulted in the following error: > /home/leopardi/sync/src/python-sandbox/dolfin/dirac.py in () > 3 > 4 # mesh > ----> 5 mesh = UnitCircleMesh(16) > 6 #mesh = UnitSquareMesh(32, 32) > 7 > > /usr/lib/python2.7/dist-packages/dolfin/cpp/mesh.pyc in init(self, args) > 8258 > 8259 """ > -> 8260 _mesh.UnitCircleMesh_swiginit(self,_mesh.new_UnitCircleMesh(args)) > 8261 swig_destroy = _mesh.delete_UnitCircleMesh > 8262 UnitCircleMesh_swigregister = _mesh.UnitCircleMesh_swigregister > > RuntimeError: > [...] > *** Error: Unable to generate ellipse mesh. > *** Reason: Generation of ellipse meshes requires DOLFIN to be configured with > CGAL. > *** Where: This error was encountered inside EllipseMesh.cpp. > *** Process: 0 > > *** DOLFIN version: 1.3.0 > *** Git changeset: unknown > *** -------------------------------------------------------------------------
DOLFIN with CGAL support is not available in the packages in the official Ubuntu package archive (Kubuntu uses the same package archive AFAIK). The packages in the FEniCS PPA have DOLFIN with CGAL support. > Judging from previous responses on this site to the problem above, I concluded > that the problem I was seeing with the dolfin 1.3.0 package on Kubuntu could > best be tackled by seeing if it persists in 1.4.0. > > I then decided to use the PPA instead, which has FEnICS 1.4.0. > The attempt to install libdolfin1.4 results in the message: > > leopardi@catawba:~$ sudo apt-get install libdolfin1.4 > [sudo] password for leopardi: > Reading package lists... Done > Building dependency tree > Reading state information... Done > Some packages could not be installed. This may mean that you have > requested an impossible situation or if you are using the unstable > distribution that some required packages have not yet been created > or been moved out of Incoming. > The following information may help to resolve the situation: > > The following packages have unmet dependencies: > libdolfin1.4 : Depends: libopenmpi1.3 but it is not installable > E: Unable to correct problems, you have held broken packages. This worked for me and libdolfin1.4 depends on libopenmpi1.6, not libopenmpi1.3 as can be seen here: $ dpkg -s libdolfin1.4 | grep Depends Depends: libboost-filesystem1.54.0, libboost-iostreams1.54.0, libboost-program-options1.54.0, libboost-system1.54.0, libboost-thread1.54.0, libc6 (>= 2.14), libcgal10, libcholmod2.1.2, libgcc1 (>= 1:4.1.1), libgmp10, libgomp1 (>= 4.2.1), libhdf5-openmpi-7 (>= 1.8.7), libmpfr4 (>= 3.1.2), libopenmpi1.6, libpetsc3.4.2, libptscotch-5.1, libqtcore4 (>= 4:4.5.3), libqtgui4 (>= 4:4.5.3), libslepc3.4.2, libstdc++6 (>= 4.6), libumfpack5.6.2, libvtk5.8, libvtk5.8-qt4, libxml2 (>= 2.7.4), zlib1g (>= 1:1.1.4) However, installing libdolfin1.4 is not enough. You should upgrade all FEniCS packages after adding the FEniCS PPA. These commands should work: sudo add-apt-repository ppa:fenics-packages/fenics sudo apt-get update sudo apt-get install fenics sudo apt-get dist-upgrade Does that help? Johannes > I checked Launchpad, and libopenmpi1.3 has been deleted: > > https://launchpad.net/ubuntu/trusty/amd64/libopenmpi1.3/1.4.5-1ubuntu2 > > Is the dependency on libopenmpi1.3 critical? Can libopenmpi1.6 be used > instead? What is the recommended workaround? Do I need to install FEniCS from > source, or does someone have the 1.4.0 PPA packages working with *buntu 14.04? > > I have now installed FEniCS 1.4.0 from source, using Dorsal. > http://fenicsproject.org/download/installation_using_dorsal.html > The installation succeeded, and I still do not have libopenmpi1.3 installed. > Therefore, I don't think that this dependency is valid for Kubuntu 14.04. > > My code now produces the error message > > NameError: name 'UnitCircleMesh' is not defined > > I will try to solve this problem separately. > All the best, Paul > > > > -- > Paul Leopardi > http://www.maths.anu.edu.au/~leopardi > _______________________________________________ > 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
