Re: [firedrake] borked my update
OK. How have you installed coffee (did you do pip install..?) ? Can you check your PYTHONPATH? If you do: python import coffee import coffee.base import coffee.ast_base Could you tell me the error messages you see? Thanks! -- Fabio 2014-12-06 11:17 GMT+00:00 Cotter, Colin J <colin.cotter@imperial.ac.uk>:
Hi Fabio, Thanks for your reply! I did this, but I'm still getting the same message.
all the best --cjc ------------------------------ *From:* firedrake-bounces@imperial.ac.uk [firedrake-bounces@imperial.ac.uk] on behalf of Fabio Luporini [f.luporini12@imperial.ac.uk] *Sent:* 06 December 2014 11:12
*To:* firedrake *Subject:* Re: [firedrake] borked my update
Hi Colin,
Just get rid of the .pyc files in pyop2/coffee (you can delete the folder)
-- Fabio
2014-12-06 11:07 GMT+00:00 Cotter, Colin J <colin.cotter@imperial.ac.uk>:
Oh, but I still get this message.
--cjc ------------------------------ *From:* firedrake-bounces@imperial.ac.uk [ firedrake-bounces@imperial.ac.uk] on behalf of Cotter, Colin J [ colin.cotter@imperial.ac.uk] *Sent:* 06 December 2014 11:02 *To:* firedrake *Subject:* Re: [firedrake] borked my update
Oh I see, COFFEE is now an independent package.
--cjc ------------------------------ *From:* firedrake-bounces@imperial.ac.uk [ firedrake-bounces@imperial.ac.uk] on behalf of Cotter, Colin J [ colin.cotter@imperial.ac.uk] *Sent:* 06 December 2014 11:01 *To:* firedrake *Subject:* [firedrake] borked my update
Dear all, I updated PyOP2, and now get:
/home/cjc1/firedrake/PyOP2/pyop2/__init__.py in <module>() 7 """ 8 ----> 9 from op2 import * 10 from version import __version__ as ver, __version_info__ # noqa: just expose 11
/home/cjc1/firedrake/PyOP2/pyop2/op2.pyc in <module>() 37 38 import backends ---> 39 import base 40 from base import READ, WRITE, RW, INC, MIN, MAX, i 41 from base import ON_BOTTOM, ON_TOP, ON_INTERIOR_FACETS, ALL
/home/cjc1/firedrake/PyOP2/pyop2/base.py in <module>() 55 from version import __version__ as version 56 ---> 57 from coffee.base import Node 58 from coffee import base as ast 59
ImportError: No module named base
What went wrong?
all the best --cjc
I checked it out from github and did "python setup.py install". This is what I'm getting: In [7]: from pyop2.op2 import base --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/cjc1/firedrake/<ipython-input-7-445e978e158f> in <module>() ----> 1 from pyop2.op2 import base /home/cjc1/firedrake/PyOP2/pyop2/__init__.py in <module>() 7 """ 8 ----> 9 from op2 import * 10 from version import __version__ as ver, __version_info__ # noqa: just expose 11 /home/cjc1/firedrake/PyOP2/pyop2/op2.py in <module>() 37 38 import backends ---> 39 import base 40 from base import READ, WRITE, RW, INC, MIN, MAX, i 41 from base import ON_BOTTOM, ON_TOP, ON_INTERIOR_FACETS, ALL /home/cjc1/firedrake/PyOP2/pyop2/base.py in <module>() 55 from version import __version__ as version 56 ---> 57 from coffee.base import Node 58 from coffee import base as ast 59 ImportError: No module named base In [8]: import coffee In [9]: import coffee.base In [10]: import coffee.ast_base --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/cjc1/firedrake/<ipython-input-10-4eacf0c12697> in <module>() ----> 1 import coffee.ast_base ImportError: No module named ast_base Here's what I've got in my pythonpath: /home/cjc1/firedrake/PyOP2:/home/cjc1/.local/lib/site-packages/ufl:/home/cjc1/.local/lib/site-packages/ffc:/home/cjc1/firedrake/COFFEE:/home/cjc1/firedrake/ufl:/home/cjc1/firedrake/ffc:/home/cjc1/firedrake/PyOP2:/home/cjc1/firedrake/firedrake: cheers --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk [firedrake-bounces@imperial.ac.uk] on behalf of Fabio Luporini [f.luporini12@imperial.ac.uk] Sent: 06 December 2014 11:28 To: firedrake Subject: Re: [firedrake] borked my update OK. How have you installed coffee (did you do pip install..?) ? Can you check your PYTHONPATH? If you do: python import coffee import coffee.base import coffee.ast_base Could you tell me the error messages you see? Thanks! -- Fabio 2014-12-06 11:17 GMT+00:00 Cotter, Colin J <colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>>: Hi Fabio, Thanks for your reply! I did this, but I'm still getting the same message. all the best --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Fabio Luporini [f.luporini12@imperial.ac.uk<mailto:f.luporini12@imperial.ac.uk>] Sent: 06 December 2014 11:12 To: firedrake Subject: Re: [firedrake] borked my update Hi Colin, Just get rid of the .pyc files in pyop2/coffee (you can delete the folder) -- Fabio 2014-12-06 11:07 GMT+00:00 Cotter, Colin J <colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>>: Oh, but I still get this message. --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Cotter, Colin J [colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>] Sent: 06 December 2014 11:02 To: firedrake Subject: Re: [firedrake] borked my update Oh I see, COFFEE is now an independent package. --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Cotter, Colin J [colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>] Sent: 06 December 2014 11:01 To: firedrake Subject: [firedrake] borked my update Dear all, I updated PyOP2, and now get: /home/cjc1/firedrake/PyOP2/pyop2/__init__.py in <module>() 7 """ 8 ----> 9 from op2 import * 10 from version import __version__ as ver, __version_info__ # noqa: just expose 11 /home/cjc1/firedrake/PyOP2/pyop2/op2.pyc in <module>() 37 38 import backends ---> 39 import base 40 from base import READ, WRITE, RW, INC, MIN, MAX, i 41 from base import ON_BOTTOM, ON_TOP, ON_INTERIOR_FACETS, ALL /home/cjc1/firedrake/PyOP2/pyop2/base.py in <module>() 55 from version import __version__ as version 56 ---> 57 from coffee.base import Node 58 from coffee import base as ast 59 ImportError: No module named base What went wrong? all the best --cjc
Hmm, I cleaned out a few .pyc files, rebuilt and now get another error, but not from COFFEE this time: In [1]: from firedrake import * --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/cjc1/firedrake/<ipython-input-1-379626444471> in <module>() ----> 1 from firedrake import * /home/cjc1/firedrake/firedrake/firedrake/__init__.py in <module>() 28 from pyop2 import op2 # noqa 29 ---> 30 from assemble import * 31 from bcs import * 32 from constant import * /home/cjc1/firedrake/firedrake/firedrake/assemble.py in <module>() 6 from pyop2.profiling import timed_region, profile 7 ----> 8 import assembly_cache 9 import assemble_expressions 10 import ffc_interface /home/cjc1/firedrake/firedrake/firedrake/assembly_cache.py in <module>() 38 from pyop2.mpi import MPI, _MPI 39 ---> 40 import function 41 import matrix 42 from parameters import parameters /home/cjc1/firedrake/firedrake/firedrake/function.py in <module>() 7 from pyop2 import op2 8 ----> 9 import assemble_expressions 10 import expression as expression_t 11 import functionspace /home/cjc1/firedrake/firedrake/firedrake/assemble_expressions.py in <module>() 3 from ufl.constantvalue import ConstantValue, Zero, IntValue 4 from ufl.indexing import MultiIndex ----> 5 from ufl.core.operator import Operator 6 from ufl.mathfunctions import MathFunction 7 from ufl.core.ufl_type import ufl_type as orig_ufl_type ImportError: No module named core.operator --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk [firedrake-bounces@imperial.ac.uk] on behalf of Cotter, Colin J [colin.cotter@imperial.ac.uk] Sent: 06 December 2014 13:48 To: firedrake Subject: Re: [firedrake] borked my update I checked it out from github and did "python setup.py install". This is what I'm getting: In [7]: from pyop2.op2 import base --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/cjc1/firedrake/<ipython-input-7-445e978e158f> in <module>() ----> 1 from pyop2.op2 import base /home/cjc1/firedrake/PyOP2/pyop2/__init__.py in <module>() 7 """ 8 ----> 9 from op2 import * 10 from version import __version__ as ver, __version_info__ # noqa: just expose 11 /home/cjc1/firedrake/PyOP2/pyop2/op2.py in <module>() 37 38 import backends ---> 39 import base 40 from base import READ, WRITE, RW, INC, MIN, MAX, i 41 from base import ON_BOTTOM, ON_TOP, ON_INTERIOR_FACETS, ALL /home/cjc1/firedrake/PyOP2/pyop2/base.py in <module>() 55 from version import __version__ as version 56 ---> 57 from coffee.base import Node 58 from coffee import base as ast 59 ImportError: No module named base In [8]: import coffee In [9]: import coffee.base In [10]: import coffee.ast_base --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/cjc1/firedrake/<ipython-input-10-4eacf0c12697> in <module>() ----> 1 import coffee.ast_base ImportError: No module named ast_base Here's what I've got in my pythonpath: /home/cjc1/firedrake/PyOP2:/home/cjc1/.local/lib/site-packages/ufl:/home/cjc1/.local/lib/site-packages/ffc:/home/cjc1/firedrake/COFFEE:/home/cjc1/firedrake/ufl:/home/cjc1/firedrake/ffc:/home/cjc1/firedrake/PyOP2:/home/cjc1/firedrake/firedrake: cheers --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk [firedrake-bounces@imperial.ac.uk] on behalf of Fabio Luporini [f.luporini12@imperial.ac.uk] Sent: 06 December 2014 11:28 To: firedrake Subject: Re: [firedrake] borked my update OK. How have you installed coffee (did you do pip install..?) ? Can you check your PYTHONPATH? If you do: python import coffee import coffee.base import coffee.ast_base Could you tell me the error messages you see? Thanks! -- Fabio 2014-12-06 11:17 GMT+00:00 Cotter, Colin J <colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>>: Hi Fabio, Thanks for your reply! I did this, but I'm still getting the same message. all the best --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Fabio Luporini [f.luporini12@imperial.ac.uk<mailto:f.luporini12@imperial.ac.uk>] Sent: 06 December 2014 11:12 To: firedrake Subject: Re: [firedrake] borked my update Hi Colin, Just get rid of the .pyc files in pyop2/coffee (you can delete the folder) -- Fabio 2014-12-06 11:07 GMT+00:00 Cotter, Colin J <colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>>: Oh, but I still get this message. --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Cotter, Colin J [colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>] Sent: 06 December 2014 11:02 To: firedrake Subject: Re: [firedrake] borked my update Oh I see, COFFEE is now an independent package. --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Cotter, Colin J [colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>] Sent: 06 December 2014 11:01 To: firedrake Subject: [firedrake] borked my update Dear all, I updated PyOP2, and now get: /home/cjc1/firedrake/PyOP2/pyop2/__init__.py in <module>() 7 """ 8 ----> 9 from op2 import * 10 from version import __version__ as ver, __version_info__ # noqa: just expose 11 /home/cjc1/firedrake/PyOP2/pyop2/op2.pyc in <module>() 37 38 import backends ---> 39 import base 40 from base import READ, WRITE, RW, INC, MIN, MAX, i 41 from base import ON_BOTTOM, ON_TOP, ON_INTERIOR_FACETS, ALL /home/cjc1/firedrake/PyOP2/pyop2/base.py in <module>() 55 from version import __version__ as version 56 ---> 57 from coffee.base import Node 58 from coffee import base as ast 59 ImportError: No module named base What went wrong? all the best --cjc
Ah, finally I see. This laptop is a weird mixture of checked versions of some things, and pip installed other things... --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk [firedrake-bounces@imperial.ac.uk] on behalf of Cotter, Colin J [colin.cotter@imperial.ac.uk] Sent: 06 December 2014 14:01 To: firedrake Subject: Re: [firedrake] borked my update Hmm, I cleaned out a few .pyc files, rebuilt and now get another error, but not from COFFEE this time: In [1]: from firedrake import * --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/cjc1/firedrake/<ipython-input-1-379626444471> in <module>() ----> 1 from firedrake import * /home/cjc1/firedrake/firedrake/firedrake/__init__.py in <module>() 28 from pyop2 import op2 # noqa 29 ---> 30 from assemble import * 31 from bcs import * 32 from constant import * /home/cjc1/firedrake/firedrake/firedrake/assemble.py in <module>() 6 from pyop2.profiling import timed_region, profile 7 ----> 8 import assembly_cache 9 import assemble_expressions 10 import ffc_interface /home/cjc1/firedrake/firedrake/firedrake/assembly_cache.py in <module>() 38 from pyop2.mpi import MPI, _MPI 39 ---> 40 import function 41 import matrix 42 from parameters import parameters /home/cjc1/firedrake/firedrake/firedrake/function.py in <module>() 7 from pyop2 import op2 8 ----> 9 import assemble_expressions 10 import expression as expression_t 11 import functionspace /home/cjc1/firedrake/firedrake/firedrake/assemble_expressions.py in <module>() 3 from ufl.constantvalue import ConstantValue, Zero, IntValue 4 from ufl.indexing import MultiIndex ----> 5 from ufl.core.operator import Operator 6 from ufl.mathfunctions import MathFunction 7 from ufl.core.ufl_type import ufl_type as orig_ufl_type ImportError: No module named core.operator --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk [firedrake-bounces@imperial.ac.uk] on behalf of Cotter, Colin J [colin.cotter@imperial.ac.uk] Sent: 06 December 2014 13:48 To: firedrake Subject: Re: [firedrake] borked my update I checked it out from github and did "python setup.py install". This is what I'm getting: In [7]: from pyop2.op2 import base --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/cjc1/firedrake/<ipython-input-7-445e978e158f> in <module>() ----> 1 from pyop2.op2 import base /home/cjc1/firedrake/PyOP2/pyop2/__init__.py in <module>() 7 """ 8 ----> 9 from op2 import * 10 from version import __version__ as ver, __version_info__ # noqa: just expose 11 /home/cjc1/firedrake/PyOP2/pyop2/op2.py in <module>() 37 38 import backends ---> 39 import base 40 from base import READ, WRITE, RW, INC, MIN, MAX, i 41 from base import ON_BOTTOM, ON_TOP, ON_INTERIOR_FACETS, ALL /home/cjc1/firedrake/PyOP2/pyop2/base.py in <module>() 55 from version import __version__ as version 56 ---> 57 from coffee.base import Node 58 from coffee import base as ast 59 ImportError: No module named base In [8]: import coffee In [9]: import coffee.base In [10]: import coffee.ast_base --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/cjc1/firedrake/<ipython-input-10-4eacf0c12697> in <module>() ----> 1 import coffee.ast_base ImportError: No module named ast_base Here's what I've got in my pythonpath: /home/cjc1/firedrake/PyOP2:/home/cjc1/.local/lib/site-packages/ufl:/home/cjc1/.local/lib/site-packages/ffc:/home/cjc1/firedrake/COFFEE:/home/cjc1/firedrake/ufl:/home/cjc1/firedrake/ffc:/home/cjc1/firedrake/PyOP2:/home/cjc1/firedrake/firedrake: cheers --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk [firedrake-bounces@imperial.ac.uk] on behalf of Fabio Luporini [f.luporini12@imperial.ac.uk] Sent: 06 December 2014 11:28 To: firedrake Subject: Re: [firedrake] borked my update OK. How have you installed coffee (did you do pip install..?) ? Can you check your PYTHONPATH? If you do: python import coffee import coffee.base import coffee.ast_base Could you tell me the error messages you see? Thanks! -- Fabio 2014-12-06 11:17 GMT+00:00 Cotter, Colin J <colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>>: Hi Fabio, Thanks for your reply! I did this, but I'm still getting the same message. all the best --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Fabio Luporini [f.luporini12@imperial.ac.uk<mailto:f.luporini12@imperial.ac.uk>] Sent: 06 December 2014 11:12 To: firedrake Subject: Re: [firedrake] borked my update Hi Colin, Just get rid of the .pyc files in pyop2/coffee (you can delete the folder) -- Fabio 2014-12-06 11:07 GMT+00:00 Cotter, Colin J <colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>>: Oh, but I still get this message. --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Cotter, Colin J [colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>] Sent: 06 December 2014 11:02 To: firedrake Subject: Re: [firedrake] borked my update Oh I see, COFFEE is now an independent package. --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Cotter, Colin J [colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>] Sent: 06 December 2014 11:01 To: firedrake Subject: [firedrake] borked my update Dear all, I updated PyOP2, and now get: /home/cjc1/firedrake/PyOP2/pyop2/__init__.py in <module>() 7 """ 8 ----> 9 from op2 import * 10 from version import __version__ as ver, __version_info__ # noqa: just expose 11 /home/cjc1/firedrake/PyOP2/pyop2/op2.pyc in <module>() 37 38 import backends ---> 39 import base 40 from base import READ, WRITE, RW, INC, MIN, MAX, i 41 from base import ON_BOTTOM, ON_TOP, ON_INTERIOR_FACETS, ALL /home/cjc1/firedrake/PyOP2/pyop2/base.py in <module>() 55 from version import __version__ as version 56 ---> 57 from coffee.base import Node 58 from coffee import base as ast 59 ImportError: No module named base What went wrong? all the best --cjc
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. On 6 Dec 2014, at 14:03, Cotter, Colin J <colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>> wrote: Ah, finally I see. This laptop is a weird mixture of checked versions of some things, and pip installed other things... --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Cotter, Colin J [colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>] Sent: 06 December 2014 14:01 To: firedrake Subject: Re: [firedrake] borked my update Hmm, I cleaned out a few .pyc files, rebuilt and now get another error, but not from COFFEE this time: In [1]: from firedrake import * --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/cjc1/firedrake/<ipython-input-1-379626444471> in <module>() ----> 1 from firedrake import * /home/cjc1/firedrake/firedrake/firedrake/__init__.py in <module>() 28 from pyop2 import op2 # noqa 29 ---> 30 from assemble import * 31 from bcs import * 32 from constant import * /home/cjc1/firedrake/firedrake/firedrake/assemble.py in <module>() 6 from pyop2.profiling import timed_region, profile 7 ----> 8 import assembly_cache 9 import assemble_expressions 10 import ffc_interface /home/cjc1/firedrake/firedrake/firedrake/assembly_cache.py in <module>() 38 from pyop2.mpi import MPI, _MPI 39 ---> 40 import function 41 import matrix 42 from parameters import parameters /home/cjc1/firedrake/firedrake/firedrake/function.py in <module>() 7 from pyop2 import op2 8 ----> 9 import assemble_expressions 10 import expression as expression_t 11 import functionspace /home/cjc1/firedrake/firedrake/firedrake/assemble_expressions.py in <module>() 3 from ufl.constantvalue import ConstantValue, Zero, IntValue 4 from ufl.indexing import MultiIndex ----> 5 from ufl.core.operator import Operator 6 from ufl.mathfunctions import MathFunction 7 from ufl.core.ufl_type import ufl_type as orig_ufl_type ImportError: No module named core.operator --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Cotter, Colin J [colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>] Sent: 06 December 2014 13:48 To: firedrake Subject: Re: [firedrake] borked my update I checked it out from github and did "python setup.py install". This is what I'm getting: In [7]: from pyop2.op2 import base --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/cjc1/firedrake/<ipython-input-7-445e978e158f> in <module>() ----> 1 from pyop2.op2 import base /home/cjc1/firedrake/PyOP2/pyop2/__init__.py in <module>() 7 """ 8 ----> 9 from op2 import * 10 from version import __version__ as ver, __version_info__ # noqa: just expose 11 /home/cjc1/firedrake/PyOP2/pyop2/op2.py in <module>() 37 38 import backends ---> 39 import base 40 from base import READ, WRITE, RW, INC, MIN, MAX, i 41 from base import ON_BOTTOM, ON_TOP, ON_INTERIOR_FACETS, ALL /home/cjc1/firedrake/PyOP2/pyop2/base.py in <module>() 55 from version import __version__ as version 56 ---> 57 from coffee.base import Node 58 from coffee import base as ast 59 ImportError: No module named base In [8]: import coffee In [9]: import coffee.base In [10]: import coffee.ast_base --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/cjc1/firedrake/<ipython-input-10-4eacf0c12697> in <module>() ----> 1 import coffee.ast_base ImportError: No module named ast_base Here's what I've got in my pythonpath: /home/cjc1/firedrake/PyOP2:/home/cjc1/.local/lib/site-packages/ufl:/home/cjc1/.local/lib/site-packages/ffc:/home/cjc1/firedrake/COFFEE:/home/cjc1/firedrake/ufl:/home/cjc1/firedrake/ffc:/home/cjc1/firedrake/PyOP2:/home/cjc1/firedrake/firedrake: cheers --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Fabio Luporini [f.luporini12@imperial.ac.uk<mailto:f.luporini12@imperial.ac.uk>] Sent: 06 December 2014 11:28 To: firedrake Subject: Re: [firedrake] borked my update OK. How have you installed coffee (did you do pip install..?) ? Can you check your PYTHONPATH? If you do: python import coffee import coffee.base import coffee.ast_base Could you tell me the error messages you see? Thanks! -- Fabio 2014-12-06 11:17 GMT+00:00 Cotter, Colin J <colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>>: Hi Fabio, Thanks for your reply! I did this, but I'm still getting the same message. all the best --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Fabio Luporini [f.luporini12@imperial.ac.uk<mailto:f.luporini12@imperial.ac.uk>] Sent: 06 December 2014 11:12 To: firedrake Subject: Re: [firedrake] borked my update Hi Colin, Just get rid of the .pyc files in pyop2/coffee (you can delete the folder) -- Fabio 2014-12-06 11:07 GMT+00:00 Cotter, Colin J <colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>>: Oh, but I still get this message. --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Cotter, Colin J [colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>] Sent: 06 December 2014 11:02 To: firedrake Subject: Re: [firedrake] borked my update Oh I see, COFFEE is now an independent package. --cjc ________________________________ From: firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk> [firedrake-bounces@imperial.ac.uk<mailto:firedrake-bounces@imperial.ac.uk>] on behalf of Cotter, Colin J [colin.cotter@imperial.ac.uk<mailto:colin.cotter@imperial.ac.uk>] Sent: 06 December 2014 11:01 To: firedrake Subject: [firedrake] borked my update Dear all, I updated PyOP2, and now get: /home/cjc1/firedrake/PyOP2/pyop2/__init__.py in <module>() 7 """ 8 ----> 9 from op2 import * 10 from version import __version__ as ver, __version_info__ # noqa: just expose 11 /home/cjc1/firedrake/PyOP2/pyop2/op2.pyc in <module>() 37 38 import backends ---> 39 import base 40 from base import READ, WRITE, RW, INC, MIN, MAX, i 41 from base import ON_BOTTOM, ON_TOP, ON_INTERIOR_FACETS, ALL /home/cjc1/firedrake/PyOP2/pyop2/base.py in <module>() 55 from version import __version__ as version 56 ---> 57 from coffee.base import Node 58 from coffee import base as ast 59 ImportError: No module named base What went wrong? all the best --cjc _______________________________________________ firedrake mailing list firedrake@imperial.ac.uk<mailto:firedrake@imperial.ac.uk> https://mailman.ic.ac.uk/mailman/listinfo/firedrake
participants (3)
- 
                
                Anna Kalogirou
- 
                
                Cotter, Colin J
- 
                
                Fabio Luporini