[PyQt] installation problem on mac os x 10.6.6

Phil Thompson phil at riverbankcomputing.com
Mon Mar 28 14:53:50 BST 2011


On Fri, 18 Mar 2011 16:49:22 +0000 (UTC), Danny Shevitz <shevitz at lanl.gov>
wrote:
> Howdy,
> 
> I'm trying to install pyqt on a mac and have run into a problem.
> I'm running Python 3.2 64 bit, Mac OS X 10.6.6.
> 
> Python 3.2 (r32:88452, Feb 20 2011, 11:12:31) 
> [GCC 4.2.1 (Apple Inc. build 5664)] on darwin
> 
> I installed Qt from the installer, 4.7.2.
> 
> I installed SIP form source no problem.
> 
> I ran:
> python3 configure.py -d /Library/Python/3.2/site-packages/
> 
> I tried "make" but the make dies with this error:
> 
> g++ -headerpad_max_install_names -single_module -dynamiclib -o
> libpythonplugin.dylib pluginloader.o moc_pluginloader.o 
> -F/Library/Frameworks
> -L/Library/Frameworks -framework Python -framework QtScript -framework
> QtCore
> -framework QtXml -framework QtGui -framework QtDesigner  
> ld: warning: in /Library/Frameworks/Python.framework/Python, missing
> required
> architecture x86_64 in file
> Undefined symbols:
>   "_PyUnicodeUCS2_FromUnicode", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_Py_Initialize", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyLong_AsVoidPtr", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyErr_Print", referenced from:
>       PyCustomWidgets::getModuleAttr(char const*, char const*)in
>       pluginloader.o
>       PyCustomWidgets::getModuleAttr(char const*, char const*)in
>       pluginloader.o
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyType_IsSubtype", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyModule_GetDict", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyObject_CallObject", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyObject_CallFunctionObjArgs", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyList_Append", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_Py_IsInitialized", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyDict_Next", referenced from:
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyImport_ImportModule", referenced from:
>       PyCustomWidgets::getModuleAttr(char const*, char const*)in
>       pluginloader.o
>       PyCustomWidgets::PyCustomWidgets(QObject*)in pluginloader.o
>   "_PyObject_GetAttrString", referenced from:
>       PyCustomWidgets::getModuleAttr(char const*, char const*)in
>       pluginloader.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[1]: *** [libpythonplugin.dylib] Error 1
> make: *** [all] Error 2
> 
> Can anyone please offer suggestions as to what might be going on?

I can't reproduce this with the standard Qt and Python .dmg installers
(though I didn't use the -d flag).

Phil


More information about the PyQt mailing list