Unable to import variables and functions from firedrake module #3927
Answered
by
connorjward
huisophiewang
asked this question in
Firedrake support
-
Hi, I installed the latest version of firedrake with Python 3.12. When I run "from firedrake import Mesh", it has "ImportError: cannot import name 'Mesh' from 'firedrake' (unknown location)". When I use "dir(firedrake)" to list the names, it only has these names ['doc', 'file', 'loader', 'name', 'package', 'path', 'spec']. Any idea about what the problem might be and how to solve it? |
Beta Was this translation helpful? Give feedback.
Answered by
connorjward
Dec 13, 2024
Replies: 1 comment 6 replies
-
I think this may suggest that the installation failed. Can you share your log files? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you try running this command from a different directory? (e.g.
cd ..; python -c "from firedrake import *"
). Just to make sure that the top-levelfiredrake
venv isn't being recognised as a package.