[Qgis-user] python error in opening

William Kyngesburye woklist at kyngchaos.com
Mon Aug 22 10:05:00 PDT 2011


OK, good to know, I'll fix the framework installers soon.  Another one you should remove: sqlite.pth (leaving sqlite-py2.6.pth).

On Aug 22, 2011, at 11:38 AM, Dave Panitz wrote:

> That worked. 
> Many thanks William!
> -Dave
> 
> On Mon, Aug 22, 2011 at 10:27 AM, William Kyngesburye <woklist at kyngchaos.com> wrote:
> 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
> 
> /Library/Python/2.6/site-packages/gdal.pth
> 
> (but not gdal-py2.6.pth).  ...Just a wild guess really.
> 
> On Aug 22, 2011, at 10:57 AM, dpan wrote:
> 
> > Hi,
> >
> > I'm getting the same error after having installed the latest packages in
> > Snow Leopard:
> > http://osgeo-org.1803224.n2.nabble.com/file/n6712115/Screen_shot_2011-08-22_at_9.54.29_AM.png
> >
> > ...and wonder if anyone can help.
> >
> > Here is the full error text:
> > ***************
> > Couldn't load plugin GdalTools due an error when calling its classFactory()
> > method
> >
> > Traceback (most recent call last):
> >  File
> > "/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/qgis/utils.py",
> > line 138, in startPlugin
> >    plugins[packageName] = package.classFactory(iface)
> >  File
> > "/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins/GdalTools/__init__.py",
> > line 32, in classFactory
> >    from GdalTools import GdalTools
> >  File
> > "/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/qgis/utils.py",
> > line 283, in _import
> >    mod = _builtin_import(name, globals, locals, fromlist, level)
> >  File
> > "/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins/GdalTools/GdalTools.py",
> > line 39, in
> >    raise ImportError( error_str )
> > ImportError: No module named _gdal
> >
> > Python version:
> > 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
> > [GCC 4.2.1 (Apple Inc. build 5646)]
> >
> >
> > QGIS version:
> > 1.8.0-Trunk Trunk, 7f611e9
> >
> > Python path:
> > ['/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python',
> > '/Users/dpanitz/.qgis/python', '/Users/dpanitz/.qgis/python/plugins',
> > '/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins',
> > '/Library/Frameworks/SQLite3.framework/Versions/3/Python',
> > '/Library/Frameworks/SQLite3.framework/Versions/3/Python/2.6',
> > '/Library/Python/2.6/site-packages/numpy-override',
> > '/Library/Frameworks/GDAL.framework/Versions/1.8/Python/site-packages',
> > '/Library/Frameworks/GDAL.framework/Versions/1.8/Python/2.6/site-packages',
> > '/Library/Frameworks/cairo.framework/Versions/1/Python/2.6',
> > '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip',
> > '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6',
> > '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',
> > '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',
> > '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages',
> > '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python',
> > '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',
> > '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',
> > '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',
> > '/Library/Python/2.6/site-packages',
> > '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC',
> > '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode',
> > '/Applications/QGIS-1.8.app/Contents/Resources/python/plugins/fTools/tools']
> >
> > *****
> >
> > Thanks!
> > Dave
> >
> > --
> > View this message in context: http://osgeo-org.1803224.n2.nabble.com/python-error-in-opening-tp6456668p6712115.html
> > Sent from the qgis-user mailing list archive at Nabble.com.
> > _______________________________________________
> > Qgis-user mailing list
> > Qgis-user at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
> 
> "I ache, therefore I am.  Or in my case - I am, therefore I ache."
> 
> - Marvin
> 
> 
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Oh, look, I seem to have fallen down a deep, dark hole.  Now what does that remind me of?  Ah, yes - life."

- Marvin





More information about the Qgis-user mailing list