Discussion:
[Community] import shapely.geometry
adase akude
2011-05-14 14:49:43 UTC
Permalink
Hi,

When I type import shapely.geometry I get the ff response;

Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
import shapely.geometry
File "C:\Python27\lib\site-packages\shapely-1.2.10-py2.7.egg\shapely\geometry\__init__.py", line 4, in <module>
from geo import box, shape, asShape, mapping
File "C:\Python27\lib\site-packages\shapely-1.2.10-py2.7.egg\shapely\geometry\geo.py", line 5, in <module>
from point import Point, asPoint
File "C:\Python27\lib\site-packages\shapely-1.2.10-py2.7.egg\shapely\geometry\point.py", line 7, in <module>
from shapely.geos import lgeos, DimensionError
File "C:\Python27\lib\site-packages\shapely-1.2.10-py2.7.egg\shapely\geos.py", line 71, in <module>
_lgeos = CDLL("geos.dll")
File "C:\Python27\lib\ctypes\__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found

Please can anybody help

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gispython.org/pipermail/community/attachments/20110514/57ea2285/attachment.htm>
Sean Gillies
2011-05-15 03:42:20 UTC
Permalink
Post by adase akude
Hi,
When I type import shapely.geometry I get the ff response;
? File "<pyshell#3>", line 1, in <module>
??? import shapely.geometry
? File
"C:\Python27\lib\site-packages\shapely-1.2.10-py2.7.egg\shapely\geometry\__init__.py",
line 4, in <module>
??? from geo import box, shape, asShape, mapping
? File
"C:\Python27\lib\site-packages\shapely-1.2.10-py2.7.egg\shapely\geometry\geo.py",
line 5, in <module>
??? from point import Point, asPoint
? File
"C:\Python27\lib\site-packages\shapely-1.2.10-py2.7.egg\shapely\geometry\point.py",
line 7, in <module>
??? from shapely.geos import lgeos, DimensionError
? File
"C:\Python27\lib\site-packages\shapely-1.2.10-py2.7.egg\shapely\geos.py",
line 71, in <module>
??? _lgeos = CDLL("geos.dll")
? File "C:\Python27\lib\ctypes\__init__.py", line 353, in __init__
??? self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found
Please can anybody help
There's a geos.dll in the egg and it should have been installed to
C:\Python27\lib\site-packages\shapely-1.2.10-py2.7.egg\DLLs. Is it
there? How did you install Shapely?
--
Sean
Loading...