Module 'firedrake' has no attribute 'Cofunction' #3901
-
I am having issues import mesh from firedrake (see below). I am using Ubuntu-20.04 (WSL). Python 3.12.3 (main, Nov 6 2024, 18:32:19) [GCC 13.2.0] on linux
Any help will be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
How recent is your Firedrake installation? Can you share the install logs? |
Beta Was this translation helpful? Give feedback.
This looks fine. Odd.
Import errors are strange because you should only be dealing with standard Python packages at this point. Can you check:
$VIRTUAL_ENV/src/firedrake/firedrake/cofunction.py
existspython -c "from firedrake.cofunction import Cofunction"
.It might be possible that Python is incorrectly assuming that another folder called
firedrake
(e.g. the venv itself) is a Python package. Sometimes it can be helpful tocd
to a different directory and try again.