<font color="#000099"><font face="trebuchet ms,sans-serif">That worked. </font></font><div><font color="#000099"><font face="trebuchet ms,sans-serif">Many thanks William!</font></font><div><span class="Apple-style-span" style="color: rgb(0, 0, 153); font-family: 'trebuchet ms', sans-serif; ">-Dave</span></div>
<div><br><div class="gmail_quote">On Mon, Aug 22, 2011 at 10:27 AM, William Kyngesburye <span dir="ltr"><<a href="mailto:woklist@kyngchaos.com">woklist@kyngchaos.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
It worked when I tested it, though I may not have updated GDAL (it's just a repackaging).  The only odd thing I see is that it looks like the old gdal.pth is left behind, which points to the old location I had the gdal-python stuff.  Maybe this is confusing python (there's nothing there).  Try deleteing<br>

<br>
/Library/Python/2.6/site-packages/gdal.pth<br>
<br>
(but not gdal-py2.6.pth).  ...Just a wild guess really.<br>
<br>
On Aug 22, 2011, at 10:57 AM, dpan wrote:<br>
<br>
> Hi,<br>
><br>
> I'm getting the same error after having installed the latest packages in<br>
> Snow Leopard:<br>
> <a href="http://osgeo-org.1803224.n2.nabble.com/file/n6712115/Screen_shot_2011-08-22_at_9.54.29_AM.png" target="_blank">http://osgeo-org.1803224.n2.nabble.com/file/n6712115/Screen_shot_2011-08-22_at_9.54.29_AM.png</a><br>

><br>
> ...and wonder if anyone can help.<br>
><br>
> Here is the full error text:<br>
> ***************<br>
> Couldn't load plugin GdalTools due an error when calling its classFactory()<br>
> method<br>
><br>
> Traceback (most recent call last):<br>
>  File<br>
> "/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/qgis/utils.py",<br>
> line 138, in startPlugin<br>
>    plugins[packageName] = package.classFactory(iface)<br>
>  File<br>
> "/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins/GdalTools/__init__.py",<br>
> line 32, in classFactory<br>
>    from GdalTools import GdalTools<br>
>  File<br>
> "/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/qgis/utils.py",<br>
> line 283, in _import<br>
>    mod = _builtin_import(name, globals, locals, fromlist, level)<br>
>  File<br>
> "/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins/GdalTools/GdalTools.py",<br>
> line 39, in<br>
>    raise ImportError( error_str )<br>
> ImportError: No module named _gdal<br>
><br>
> Python version:<br>
> 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)<br>
> [GCC 4.2.1 (Apple Inc. build 5646)]<br>
><br>
><br>
> QGIS version:<br>
> 1.8.0-Trunk Trunk, 7f611e9<br>
><br>
> Python path:<br>
> ['/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python',<br>
> '/Users/dpanitz/.qgis/python', '/Users/dpanitz/.qgis/python/plugins',<br>
> '/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins',<br>
> '/Library/Frameworks/SQLite3.framework/Versions/3/Python',<br>
> '/Library/Frameworks/SQLite3.framework/Versions/3/Python/2.6',<br>
> '/Library/Python/2.6/site-packages/numpy-override',<br>
> '/Library/Frameworks/GDAL.framework/Versions/1.8/Python/site-packages',<br>
> '/Library/Frameworks/GDAL.framework/Versions/1.8/Python/2.6/site-packages',<br>
> '/Library/Frameworks/cairo.framework/Versions/1/Python/2.6',<br>
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip',<br>
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6',<br>
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',<br>
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',<br>
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages',<br>
> '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python',<br>
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',<br>
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',<br>
> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',<br>
> '/Library/Python/2.6/site-packages',<br>
> '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC',<br>
> '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode',<br>
> '/Applications/QGIS-1.8.app/Contents/Resources/python/plugins/fTools/tools']<br>
><br>
> *****<br>
><br>
> Thanks!<br>
> Dave<br>
><br>
> --<br>
> View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/python-error-in-opening-tp6456668p6712115.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/python-error-in-opening-tp6456668p6712115.html</a><br>

> Sent from the qgis-user mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br>
-----<br>
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com><br>
<a href="http://www.kyngchaos.com/" target="_blank">http://www.kyngchaos.com/</a><br>
<br>
"I ache, therefore I am.  Or in my case - I am, therefore I ache."<br>
<br>
- Marvin<br>
<br>
<br>
</blockquote></div><br></div></div>