Importing Firedrake in WSL gives petsc error #3702
-
Hi all, I am having issues importing Firedrake, and I was hoping someone would be able to help. I am using a WSL with Ubuntu on Windows 11. I have no issues installing it: the pytest
yields `(firedrake) katie795@katiesthinkpad:~/firedrake/src/firedrake$ pytest tests/regression/ -k "poisson_strong or stokes_mini or dg_advection" tests/regression/test_dg_advection.py .... [ 14%] ====================================================== warnings summary ======================================================= -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html However, when I try to run a simple module such as
I get the error
It previously had the message 'Module not found:Firedrake' but sys.path.append fixed that.. So it looks like something has gone wrong with the PETSC directory. I have tried
I have also looked at other Firedrake discussions such as #1703 and #3578 but they seem to have problems that are not very similar. Here are is my log file For some strange reason, although I can see 'configure.log' and 'make.log' in my file system, when I try to attach it here it throws the error 'Path does not exist'. Many thanks in advance! Any insight would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
just checking whether you have started the venv? |
Beta Was this translation helpful? Give feedback.
At this line:
You explicitly ran
/bin/python3
which overrides the venv and instead runs the python in/bin
. You also should not be modifyingsys.path
.Simply run: