I recently tried to update FEniCS and I'm having some trouble getting FFC to work. I have updated all of FFC's dependencies (e.g., FIAT, UFL, ect. ...). I then uninstalled FFC and tried to reinstall (after doing a git pull) using
sudo -H pip install . --user
I found the -H and --user options were necessary to get the installer to run. I get the result:
Processing /Users/andrewdavis/software/fenics/ffc
Requirement already satisfied: numpy in /Library/Python/2.7/site-packages (from FFC==2017.1.0.dev0)
Requirement already satisfied: six in /Library/Python/2.7/site-packages (from FFC==2017.1.0.dev0)
Requirement already satisfied: fiat==2017.1.0.dev0 in /Library/Python/2.7/site-packages (from FFC==2017.1.0.dev0)
Requirement already satisfied: ufl==2017.1.0.dev0 in /private/var/root/Library/Python/2.7/lib/python/site-packages (from FFC==2017.1.0.dev0)
Requirement already satisfied: dijitso==2017.1.0.dev0 in /Library/Python/2.7/site-packages/dijitso-2017.1.0.dev0-py2.7.egg (from FFC==2017.1.0.dev0)
Requirement already satisfied: sympy in /Library/Python/2.7/site-packages/sympy-1.0-py2.7.egg (from fiat==2017.1.0.dev0->FFC==2017.1.0.dev0)
Requirement already satisfied: subprocess32 in /Library/Python/2.7/site-packages (from dijitso==2017.1.0.dev0->FFC==2017.1.0.dev0)
Requirement already satisfied: mpmath>=0.19 in /Library/Python/2.7/site-packages/mpmath-0.19-py2.7.egg (from sympy->fiat==2017.1.0.dev0->FFC==2017.1.0.dev0)
Installing collected packages: FFC
Running setup.py install for FFC ... done
Successfully installed FFC-2017.1.0.dev0
However, when I try to run cmake for Dolfin I get the error message:
CMake Error at CMakeLists.txt:936 (message):
Generation of form files failed:
Traceback (most recent call last):
File "/Users/andrewdavis/software/fenics/dolfin/cmake/scripts/generate-form-files.py", line 22, in <module>
import ffc
ImportError: No module named ffc
Similarly, when I run
ffc -l dolfin Model.ufl
where Model.ufl used to work fine with FFC, I get the error
-bash: ffc: command not found
My OS is Mac 10.12.2 --- does anyone know what is wrong?