[Qgis-user] PyQGIS load failure, Mac OSX 10.6, Python 2.7

Noli Sicad nsicad at gmail.com
Sat Jan 1 22:58:26 PST 2011


Hi David,

The recommended QGIS for Mac OS X 10.6 that surely works is from
William's repository.

http://www.kyngchaos.com/software/qgis

William maintains the official QGIS for Mac OS X.

http://www.qgis.org/wiki/Download#MacOS_X

Try using this, uninstall the MacPorts QGIS and install William / Kyngchaos.

However, I am not sure if python 2.7 works with QGIS 1.6.0.1 in Mac OS
X, python 2.6 works in Mac OS X, (not working in Windows).

Regards, Noli

On 1/2/11, David Fillmore <fillmore at txcorp.com> wrote:
> Hi,
> I'm trying to get QGIS installed and working in Mac OSX 10.6 with MacPorts.
> Have encountered an error loading the python modules (message below).
> Anybody know of a solution?
>
> cheers,
> David
>
> Couldn't load PyQGIS.
> Python support will be disabled.
>
> Traceback (most recent call last):
>   File "", line 1, in
> ImportError: dynamic module does not define init function (initcore)
>
> Python version:
> 2.7.1 (r271:86832, Dec 28 2010, 19:22:36)
> [GCC 4.2.1 (Apple Inc. build 5664)]
>
> QGIS version:
> 1.6.0-Copiapo 'Copiapo', exported
>
> Python path:
> ['/opt/local/var/macports/software/qgis/1.6.0_0/Applications/MacPorts/QGIS.app/Contents/MacOS/../Resources/python',
> '/Users/fillmore/.qgis/python', '/Users/fillmore/.qgis/python/plugins',
> '/opt/local/var/macports/software/qgis/1.6.0_0/Applications/MacPorts/QGIS.app/Contents/MacOS/../Resources/python/plugins',
> '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
> '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
> '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
> '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
> '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
> '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
> '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
> '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
> '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages',
> '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyObjC',
> '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']



More information about the Qgis-user mailing list