Skip to content

Module 'firedrake' has no attribute 'Cofunction' #3901

Discussion options

You must be logged in to vote

This looks fine. Odd.

Import errors are strange because you should only be dealing with standard Python packages at this point. Can you check:

  • That your virtual environment is activated
  • That the file $VIRTUAL_ENV/src/firedrake/firedrake/cofunction.py exists
  • Whether it is possible to run python -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 to cd to a different directory and try again.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@awaham
Comment options

@connorjward
Comment options

Answer selected by awaham
@jrmaddison
Comment options

@dham
Comment options

dham Dec 6, 2024
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants