upgraded version of petsc4py

Issue #13 resolved
Former user created an issue

Today I needed to reinstall my PETSc and SLEPc libraries. I did that and those examples seem to work. I believe I now have 3.5 of each. Note: I needed to install SLEPc 3.5 by downloading the tar file instead of using git but that seemed to work ok.

Then I installed petsc4py and slepc4py using pip. I thought that worked ok but then when I tried a simple test case, heat.py, there is a clearly a problem. See below.

It could be that I have my versions mixed up and if that's the case I do apologize for bugging you with this. But if someone could help me to get this straight that would be greatly appreciated.

Thanks,Francis

Traceback (most recent call last): File "heat.py", line 4, in <module> petsc4py.init(sys.argv) File "/Users/fpoulin/Library/Python/2.7/lib/python/site-packages/petsc4py/init.py", line 42, in init PETSc = petsc4py.lib.ImportPETSc(arch) File "/Users/fpoulin/Library/Python/2.7/lib/python/site-packages/petsc4py/lib/init.py", line 29, in ImportPETSc return Import('petsc4py', 'PETSc', path, arch) File "/Users/fpoulin/Library/Python/2.7/lib/python/site-packages/petsc4py/lib/init.py", line 64, in Import module = imp.load_module(fullname, fo, fn, stuff) ImportError: dlopen(/Users/fpoulin/Library/Python/2.7/lib/python/site-packages/petsc4py/lib/darwin10.6.0-c-debug/PETSc.so, 2): Symbol not found: _DMGetDimension Referenced from: /Users/fpoulin/Library/Python/2.7/lib/python/site-packages/petsc4py/lib/darwin10.6.0-c-debug/PETSc.so Expected in: flat namespace in /Users/fpoulin/Library/Python/2.7/lib/python/site-packages/petsc4py/lib/darwin10.6.0-c-debug/PETSc.so

Comments (3)

  1. Dominic Meiser

    I will be out of the office starting August 30th until September 7th. During this time I will have limited email access.

    Dominic Meiser Tech-X Corporation - 5621 Arapahoe Avenue - Boulder, CO 80303

  2. Lisandro Dalcin

    New releases of petsc4py and slepc4py are out. Probably a plain pip install petsc will not work, in such a case try pip install https://bitbucket.org/petsc/petsc/get/maint.tar.gz

  3. Log in to comment