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). HTH, Florian
Thanks,
Anna.
On 19 Dec 2014, at 10:36, Fabio Luporini <fabilupo@gmail.com<mailto:fabilupo@gmail.com>> wrote:
Some modules are still looking for ast_base which in the new version of COFFEE has a different name. This may be due to some packages that still need be updated. Could be ffc, pyop2, or firedrake; are you sure you've updated and reinstalled all of these packages?
If you run python and try : from coffee import base, what does it say?
Thanks
-- Fabio
Sent from my iPhone
On 19/dic/2014, at 10:20, Anna Kalogirou <A.Kalogirou@leeds.ac.uk<mailto:A.Kalogirou@leeds.ac.uk>> wrote:
I already installed COFFEE and updated PyOP2, so now there are no COFFEE leftovers in the PyOP2/pyop2 directory...
On 19 Dec 2014, at 10:16, David Ham <David.Ham@imperial.ac.uk<mailto:David.Ham@imperial.ac.uk><mailto:David.Ham@imperial.ac.uk>> wrote:
Dear Anna,
My first guess is that you are seeing exactly the same error as Colin so the same solution should apply.
Basically, COFFEE is now a separate package. This means you need to install the COFFEE package and remove any left over COFFEE files from your PyOP2 repository.
You can install COFFEE with:
sudo pip install git+https://github.com/coneoproject/COFFEE.git
and you can remove any leftovers by typing the following in the PyOP2/pyop2 directory:
rm -r coffee
Regards,
David
On 19 December 2014 at 10:09, Anna Kalogirou <A.Kalogirou@leeds.ac.uk<mailto:A.Kalogirou@leeds.ac.uk><mailto:A.Kalogirou@leeds.ac.uk>> wrote: Hi all,
I just tried to update firedrake on my laptop (including the coffee installation), and get similar errors as Colin did a few weeks ago. It seems that there is no module named coffee.ast_base. Colin, how did you fix the problem after all?
Thank you.
Best,
Anna.