[CIG-SHORT] unable to load _petsc

Jeff Dusenberry jdusenberry at whoi.edu
Thu Feb 16 12:52:57 PST 2012


I have built a copy of pylith from the source tarball, and it seemed 
successful, but when I try to run it, it fails to load _petsc.  Here's 
the traceback:

Traceback (most recent call last):
   File "./pylith", line 37, in <module>
     from pylith.apps.PyLithApp import PyLithApp
   File 
"/share/apps/pylith-1.6.2_intel/lib/python2.6/site-packages/pylith/apps/PyLithApp.py", 
line 23, in <module>
     from PetscApplication import PetscApplication
   File 
"/share/apps/pylith-1.6.2_intel/lib/python2.6/site-packages/pylith/apps/PetscApplication.py", 
line 27, in <module>
     class PetscApplication(Application):
   File 
"/share/apps/pylith-1.6.2_intel/lib/python2.6/site-packages/pylith/apps/PetscApplication.py", 
line 41, in PetscApplication
     from pylith.utils.PetscManager import PetscManager
   File 
"/share/apps/pylith-1.6.2_intel/lib/python2.6/site-packages/pylith/utils/PetscManager.py", 
line 29, in <module>
     import pylith.utils.petsc as petsc
   File 
"/share/apps/pylith-1.6.2_intel/lib/python2.6/site-packages/pylith/utils/petsc.py", 
line 25, in <module>
     _petsc = swig_import_helper()
   File 
"/share/apps/pylith-1.6.2_intel/lib/python2.6/site-packages/pylith/utils/petsc.py", 
line 17, in swig_import_helper
     import _petsc
ImportError: No module named _petsc


I thought that this might be a PYTHONPATH issue, but I have not been 
able to find _petsc anywhere in order to add it to the path.  Can 
someone point me in the right direction?  Did I miss something in the 
compile?

Thanks,
Jeff



More information about the CIG-SHORT mailing list