Hello again Francis, You definitely should not be setting PETSC_DIR to run or upgrade Firedrake. We hadn't previously noticed that cleaning PyOP2 hit the PETSc dependency. Can you try running firedrake-install with the virtualenv active? That should ensure that PETSc is found. Regards, David On Tue, 2 Feb 2016 at 21:04 Francis Poulin <fpoulin@uwaterloo.ca> wrote:
Hello,
I am very new to firedrake and trying to install it on two machines: ubuntu and mac. I am having problems with each and thought I would start asking about the ubuntu.
running firedrake-install seemed to work. At least I didn’t notice any errors.
However, when I do an upgrade, I get that there is a problem with PETSC_DIR not being defined. Is this something that we should specify ourselves?
Thank you in advance.
Francis
firedrake/bin/pip install --no-deps --ignore-installed ffc/ Processing ./ffc Installing collected packages: FFC Running setup.py install for FFC ... done Successfully installed FFC-1.7.0.dev0 Cleaning PyOP2 Error: Could not find PETSc library.
Set the environment variable PETSC_DIR to your local PETSc base directory or install PETSc from PyPI: pip install petsc Traceback (most recent call last): File "firedrake/bin/firedrake-update", line 777, in <module> clean(p) File "firedrake/bin/firedrake-update", line 438, in clean check_call(["python", "setup.py", "clean"]) File "firedrake/bin/firedrake-update", line 182, in check_call subprocess.check_call(arguments) File "/usr/lib/python2.7/subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['python', 'setup.py', 'clean']' returned non-zero exit status 1
------------------ Francis Poulin Associate Professor Department of Applied Mathematics University of Waterloo
email: fpoulin@uwaterloo.ca Web: http://www.math.uwaterloo.ca/~fpoulin/ Telephone: +1 519 888 4567 x32637