but the problem remains.
Daniel-Francas-MacBook-Pro:psycopg2-2.2.1 danielfranca$ python -c 'import
pprint; from distutils import sysconfig;
pprint.pprint(sysconfig.parse_makefile(sysconfig.get_makefile_filename()))'
{'AR': 'ar',
'ARFLAGS': 'rc',
'ASDLGEN': '/Users/sysadmin/X/r27/Parser/asdl_c.py',
'ASDLGEN_FILES': '/Users/sysadmin/X/r27/Parser/asdl.py
/Users/sysadmin/X/r27/Parser/asdl_c.py',
'AST_ASDL': '/Users/sysadmin/X/r27/Parser/Python.asdl',
'AST_C': '/Users/sysadmin/X/r27/Python/Python-ast.c',
'AST_C_DIR': '/Users/sysadmin/X/r27/Python',
'AST_H': '/Users/sysadmin/X/r27/Include/Python-ast.h',
'AST_H_DIR': '/Users/sysadmin/X/r27/Include',
'BASECFLAGS': '-fno-strict-aliasing -fno-common -dynamic',
'BASEMODLIBS': '',
'BINDIR': '/Library/Frameworks/Python.framework/Versions/2.7/bin',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'BLDLIBRARY': '',
'BLDSHARED': 'gcc-4.0 -arch i386 -arch ppc -arch x86_64 -isysroot / -g
-bundle -undefined dynamic_lookup',
'BUILDEXE': '.exe',
'BUILDPYTHON': 'python.exe',
'CC': 'gcc-4.0',
'CCSHARED': '',
'CFLAGS': '-fno-strict-aliasing -fno-common -dynamic -arch i386 -arch ppc
-arch x86_64 -g -O2 -DNDEBUG -g -O3',
'CFLAGSFORSHARED': '',
'CONFIGFILES': 'configure configure.in acconfig.h pyconfig.h.in
Makefile.pre.in',
'CONFIG_ARGS': "'-C' '--enable-framework' '--enable-universalsdk=/'
'--with-universal-archs=3-way' 'LDFLAGS=-g ' 'OPT=-g -O3 ' 'CC=gcc-4.0'",
'/Library/Frameworks/Python.framework/Versions/2.7/include',
'/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7',
':plat-darwin:plat-mac:plat-mac/lib-scriptpackages:lib-tk:lib-old',
'CPPFLAGS': '-I. -IInclude -I/Users/sysadmin/X/r27/Include',
'CXX': 'c++',
'DESTDIRS': '/Library/Frameworks/Python.framework/Versions/2.7
/Library/Frameworks/Python.framework/Versions/2.7/lib
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'DESTPATH': '',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'DIRMODE': 755,
'DIST': 'README ChangeLog configure configure.in acconfig.h pyconfig.h.in
Makefile.pre.in Include Lib Misc Demo Ext-dummy',
'DISTDIRS': 'Include Lib Misc Demo Ext-dummy',
'DISTFILES': 'README ChangeLog configure configure.in acconfig.h
pyconfig.h.in Makefile.pre.in',
'DLINCLDIR': '.',
'DLLLIBRARY': '',
'DYNLOADFILE': 'dynload_shlib.o',
'EXE': '',
'EXEMODE': 755,
'EXTRAMACHDEPPATH': ':plat-mac:plat-mac/lib-scriptpackages',
'EXTRAPLATDIR': 'plat-mac plat-mac/Carbon plat-mac/lib-scriptpackages
\tplat-mac/lib-scriptpackages/_builtinSuites
\tplat-mac/lib-scriptpackages/CodeWarrior
\tplat-mac/lib-scriptpackages/Explorer \tplat-mac/lib-scriptpackages/Finder
\tplat-mac/lib-scriptpackages/Netscape
\tplat-mac/lib-scriptpackages/StdSuites
\tplat-mac/lib-scriptpackages/SystemEvents
\tplat-mac/lib-scriptpackages/Terminal',
'EXTRATESTOPTS': '',
'EXTRA_CFLAGS': '',
'FILEMODE': 644,
'GLHACK': '-Dclear=__GLclear',
'GNULD': 'no',
'GRAMMAR_C': '/Users/sysadmin/X/r27/Python/graminit.c',
'GRAMMAR_H': '/Users/sysadmin/X/r27/Include/graminit.h',
'GRAMMAR_INPUT': '/Users/sysadmin/X/r27/Grammar/Grammar',
'/Library/Frameworks/Python.framework/Versions/2.7/include
/Library/Frameworks/Python.framework/Versions/2.7/include
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7',
'INCLUDEDIR': '/Library/Frameworks/Python.framework/Versions/2.7/include',
'/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7',
'INSTALL': '/usr/bin/install -c',
'INSTALL_DATA': '/usr/bin/install -c -m 644',
'INSTALL_PROGRAM': '/usr/bin/install -c',
'INSTALL_SCRIPT': '/usr/bin/install -c',
'INSTALL_SHARED': '/usr/bin/install -c -m 555',
'INSTSONAME': 'Python.framework/Versions/2.7/Python',
'LDCXXSHARED': 'c++ -arch i386 -arch ppc -arch x86_64 -isysroot / -g
-bundle -undefined dynamic_lookup',
'LDFLAGS': '-arch i386 -arch ppc -arch x86_64 -isysroot / -g',
'LDLAST': '',
'LDLIBRARY': 'Python.framework/Versions/2.7/Python',
'LDLIBRARYDIR': '',
'LDSHARED': 'gcc-4.0 -arch i386 -arch ppc -arch x86_64 -isysroot / -g
-bundle -undefined dynamic_lookup',
'LIBC': '',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'LIBDIR': '/Library/Frameworks/Python.framework/Versions/2.7/lib',
'LIBFFI_INCLUDEDIR': '',
'LIBM': '',
'LIBOBJDIR': 'Python/',
'LIBOBJS': '',
'LIBP': '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'LIBPC': '/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config',
'LIBRARY': 'libpython2.7.a',
'LIBRARY_OBJS': 'Modules/getbuildinfo.o \t\tParser/acceler.o
\t\tParser/grammar1.o \t\tParser/listnode.o \t\tParser/node.o
\t\tParser/parser.o \t\tParser/parsetok.o \t\tParser/bitset.o
\t\tParser/metagrammar.o \t\tParser/firstsets.o \t\tParser/grammar.o
\t\tParser/pgen.o Parser/myreadline.o Parser/tokenizer.o
\t\tObjects/abstract.o \t\tObjects/boolobject.o \t\tObjects/bufferobject.o
\t\tObjects/bytes_methods.o \t\tObjects/bytearrayobject.o
\t\tObjects/capsule.o \t\tObjects/cellobject.o \t\tObjects/classobject.o
\t\tObjects/cobject.o \t\tObjects/codeobject.o \t\tObjects/complexobject.o
\t\tObjects/descrobject.o \t\tObjects/enumobject.o \t\tObjects/exceptions.o
\t\tObjects/genobject.o \t\tObjects/fileobject.o \t\tObjects/floatobject.o
\t\tObjects/frameobject.o \t\tObjects/funcobject.o \t\tObjects/intobject.o
\t\tObjects/iterobject.o \t\tObjects/listobject.o \t\tObjects/longobject.o
\t\tObjects/dictobject.o \t\tObjects/memoryobject.o
\t\tObjects/methodobject.o \t\tObjects/moduleobject.o \t\tObjects/object.o
\t\tObjects/obmalloc.o \t\tObjects/rangeobject.o \t\tObjects/setobject.o
\t\tObjects/sliceobject.o \t\tObjects/stringobject.o \t\tObjects/structseq.o
\t\tObjects/tupleobject.o \t\tObjects/typeobject.o
\t\tObjects/weakrefobject.o \t\tObjects/unicodeobject.o
Objects/unicodectype.o \t\tPython/_warnings.o \t\tPython/Python-ast.o
\t\tPython/asdl.o \t\tPython/ast.o \t\tPython/bltinmodule.o
\t\tPython/ceval.o \t\tPython/compile.o \t\tPython/codecs.o
\t\tPython/errors.o \t\tPython/frozen.o \t\tPython/frozenmain.o
\t\tPython/future.o \t\tPython/getargs.o \t\tPython/getcompiler.o
\t\tPython/getcopyright.o \t\tPython/getplatform.o \t\tPython/getversion.o
\t\tPython/graminit.o \t\tPython/import.o \t\tPython/importdl.o
\t\tPython/marshal.o \t\tPython/modsupport.o \t\tPython/mystrtoul.o
\t\tPython/mysnprintf.o \t\tPython/peephole.o \t\tPython/pyarena.o
\t\tPython/pyctype.o \t\tPython/pyfpe.o \t\tPython/pymath.o
\t\tPython/pystate.o \t\tPython/pythonrun.o \t\tPython/structmember.o
\t\tPython/symtable.o \t\tPython/sysmodule.o \t\tPython/traceback.o
\t\tPython/getopt.o \t\tPython/pystrcmp.o \t\tPython/pystrtod.o
\t\tPython/dtoa.o \t\tPython/formatter_unicode.o
\t\tPython/formatter_string.o \t\tPython/dynload_shlib.o \t\t
\t\tPython/mactoolboxglue.o \t\tPython/thread.o \t\tModules/config.o
\t\tModules/getpath.o \t\tModules/main.o \t\tModules/gcmodule.o \t\t
\t\tModules/threadmodule.o Modules/signalmodule.o Modules/posixmodule.o
Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o
Modules/_codecsmodule.o Modules/zipimport.o Modules/symtablemodule.o
Modules/xxsubtype.o',
'LIBS': '-ldl -framework CoreFoundation',
'LIBSUBDIRS': 'lib-tk lib-tk/test lib-tk/test/test_tkinter
lib-tk/test/test_ttk site-packages test test/data \t\ttest/decimaltestdata
test/xmltestdata \t\tencodings compiler hotshot \t\temail email/mime
email/test email/test/data \t\tjson json/tests \t\tsqlite3 sqlite3/test
\t\tlogging bsddb bsddb/test csv importlib wsgiref \t\tlib2to3 lib2to3/fixes
lib2to3/pgen2 lib2to3/tests \t\tlib2to3/tests/data lib2to3/tests/data/fixers
lib2to3/tests/data/fixers/myfixes \t\tctypes ctypes/test ctypes/macholib
idlelib idlelib/Icons \t\tdistutils distutils/command distutils/tests xml
xml/dom xml/etree xml/parsers xml/sax \t\tmultiprocessing
multiprocessing/dummy \t\tunittest unittest/test \t\tlib-old \t\tcurses
pydoc_data plat-darwin plat-mac plat-mac/Carbon plat-mac/lib-scriptpackages
\tplat-mac/lib-scriptpackages/_builtinSuites
\tplat-mac/lib-scriptpackages/CodeWarrior
\tplat-mac/lib-scriptpackages/Explorer \tplat-mac/lib-scriptpackages/Finder
\tplat-mac/lib-scriptpackages/Netscape
\tplat-mac/lib-scriptpackages/StdSuites
\tplat-mac/lib-scriptpackages/SystemEvents
\tplat-mac/lib-scriptpackages/Terminal',
'LINKCC': 'gcc-4.0',
'LINKFORSHARED': '-u _PyMac_Error Python.framework/Versions/2.7/Python',
'LN': 'ln',
'LOCALMODLIBS': '',
'MACHDEP': 'darwin',
'MACHDEPPATH': ':plat-darwin',
'MACHDEPS': 'plat-darwin plat-mac plat-mac/Carbon
plat-mac/lib-scriptpackages \tplat-mac/lib-scriptpackages/_builtinSuites
\tplat-mac/lib-scriptpackages/CodeWarrior
\tplat-mac/lib-scriptpackages/Explorer \tplat-mac/lib-scriptpackages/Finder
\tplat-mac/lib-scriptpackages/Netscape
\tplat-mac/lib-scriptpackages/StdSuites
\tplat-mac/lib-scriptpackages/SystemEvents
\tplat-mac/lib-scriptpackages/Terminal',
'MACHDEP_OBJS': 'Python/mactoolboxglue.o',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'MACOSX_DEPLOYMENT_TARGET': '10.5',
'MAINCC': 'gcc-4.0',
'MAKESETUP': '/Users/sysadmin/X/r27/Modules/makesetup',
'MANDIR': '/Library/Frameworks/Python.framework/Versions/2.7/share/man',
'MEMTESTOPTS': '-l -x test_subprocess test_io test_lib2to3
\t\ttest_multibytecodec test_urllib2_localnet test_itertools
\t\ttest_multiprocessing test_mailbox test_socket test_poll \t\ttest_select
test_zipfile -x test_dl test___all__ test_fork1 \t\ttest_longexp',
'MODLIBS': '',
'MODOBJS': 'Modules/threadmodule.o Modules/signalmodule.o
Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o
Modules/_sre.o Modules/_codecsmodule.o Modules/zipimport.o
Modules/symtablemodule.o Modules/xxsubtype.o',
'MODULE_OBJS': 'Modules/config.o \t\tModules/getpath.o \t\tModules/main.o
\t\tModules/gcmodule.o',
'OBJECT_OBJS': 'Objects/abstract.o \t\tObjects/boolobject.o
\t\tObjects/bufferobject.o \t\tObjects/bytes_methods.o
\t\tObjects/bytearrayobject.o \t\tObjects/capsule.o \t\tObjects/cellobject.o
\t\tObjects/classobject.o \t\tObjects/cobject.o \t\tObjects/codeobject.o
\t\tObjects/complexobject.o \t\tObjects/descrobject.o
\t\tObjects/enumobject.o \t\tObjects/exceptions.o \t\tObjects/genobject.o
\t\tObjects/fileobject.o \t\tObjects/floatobject.o \t\tObjects/frameobject.o
\t\tObjects/funcobject.o \t\tObjects/intobject.o \t\tObjects/iterobject.o
\t\tObjects/listobject.o \t\tObjects/longobject.o \t\tObjects/dictobject.o
\t\tObjects/memoryobject.o \t\tObjects/methodobject.o
\t\tObjects/moduleobject.o \t\tObjects/object.o \t\tObjects/obmalloc.o
\t\tObjects/rangeobject.o \t\tObjects/setobject.o \t\tObjects/sliceobject.o
\t\tObjects/stringobject.o \t\tObjects/structseq.o \t\tObjects/tupleobject.o
\t\tObjects/typeobject.o \t\tObjects/weakrefobject.o
\t\tObjects/unicodeobject.o Objects/unicodectype.o',
'OLDPATH': ':lib-old',
'OPT': '-DNDEBUG -g -O3',
'OTHER_LIBTOOL_OPT': '',
'PARSER_HEADERS': 'Parser/parser.h \t\tParser/tokenizer.h',
'PARSER_OBJS': 'Parser/acceler.o \t\tParser/grammar1.o
\t\tParser/listnode.o \t\tParser/node.o \t\tParser/parser.o
\t\tParser/parsetok.o \t\tParser/bitset.o \t\tParser/metagrammar.o
\t\tParser/firstsets.o \t\tParser/grammar.o \t\tParser/pgen.o
Parser/myreadline.o Parser/tokenizer.o',
'PGEN': 'Parser/pgen',
'PGENMAIN': '',
'PGENOBJS': 'Parser/acceler.o \t\tParser/grammar1.o \t\tParser/listnode.o
\t\tParser/node.o \t\tParser/parser.o \t\tParser/parsetok.o
\t\tParser/bitset.o \t\tParser/metagrammar.o \t\tParser/firstsets.o
\t\tParser/grammar.o \t\tParser/pgen.o Objects/obmalloc.o
\t\tPython/mysnprintf.o \t\tPython/pyctype.o \t\tParser/tokenizer_pgen.o
\t\tParser/printgrammar.o \t\tParser/pgenmain.o',
'PGOBJS': 'Objects/obmalloc.o \t\tPython/mysnprintf.o \t\tPython/pyctype.o
\t\tParser/tokenizer_pgen.o \t\tParser/printgrammar.o
\t\tParser/pgenmain.o',
'PLATDIR': 'plat-darwin',
'PLATMACDIRS': 'plat-mac plat-mac/Carbon plat-mac/lib-scriptpackages
\tplat-mac/lib-scriptpackages/_builtinSuites
\tplat-mac/lib-scriptpackages/CodeWarrior
\tplat-mac/lib-scriptpackages/Explorer \tplat-mac/lib-scriptpackages/Finder
\tplat-mac/lib-scriptpackages/Netscape
\tplat-mac/lib-scriptpackages/StdSuites
\tplat-mac/lib-scriptpackages/SystemEvents
\tplat-mac/lib-scriptpackages/Terminal',
'PLATMACPATH': ':plat-mac:plat-mac/lib-scriptpackages',
'POBJS': 'Parser/acceler.o \t\tParser/grammar1.o \t\tParser/listnode.o
\t\tParser/node.o \t\tParser/parser.o \t\tParser/parsetok.o
\t\tParser/bitset.o \t\tParser/metagrammar.o \t\tParser/firstsets.o
\t\tParser/grammar.o \t\tParser/pgen.o',
'PROFILE_TASK': '/Users/sysadmin/X/r27/Tools/pybench/pybench.py -n 2
--with-gc --with-syscheck',
'PURIFY': '',
'PYTHON': 'python',
'PYTHONFRAMEWORK': 'Python',
'PYTHONFRAMEWORKDIR': 'Python.framework',
'PYTHONFRAMEWORKINSTALLDIR': '/Library/Frameworks/Python.framework',
'PYTHONFRAMEWORKPREFIX': '/Library/Frameworks',
':plat-darwin:plat-mac:plat-mac/lib-scriptpackages:lib-tk:lib-old',
'PYTHON_HEADERS': 'Include/Python-ast.h \t\tInclude/Python.h
\t\tInclude/abstract.h \t\tInclude/asdl.h \t\tInclude/ast.h
\t\tInclude/bitset.h \t\tInclude/boolobject.h \t\tInclude/bytearrayobject.h
\t\tInclude/bytes_methods.h \t\tInclude/bytesobject.h
\t\tInclude/bufferobject.h \t\tInclude/cellobject.h \t\tInclude/ceval.h
\t\tInclude/classobject.h \t\tInclude/cobject.h \t\tInclude/code.h
\t\tInclude/codecs.h \t\tInclude/compile.h \t\tInclude/complexobject.h
\t\tInclude/descrobject.h \t\tInclude/dictobject.h \t\tInclude/dtoa.h
\t\tInclude/enumobject.h \t\tInclude/errcode.h \t\tInclude/eval.h
\t\tInclude/fileobject.h \t\tInclude/floatobject.h \t\tInclude/frameobject.h
\t\tInclude/funcobject.h \t\tInclude/genobject.h \t\tInclude/import.h
\t\tInclude/intobject.h \t\tInclude/intrcheck.h \t\tInclude/iterobject.h
\t\tInclude/listobject.h \t\tInclude/longintrepr.h \t\tInclude/longobject.h
\t\tInclude/marshal.h \t\tInclude/memoryobject.h \t\tInclude/metagrammar.h
\t\tInclude/methodobject.h \t\tInclude/modsupport.h
\t\tInclude/moduleobject.h \t\tInclude/node.h \t\tInclude/object.h
\t\tInclude/objimpl.h \t\tInclude/opcode.h \t\tInclude/osdefs.h
\t\tInclude/parsetok.h \t\tInclude/patchlevel.h \t\tInclude/pgen.h
\t\tInclude/pgenheaders.h \t\tInclude/pyarena.h \t\tInclude/pycapsule.h
\t\tInclude/pyctype.h \t\tInclude/pydebug.h \t\tInclude/pyerrors.h
\t\tInclude/pyfpe.h \t\tInclude/pymath.h \t\tInclude/pygetopt.h
\t\tInclude/pymem.h \t\tInclude/pyport.h \t\tInclude/pystate.h
\t\tInclude/pystrcmp.h \t\tInclude/pystrtod.h \t\tInclude/pythonrun.h
\t\tInclude/pythread.h \t\tInclude/rangeobject.h \t\tInclude/setobject.h
\t\tInclude/sliceobject.h \t\tInclude/stringobject.h
\t\tInclude/structmember.h \t\tInclude/structseq.h \t\tInclude/symtable.h
\t\tInclude/sysmodule.h \t\tInclude/traceback.h \t\tInclude/tupleobject.h
\t\tInclude/ucnhash.h \t\tInclude/unicodeobject.h \t\tInclude/warnings.h
\t\tInclude/weakrefobject.h \t\tpyconfig.h \t\tParser/parser.h
\t\tParser/tokenizer.h',
'PYTHON_OBJS': 'Python/_warnings.o \t\tPython/Python-ast.o
\t\tPython/asdl.o \t\tPython/ast.o \t\tPython/bltinmodule.o
\t\tPython/ceval.o \t\tPython/compile.o \t\tPython/codecs.o
\t\tPython/errors.o \t\tPython/frozen.o \t\tPython/frozenmain.o
\t\tPython/future.o \t\tPython/getargs.o \t\tPython/getcompiler.o
\t\tPython/getcopyright.o \t\tPython/getplatform.o \t\tPython/getversion.o
\t\tPython/graminit.o \t\tPython/import.o \t\tPython/importdl.o
\t\tPython/marshal.o \t\tPython/modsupport.o \t\tPython/mystrtoul.o
\t\tPython/mysnprintf.o \t\tPython/peephole.o \t\tPython/pyarena.o
\t\tPython/pyctype.o \t\tPython/pyfpe.o \t\tPython/pymath.o
\t\tPython/pystate.o \t\tPython/pythonrun.o \t\tPython/structmember.o
\t\tPython/symtable.o \t\tPython/sysmodule.o \t\tPython/traceback.o
\t\tPython/getopt.o \t\tPython/pystrcmp.o \t\tPython/pystrtod.o
\t\tPython/dtoa.o \t\tPython/formatter_unicode.o
\t\tPython/formatter_string.o \t\tPython/dynload_shlib.o \t\t
\t\tPython/mactoolboxglue.o \t\tPython/thread.o',
'PY_CFLAGS': '-fno-strict-aliasing -fno-common -dynamic -arch i386 -arch
ppc -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I. -IInclude
-I/Users/sysadmin/X/r27/Include -DPy_BUILD_CORE',
'QUICKTESTOPTS': '-l -x test_subprocess test_io test_lib2to3
\t\ttest_multibytecodec test_urllib2_localnet test_itertools
\t\ttest_multiprocessing test_mailbox test_socket test_poll \t\ttest_select
test_zipfile',
'RANLIB': 'ranlib',
'RESSRCDIR': 'Mac/Resources/framework',
'RUNSHARED': 'DYLD_FRAMEWORK_PATH=/private/tmp/_py/_bld/python:',
'SCRIPTDIR': '/Library/Frameworks/Python.framework/Versions/2.7/lib',
'SGI_ABI': '',
'SHELL': '/bin/sh',
'SHLIBS': '-ldl -framework CoreFoundation',
'SIGNAL_OBJS': '',
'SITEPATH': '',
'SO': '.so',
'SRCDIRS': 'Parser Grammar Objects Python Modules Mac',
'SRC_GDB_HOOKS': '/Users/sysadmin/X/r27/Tools/gdb/libpython.py',
'STRINGLIB_HEADERS': '/Users/sysadmin/X/r27/Include/bytes_methods.h
\t\t/Users/sysadmin/X/r27/Objects/stringlib/count.h
\t\t/Users/sysadmin/X/r27/Objects/stringlib/ctype.h
\t\t/Users/sysadmin/X/r27/Objects/stringlib/fastsearch.h
\t\t/Users/sysadmin/X/r27/Objects/stringlib/find.h
\t\t/Users/sysadmin/X/r27/Objects/stringlib/formatter.h
\t\t/Users/sysadmin/X/r27/Objects/stringlib/partition.h
\t\t/Users/sysadmin/X/r27/Objects/stringlib/split.h
\t\t/Users/sysadmin/X/r27/Objects/stringlib/stringdefs.h
\t\t/Users/sysadmin/X/r27/Objects/stringlib/string_format.h
\t\t/Users/sysadmin/X/r27/Objects/stringlib/transmogrify.h
\t\t/Users/sysadmin/X/r27/Objects/stringlib/unicodedefs.h
\t\t/Users/sysadmin/X/r27/Objects/stringlib/localeutil.h',
'SUBDIRS': '',
'SUBDIRSTOO': 'Include Lib Misc Demo',
'SVNVERSION': 'svnversion /Users/sysadmin/X/r27',
'SYSLIBS': '',
'TESTOPTS': '-l',
'TESTPATH': '',
'TESTPROG': '/Users/sysadmin/X/r27/Lib/test/regrtest.py',
./python.exe -Wd -3 -E -tt',
'THREADOBJ': 'Python/thread.o',
'TKPATH': ':lib-tk',
'UNICODE_OBJS': 'Objects/unicodeobject.o Objects/unicodectype.o',
'UNIVERSALSDK': '/',
'VERSION': '2.7',
'VPATH': '/Users/sysadmin/X/r27',
'XMLLIBSUBDIRS': 'xml xml/dom xml/etree xml/parsers xml/sax',
'datarootdir': '/Library/Frameworks/Python.framework/Versions/2.7/share',
'exec_prefix': '/Library/Frameworks/Python.framework/Versions/2.7',
'prefix': '/Library/Frameworks/Python.framework/Versions/2.7',
'srcdir': '/Users/sysadmin/X/r27'}
Daniel-Francas-MacBook-Pro:psycopg2-2.2.1 danielfranca$
Daniel-Francas-MacBook-Pro:psycopg2-2.2.1 danielfranca$ python -c 'import
platform; print platform.architecture()'
('64bit', '')
Daniel-Francas-MacBook-Pro:psycopg2-2.2.1 danielfranca$
Daniel-Francas-MacBook-Pro:psycopg2-2.2.1 danielfranca$ python -c 'import
platform; print platform.machine()'
i386
Daniel-Francas-MacBook-Pro:psycopg2-2.2.1 danielfranca$
Daniel-Francas-MacBook-Pro:psycopg2-2.2.1 danielfranca$ python -c 'import
platform; print platform.mac_ver()'
('10.6.4', ('', '', ''), 'i386')
Post by Daniel FrançaHi,
I recently migrated from Linux to Mac OS X, and I'm trying to get my django
project working.
I'm getting problems trying to install psycopg2
I installed that, both when I try to run my django server I get the
*
*
*gresql_psycopg2/base.py", line 24, in<module>*
* raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)*
dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/_psycopg.so,
2): Symbol not found: _PQbackendPID*
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/_psycopg.so
*
* Expected in: flat namespace*
* in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/_psycopg.so
*
I have seen this error reported several times on IRC and on this list. It
usually has something to do with either _psycopg.so, libpq.so or the python
interpreter being built with the incorrect architectures.
file /path/to/libpq.so.X.X
file /path/to/_psycopg.so
python -c 'import pprint; from distutils import sysconfig;
pprint.pprint(sysconfig.parse_makefile(sysconfig.get_makefile_filename()))'
python -c 'import platform; print platform.architecture()'
python -c 'import platform; print platform.machine()'
python -c 'import platform; print platform.mac_ver()'
psql -c 'select version()'
And also googling for your error. I have seen reports of people solving
that problem by switching their system python into 32 bit mode, but then
again I have seen people for which it did not work.
Cheers,
Jan