1. Lisandro Dalcin
  2. tao4py
Issue #2 resolved

error: unknown type name 'PetscShell'

xiaji
created an issue
PETSc: 3.4.2 
TAO: 2.2.0

The two libraries installed successfully and the environment all ready set.

PETSC_DIR=/Users/xxx/petsc

PETSC_ARCH=darwin-mpich-g

TAO_DIR=/Users/xxx/tao

compiler: /usr/local/Cellar/mpich2/3.0.4/bin/mpicc

linker: /usr/local/Cellar/mpich2/3.0.4/bin/mpicc

petsc4py and NumPy also installed.

When I installed tao4py, it complains that: In file included from src/TAO.c

src/tao4py.TAO.c:591 error: unknown type name 'PetscShell';

I just want to know whether the compiler causes this problem. Thanks.

Comments (8)

  1. Dominique

    FWIW, I saw the same error earlier today. Try installing from the hg repo instead of PyPi:

    pip install hg+https://bitbucket.org/dalcinl/tao4py
    

    I think the tao4py hosted on PyPi is for TAO 2.1.

  2. Log in to comment