Import error
Issue #135
closed
Hi,
When I try from petsc4py import PETSc
I get this error:
AttributeError: type object 'petsc4py.PETSc.array' has no attribute 'reduce_cython'
I would appreciate it if someone could let me know what went wrong.
Comments (4)
-
reporter -
reporter Update 2: I’m almost sure that
mumps
package is the culprit. After uninstallingmumps
, I reinstallednumpy
ansscipy
and then I could importPETSc
without any trouble. So, I guess installingmumps
causes some dependency mismatch. -
Maybe the mumps package is outdated and has to be rebuilt. But this is not the right place to discuss these installations issues, you should use the conda-forge/petsc4py-feedstock in github, and post the full output of
conda install petsc4py
in a fresh environment. -
- changed status to closed
- Log in to comment
Update 1: After I uninstalled
mumps
, I got the following error when trying to importPETSc
: