Shapely.geometry doesn't work

Trying to use shapely to cut down some geometry run time inside dynamo. I went through the pip install setup described here:

pip installed shapely, shapely works great. When I try to use “from shapely.geometry import Polygon” i get the below error. Any ideas?

Warning: OSError : Could not find lib geos_c.dll or load any of its variants . [’ File “”, line 1, in \n’, ’ File “C:\Users\WalkerWentzler\AppData\Local\python-3.8.3-embed-amd64\lib\site-packages\shapely\geometry\”, line 4, in \n from .base import CAP_STYLE, JOIN_STYLE\n’, ’ File “C:\Users\WalkerWentzler\AppData\Local\python-3.8.3-embed-amd64\lib\site-packages\shapely\geometry\”, line 18, in \n from shapely.coords import CoordinateSequence\n’, ’ File “C:\Users\WalkerWentzler\AppData\Local\python-3.8.3-embed-amd64\lib\site-packages\shapely\”, line 8, in \n from shapely.geos import lgeos\n’, ’ File “C:\Users\WalkerWentzler\AppData\Local\python-3.8.3-embed-amd64\lib\site-packages\shapely\”, line 160, in \n _lgeos = load_dll(“geos_c.dll”)\n’, ’ File “C:\Users\WalkerWentzler\AppData\Local\python-3.8.3-embed-amd64\lib\site-packages\shapely\”, line 60, in load_dll\n raise OSError(\n

Hello @WWentzler and welcome

the error indicates that dll libraries are missing or fail to load

  • make sure you have the dll folder

  • check if the dlls are not locked

1 Like