Hello, I'm trying to install dolfin for Python 3.5. I already installed FEniCS following the instructions for "FEniCS on Ubuntu":
sudo add-apt-repository ppa:fenics-packages/fenics
sudo apt-get update
sudo apt-get install --no-install-recommends fenics
sudo apt-get dist-upgrade
On Python 2.7 everything is fine now:
$ python -c "import dolfin; print dolfin.__version__"
2016.2.0
Because it's not clear to me how to install the dolfin package for Python 3 I tried building it from source:
mkdir build
cd build
cmake ..
make install
Without specifying a specific Python version the cmake ..
command already raised an error:
-- Generating form files in demo, test and bench directories. May take some time...
-- ----------------------------------------------------------------------------------------
CMake Error at CMakeLists.txt:924 (message):
Generation of form files failed:
Traceback (most recent call last):
File "/home/dominik/Downloads/dolfin/cmake/scripts/generate-form-files.py", line 22, in <module>
import ffc
ImportError: No module named 'ffc'
How can I install this package? Also before that it already complained about a missing package ply
which I could install from pypi
. Is there a way to install all the requirements for dolfin
? The repo doesn't contain a requirements.txt
nor a setup.py
. Note that I have installed FEniCS on Ubuntu already.