This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Problems updating FFC

0 votes

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?

asked Jan 17, 2017 by davisad FEniCS Novice (470 points)

So I managed to get ffc working from the command line by changing the pip install script to

sudo -H pip install --install-option '--install-data=/usr/local' .

However, when I run cmake on Dolfin I get the error:

-- The following REQUIRED packages have not been found:

 * UFC (required version >= 2017.1) , Unified language for form-compilers (part of FFC) , <https://bitbucket.org/fenics-project/ffc>

CMake Error at dolfin/CMakeLists.txt:61 (set_target_properties):
  set_target_properties called with illegal arguments, maybe missing a
 PROPERTIES specifier?

Does anyone know what I'm doing wrong?

It looks like I'm not the only one with this problem:

https://bitbucket.org/fenics-project/dolfin/issues/730/dolfin-build-failure

Does anyone have a solution?

1 Answer

0 votes

I encountered the same problem while building dolfin. Have you found the solution yet?

answered Jul 8, 2017 by aerojit FEniCS Novice (170 points)

I think I did something super crude like going into the dolfin cmake file and hard coding the directory for ffc into it ...

...