petscvariables: No such file or directory

Issue #4 invalid
Anonymous created an issue

I'm installing petsc4py-3.4.

When I run python setup.py build, I got

running build invalid PETSC_ARCH: arch-darwin-c-debug (ignored) running build_src running build_py creating build creating build/lib.macosx-10.9-intel-2.7 creating build/lib.macosx-10.9-intel-2.7/petsc4py copying src/init.py -> build/lib.macosx-10.9-intel-2.7/petsc4py copying src/main.py -> build/lib.macosx-10.9-intel-2.7/petsc4py copying src/help.py -> build/lib.macosx-10.9-intel-2.7/petsc4py copying src/PETSc.py -> build/lib.macosx-10.9-intel-2.7/petsc4py creating build/lib.macosx-10.9-intel-2.7/petsc4py/lib copying src/lib/init.py -> build/lib.macosx-10.9-intel-2.7/petsc4py/lib creating build/lib.macosx-10.9-intel-2.7/petsc4py/include creating build/lib.macosx-10.9-intel-2.7/petsc4py/include/petsc4py copying src/include/petsc4py/numpy.h -> build/lib.macosx-10.9-intel-2.7/petsc4py/include/petsc4py copying src/include/petsc4py/petsc4py.h -> build/lib.macosx-10.9-intel-2.7/petsc4py/include/petsc4py copying src/include/petsc4py/petsc4py.PETSc.h -> build/lib.macosx-10.9-intel-2.7/petsc4py/include/petsc4py copying src/include/petsc4py/petsc4py.PETSc_api.h -> build/lib.macosx-10.9-intel-2.7/petsc4py/include/petsc4py copying src/include/petsc4py/petsc4py.i -> build/lib.macosx-10.9-intel-2.7/petsc4py/include/petsc4py copying src/include/petsc4py/init.pxd -> build/lib.macosx-10.9-intel-2.7/petsc4py/include/petsc4py copying src/include/petsc4py/PETSc.pxd -> build/lib.macosx-10.9-intel-2.7/petsc4py/include/petsc4py copying src/include/petsc4py/init.pyx -> build/lib.macosx-10.9-intel-2.7/petsc4py/include/petsc4py copying src/lib/petsc.cfg -> build/lib.macosx-10.9-intel-2.7/petsc4py/lib running build_ext error: /Users/user/Downloads/petsc4py-3.4/conf/petscvariables: No such file or directory

The environment variables I set are PETSC_DIR=/Users/user/Downloads/petsc4py-3.4 and PETSC_ARCH=arch-darwin-c-debug.

I checked in the directory conf, there is no file petscvariables. What's the problem... THanks.

Comments (8)

  1. Lisandro Dalcin

    I'm not sure what you meant by PETSC_DIR=/Users/user/Downloads/petsc4py-3.4, PETSC_DIR should point to a directory where you have PETSc built or installed. Please build PETSc first, then install petsc4py.

  2. rozali@phas.ubc.ca

    I get the same error message, after building petsc and attempting to install petsc4py (using pip) I get:

    running build_ext
    error: /Users/moshe/petsc/lib/petsc/conf/petscvariables: No such file or directory
    

    The reason seems to be that petsc directory structure has changed, and the file is now at

    /Users/moshe/petsc/conf/petscvariables

    Not sure how to fix it though.

  3. Log in to comment