[Qgis-user] problems with polygonize with qgis2.2

Agustin Diez-Castillo gvsig.mac at gmail.com
Fri Feb 28 03:29:22 PST 2014


I did remove processing from ~/.qgis2 (see new error at bottom) and try
from the python console. No luck

from shapely.ops import polygonize

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File
"/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py",
line 453, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/ops.py",
line 7, in <module>
    from shapely.geos import lgeos
  File
"/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py",
line 453, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/geos.py",
line 59, in <module>
    _lgeos = load_dll('geos_c', fallbacks=alt_paths)
  File
"/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/geos.py",
line 32, in load_dll
    return CDLL(lib)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py",
line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/usr/local/lib/libgeos_c.dylib, 6): no suitable image
found.  Did find:
/usr/local/lib/libgeos_c.dylib: no matching architecture in universal
wrapper

the new log

Uncaught error while executing algorithm

Traceback (most recent call last):

Traceback (most recent call last):

File
"/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/GeoAlgorithm.py",
line 202, in execute

self.processAlgorithm(progress)

File
"/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/Polygonize.py",
line 48, in processAlgorithm

from shapely.ops import polygonize

File
"/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py",
line 453, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File
"/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/ops.py",
line 7, in <module>

from shapely.geos import lgeos

File
"/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py",
line 453, in _import

mod = _builtin_import(name, globals, locals, fromlist, level)

File
"/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/geos.py",
line 59, in <module>

_lgeos = load_dll('geos_c', fallbacks=alt_paths)

File
"/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/geos.py",
line 32, in load_dll

return CDLL(lib)

File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py",
line 365, in __init__

self._handle = _dlopen(self._name, mode)

OSError: dlopen(/usr/local/lib/libgeos_c.dylib, 6): no suitable image
found. Did find:

/usr/local/lib/libgeos_c.dylib: no matching architecture in universal
wrapper




On Thu, Feb 27, 2014 at 1:59 AM, William Kyngesburye
<woklist at kyngchaos.com>wrote:

> A couple thoughts.  At least from Python and the QGIS python console, I
> don't have problems.
>
> Try running this in the QGIS python console:
>
> from shapely.ops import polygonize
>
> Also, I wonder if the extra copy of the Processing plugin is the problem
> (your error is coming out of your .qgis2 installed (updated) plugins).
>  Possibly you updated the processing plugin in QGIS 2.0, but now it's older
> than the copy in 2.2.  Try deleting the copy in ~/.qgis2.
>
> On Feb 26, 2014, at 10:27 AM, William Kyngesburye wrote:
>
> > I added Shapely to my GEOS framework last fall.  It looks like it's
> having problems loading the GEOS framework.  I'll look into it this evening.
> >
> > On Feb 26, 2014, at 10:18 AM, Agustin Diez-Castillo wrote:
> >
> >> Not sure if the right list
> >> When trying to polygonize with Kyngchaos' last version I got this
> message.
> >> No sure if this problem only occurs in Mac.
> >> Agustin
> >>
> >> OSError: dlopen(/usr/local/lib/libgeos_c.dylib, 6): no suitable image
> found. Did find:
> >> /usr/local/lib/libgeos_c.dylib: no matching architecture in universal
> wrapper
> >>
> >> Uncaught error while executing algorithm
> >> Traceback (most recent call last):
> >> Traceback (most recent call last):
> >> File
> "/Users/adiez/.qgis2/python/plugins/processing/core/GeoAlgorithm.py", line
> 202, in execute
> >> self.processAlgorithm(progress)
> >> File
> "/Users/adiez/.qgis2/python/plugins/processing/algs/Polygonize.py", line
> 48, in processAlgorithm
> >> from shapely.ops import polygonize
> >> File
> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py",
> line 453, in _import
> >> mod = _builtin_import(name, globals, locals, fromlist, level)
> >> File
> "/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/ops.py",
> line 7, in <module>
> >> from shapely.geos import lgeos
> >> File
> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py",
> line 453, in _import
> >> mod = _builtin_import(name, globals, locals, fromlist, level)
> >> File
> "/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/geos.py",
> line 59, in <module>
> >> _lgeos = load_dll('geos_c', fallbacks=alt_paths)
> >> File
> "/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/geos.py",
> line 32, in load_dll
> >> return CDLL(lib)
> >> File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py",
> line 365, in __init__
> >> self._handle = _dlopen(self._name, mode)
> >> OSError: dlopen(/usr/local/lib/libgeos_c.dylib, 6): no suitable image
> found. Did find:
> >> /usr/local/lib/libgeos_c.dylib: no matching architecture in universal
> wrapper
> >> QGIS version2.2.0-ValmieraQGIS code revisionCompiled against
> Qt4.8.5Running against Qt4.8.5Compiled against GDAL/OGR1.10.1Running
> against GDAL/OGR1.10.1Compiled against GEOS3.4.2-CAPI-1.8.2Running against
> GEOS3.4.2-CAPI-1.8.2 r3921PostgreSQL Client Version9.3.1SpatiaLite
> Version4.1.1QWT Version6.0.2PROJ.4 Version480QScintilla2 Version2.8
> >
> > -----
> > William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> > http://www.kyngchaos.com/
> >
> > [Trillian]  What are you supposed to do WITH a maniacally depressed
> robot?
> >
> > [Marvin]  You think you have problems?  What are you supposed to do if
> you ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000
> times more intelligent than you and even I don't know the answer...
> >
> > - HitchHiker's Guide to the Galaxy
> >
> >
> > _______________________________________________
> > 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/
>
> The equator is so long, it could encircle the earth completely once.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140228/fd0d5e02/attachment.html>


More information about the Qgis-user mailing list