On 20 December 2014 at 07:28, Rathgeber, Florian <florian.rathgeber@imperial.ac.uk> wrote:
On 19/12/14 11:28, Anna Kalogirou wrote:
> Hi Fabio,
>
> When I write in python: from coffee import base, it has no problems, but when I write: import coffee.ast_base it tells me: No module named ast_base.

That is expected with the latest COFFEE version.

> I updated FFC and PyOP2, but not firedrake yet.

Please do that, there are a number of places where Firedrake imports
from COFFEE, which might explain the issue.

> I hope this is not a silly question, but in which directory I am supposed be in when I write “ sudo python setup.py install“ during the COFFEE installation?

That should not matter. The only instance where it could matter is if
you're on a file system where the local superuser has no write
permission (which is often the case for NFS mounted file systems).

I think the expected answer here is 'the COFFEE repository base directory'.  E.g., if you type 'git clone ....' when in /home/anna/software/, you need to type 'sudo python setup.py install' when in /home/anna/software/COFFEE/ .

HTH,
Florian

> Thanks,
>
> Anna.