<div dir="ltr"><div><div><div><div><div><div>Hi everyone,<br><br></div>As the title says, I have an issue regarding all three. Not sure which mailing to post this to but i figured somebody here may help.<br><br></div>I was attempting to install Firedrake on my Ubuntu PC, so far it has not worked yet. However, after my failed attempt, i tried to run some of my old FEniCS programs, and something within the Dolfin library has screwed up. Below is the error:<br><br>Traceback (most recent call last):<br>  File "Idealized_reservoir.py", line 8, in <module><br>    from dolfin import *<br>  File "/usr/lib/python2.7/dist-packages/dolfin/__init__.py", line 16, in <module><br>    from . import cpp<br>  File "/usr/lib/python2.7/dist-packages/dolfin/cpp/__init__.py", line 42, in <module><br>    exec("from . import %s" % module_name)<br>  File "<string>", line 1, in <module><br>  File "/usr/lib/python2.7/dist-packages/dolfin/cpp/common.py", line 32, in <module><br>    _common = swig_import_helper()<br>  File "/usr/lib/python2.7/dist-packages/dolfin/cpp/common.py", line 28, in swig_import_helper<br>    _mod = imp.load_module('_common', fp, pathname, description)<br>  File "/usr/local/lib/python2.7/dist-packages/petsc4py/PETSc.py", line 4, in <module><br>    PETSc._initialize()<br>  File "PETSc/PETSc.pyx", line 407, in petsc4py.PETSc._initialize (src/petsc4py.PETSc.c:232527)<br>  File "PETSc/PETSc.pyx", line 395, in petsc4py.PETSc.register (src/petsc4py.PETSc.c:232364)<br>  File "PETSc/Object.pyx", line 257, in petsc4py.PETSc.PyPetscType_Register (src/petsc4py.PETSc.c:64906)<br>ValueError: key: 0, cannot register: <type 'petsc4py.PETSc.Partitioner'>, already registered: None<br><br></div>It seems I screwed something up when I attempted to installed petsc4py. The following command was used to install petsc4py per firedrake instructions:<br><pre><span style="font-family:arial,helvetica,sans-serif">sudo pip install git+<a href="https://bitbucket.org/mapdes/petsc4py.git@firedrake#egg=petsc4py">https://bitbucket.org/mapdes/petsc4py.git@firedrake#egg=petsc4py</a></span><br></pre>I tried uninstalling petsc4py via sudo pip uninstall but it says "Not uninstalling petsc4py at /usr/lib/pymodules/python2.7, owned by OS". I reinstalled fenics/dolfin and all of its dependencies but i still get the traceback errors above. I tried to upgrade petsc4py sudo pip install -U --no-deps ... but it says "Can't roll back petsc4py; was not uninstalled". <br><br></div>Any idea what I can do here? <br><br></div>Thanks,<br></div>Justin<br></div>