Installation from pip doesn't work

Issue #27 resolved
Julian Andrej created an issue

My system is

$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.1 (jessie) Release: 8.1 Codename: jessie

and i installed the following packages:

pip install petsc --user --allow-extern petsc
pip install petsc4py --user
pip install slepc --allow-external slepc --user
pip install petsc --user --allow-extern petsc

running a python file with

from petsc4py import PETSc

fails with

Traceback (most recent call last): File "stokes_steady.py", line 5, in <module> from petsc4py import PETSc File "/home/jan/.local/lib/python2.7/site-packages/petsc4py/PETSc.py", line 20, in <module> from petsc4py.Error import * File "/home/jan/.local/lib/python2.7/site-packages/petsc4py/Error.py", line 28, in <module> from petsc4py.lib import _petsc File "/home/jan/.local/lib/python2.7/site-packages/petsc4py/lib/_petsc.py", line 14, in <module> _petsc = petsc4py.lib.Import() File "/home/jan/.local/lib/python2.7/site-packages/petsc4py/lib/init.py", line 43, in Import petsc_cfg = open(os.path.join(path[0], 'petsc.cfg')) IOError: [Errno 2] No such file or directory: '/home/jan/.local/lib/python2.7/site-packages/petsc4py/lib/petsc.cfg'

Comments (1)

  1. Log in to comment