importing petsc4py fails in 22.04
Bug #1980878 reported by
Christophe Prud'homme
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
petsc4py (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
petsc4py cannot be used out of the box in python
install petsc4py
> apt install python3-
then do
> python3 -c "import petsc4py"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundE
to make it work you need to do :
> python3 -c "import sys;sys.
then all good
an alternative is to install eg libpetsc64-real-dev
this will then configure the python path for petsc4py
To post a comment you must log in.
I am probably missing something here. I would be very happy to learn what.
I understand that we can switch between real/complex and 32/64 indexing but still there should be a way to configure alternatives at least no?