Opened 16 years ago

Closed 13 years ago

#2029 closed defect (invalid)

Python Interpreter not initialized on OS X (10.4.10)

Reported by: mhearne Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

I have successfully compiled and built gdal on my Mac OS X (10.4.10). However, when I try to import the "gdal" module into Python, I get the following results:

import gdal Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap

Someone had mentioned to me earlier that perhaps I was building against a different version of Python than that of the interpreter I was using. I didn't think that was true, but then I looked more closely at the GDALMake.opt file, which has the following for the Python section:

PYTHON_INCLUDES = -I/usr/local/include/python2.5 -I/usr/local/include/python2.5 PYTHON_LIBS = -XCClinker -framework -XCClinker Python $(LIBS) PYTHON_CFLAGS = $(OPT) -UHAVE_NUMPY PYTHON = python PYTHON_DEV = yes PY_LD_SHARED = $(LD_SHARED) PY_SO_EXT = $(SO_EXT)

Should the "PYTHON_LIBS" section look more like the "PYTHON_INCLUDES" section, a la "-L /usr/lib/python2.5"?

--Mike

Change History (1)

comment:1 by Even Rouault, 13 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.