<div dir="ltr">Thanks,<div>With the new GEOS framework, it's working now on my side.</div><div>Cheers.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 3, 2014 at 5:40 AM, William Kyngesburye <span dir="ltr"><<a href="mailto:woklist@kyngchaos.com" target="_blank">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">I verified that this is the problem.  I have a new GEOS framework available (also in GDAL Complete).<br>
<div class="HOEnZb"><div class="h5"><br>
On Mar 2, 2014, at 1:20 PM, William Kyngesburye wrote:<br>
<br>
> I had another thought: possibly a bug in the shapely load_dll() function.  It tries to load the primary library name, if the file exists, otherwise it tries the fallbacks.  The GEOS framework is a fallback, and libgeos_c is the primary.  You probably have an old libgeos_c built only 32 bit, so the file exists but it fails to load and shapely never tries the fallbacks.<br>

><br>
> On Feb 28, 2014, at 9:02 AM, William Kyngesburye wrote:<br>
><br>
>> Does the import work from python in a Terminal? (make sure it's the system python, /usr/bin/python)<br>
>><br>
>> On Feb 28, 2014, at 5:29 AM, Agustin Diez-Castillo wrote:<br>
>><br>
>>> I did remove processing from ~/.qgis2 (see new error at bottom) and try from the python console. No luck<br>
>>><br>
>>> from shapely.ops import polygonize<br>
>>><br>
>>> Traceback (most recent call last):<br>
>>> File "<input>", line 1, in <module><br>
>>> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 453, in _import<br>
>>>   mod = _builtin_import(name, globals, locals, fromlist, level)<br>
>>> File "/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/ops.py", line 7, in <module><br>
>>>   from shapely.geos import lgeos<br>
>>> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 453, in _import<br>
>>>   mod = _builtin_import(name, globals, locals, fromlist, level)<br>
>>> File "/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/geos.py", line 59, in <module><br>
>>>   _lgeos = load_dll('geos_c', fallbacks=alt_paths)<br>
>>> File "/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/geos.py", line 32, in load_dll<br>
>>>   return CDLL(lib)<br>
>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__<br>
>>>   self._handle = _dlopen(self._name, mode)<br>
>>> OSError: dlopen(/usr/local/lib/libgeos_c.dylib, 6): no suitable image found.  Did find:<br>
>>>     /usr/local/lib/libgeos_c.dylib: no matching architecture in universal wrapper<br>
>>><br>
>>> the new log<br>
>>><br>
>>> Uncaught error while executing algorithm<br>
>>> Traceback (most recent call last):<br>
>>> Traceback (most recent call last):<br>
>>> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/GeoAlgorithm.py", line 202, in execute<br>
>>> self.processAlgorithm(progress)<br>
>>> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/Polygonize.py", line 48, in processAlgorithm<br>
>>> from shapely.ops import polygonize<br>
>>> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 453, in _import<br>
>>> mod = _builtin_import(name, globals, locals, fromlist, level)<br>
>>> File "/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/ops.py", line 7, in <module><br>
>>> from shapely.geos import lgeos<br>
>>> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 453, in _import<br>
>>> mod = _builtin_import(name, globals, locals, fromlist, level)<br>
>>> File "/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/geos.py", line 59, in <module><br>
>>> _lgeos = load_dll('geos_c', fallbacks=alt_paths)<br>
>>> File "/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/geos.py", line 32, in load_dll<br>
>>> return CDLL(lib)<br>
>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__<br>
>>> self._handle = _dlopen(self._name, mode)<br>
>>> OSError: dlopen(/usr/local/lib/libgeos_c.dylib, 6): no suitable image found. Did find:<br>
>>> /usr/local/lib/libgeos_c.dylib: no matching architecture in universal wrapper<br>
>>><br>
>>><br>
>>><br>
>>> On Thu, Feb 27, 2014 at 1:59 AM, William Kyngesburye <<a href="mailto:woklist@kyngchaos.com">woklist@kyngchaos.com</a>> wrote:<br>
>>> A couple thoughts.  At least from Python and the QGIS python console, I don't have problems.<br>
>>><br>
>>> Try running this in the QGIS python console:<br>
>>><br>
>>> from shapely.ops import polygonize<br>
>>><br>
>>> 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.<br>

>>><br>
>>> On Feb 26, 2014, at 10:27 AM, William Kyngesburye wrote:<br>
>>><br>
>>>> 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.<br>
>>>><br>
>>>> On Feb 26, 2014, at 10:18 AM, Agustin Diez-Castillo wrote:<br>
>>>><br>
>>>>> Not sure if the right list<br>
>>>>> When trying to polygonize with Kyngchaos' last version I got this message.<br>
>>>>> No sure if this problem only occurs in Mac.<br>
>>>>> Agustin<br>
>>>>><br>
>>>>> OSError: dlopen(/usr/local/lib/libgeos_c.dylib, 6): no suitable image found. Did find:<br>
>>>>> /usr/local/lib/libgeos_c.dylib: no matching architecture in universal wrapper<br>
>>>>><br>
>>>>> Uncaught error while executing algorithm<br>
>>>>> Traceback (most recent call last):<br>
>>>>> Traceback (most recent call last):<br>
>>>>> File "/Users/adiez/.qgis2/python/plugins/processing/core/GeoAlgorithm.py", line 202, in execute<br>
>>>>> self.processAlgorithm(progress)<br>
>>>>> File "/Users/adiez/.qgis2/python/plugins/processing/algs/Polygonize.py", line 48, in processAlgorithm<br>
>>>>> from shapely.ops import polygonize<br>
>>>>> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 453, in _import<br>
>>>>> mod = _builtin_import(name, globals, locals, fromlist, level)<br>
>>>>> File "/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/ops.py", line 7, in <module><br>
>>>>> from shapely.geos import lgeos<br>
>>>>> File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 453, in _import<br>
>>>>> mod = _builtin_import(name, globals, locals, fromlist, level)<br>
>>>>> File "/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/geos.py", line 59, in <module><br>
>>>>> _lgeos = load_dll('geos_c', fallbacks=alt_paths)<br>
>>>>> File "/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/shapely/geos.py", line 32, in load_dll<br>
>>>>> return CDLL(lib)<br>
>>>>> File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__<br>
>>>>> self._handle = _dlopen(self._name, mode)<br>
>>>>> OSError: dlopen(/usr/local/lib/libgeos_c.dylib, 6): no suitable image found. Did find:<br>
>>>>> /usr/local/lib/libgeos_c.dylib: no matching architecture in universal wrapper<br>
>>>>> 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<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>
>> "This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"<br>

>><br>
>> - The Ruler of the Universe<br>
>><br>
>><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>
> Earth: "Mostly harmless"<br>
><br>
> - revised entry in the HitchHiker's Guide to the Galaxy<br>
><br>
><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>
"This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"<br>
<br>
- The Ruler of the Universe<br>
<br>
<br>
</div></div></blockquote></div><br></div>