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

ImportError while Building FEniCS from source: No module named 'ffc'

+1 vote

Hello, Everyone.

I am trying to build and install FEniCS from source using following stepts from fenics website:
git clone git@bitbucket.org:fenics-project/fiat
git clone git@bitbucket.org:fenics-project/instant
git clone git@bitbucket.org:fenics-project/dijitso
git clone git@bitbucket.org:fenics-project/ufl
git clone git@bitbucket.org:fenics-project/ffc
git clone git@bitbucket.org:fenics-project/dolfin
git clone git@bitbucket.org:fenics-project/mshr
cd fiat && pip3 install .
cd instant && pip3 install .
cd dijitso && pip3 install .
cd ufl && pip3 install .
cd ffc && pip3 install .
cd dolfin && mkdir build && cd build && cmake .. && make install
cd mshr && mkdir build && cd build && cmake .. && make install

Everything works great before dolfin installation step
at "cd dolfin && mkdir build && cd build && cmake .."
I get the following error at

  1. Generation of form files
    failed:

    Traceback (most recent call last):

    File "/Users/ajit/Downloads/SOFTWAREs/fenicsSource/dolfin/cmake/scripts/generate-form-files.py",
    

    line 22, in
    import ffc

    ImportError: No module named 'ffc'

I have installed all other dependencies packages like Boost, Eigen3, SWIG etc.
Any suggestion?

Thanks!

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

1 Answer

0 votes

Have you tried to see if you can use ffc?

python3 -c "import ffc"

answered Jul 10, 2017 by chris_richardson FEniCS Expert (31,740 points)

Hello Chris, Thanks for your answer.

I can't use ffc. Executing the suggested command gives the following:

$ python3 -c "import ffc"
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named 'ffc'

Does anyone have any suggestion? I am still facing the same issue.

...