OSError: Could not find lib geos_c.dll or load any of its variants [].

821 views
Skip to first unread message

Yennyffer Duran

unread,
May 19, 2021, 10:28:45 AM5/19/21
to thonny
Hello eveyone, 
I'm running Thonny on Windows 7 64 bits OS and I installed the arcade library , but when I try to run an example from the arcade libray I get the following errors: 

What can I do to solve this??

Traceback (most recent call last):
  File "D:\Users\duranys\AppData\Local\thonny-DURANYS\starting_template.py", line 8, in <module>
    import arcade
  File "D:\Users\duranys\AppData\Local\Programs\Thonny\lib\site-packages\arcade\__init__.py", line 194, in <module>
    from .geometry import are_polygons_intersecting
  File "D:\Users\duranys\AppData\Local\Programs\Thonny\lib\site-packages\arcade\geometry.py", line 4, in <module>
    from shapely import speedups # type: ignore
  File "D:\Users\duranys\AppData\Local\Programs\Thonny\lib\site-packages\shapely\speedups\__init__.py", line 4, in <module>
    from shapely.geometry import linestring, polygon
  File "D:\Users\duranys\AppData\Local\Programs\Thonny\lib\site-packages\shapely\geometry\__init__.py", line 4, in <module>
    from .base import CAP_STYLE, JOIN_STYLE
  File "D:\Users\duranys\AppData\Local\Programs\Thonny\lib\site-packages\shapely\geometry\base.py", line 19, in <module>
    from shapely.coords import CoordinateSequence
  File "D:\Users\duranys\AppData\Local\Programs\Thonny\lib\site-packages\shapely\coords.py", line 8, in <module>
    from shapely.geos import lgeos
  File "D:\Users\duranys\AppData\Local\Programs\Thonny\lib\site-packages\shapely\geos.py", line 169, in <module>
    _lgeos = load_dll("geos_c.dll")
  File "D:\Users\duranys\AppData\Local\Programs\Thonny\lib\site-packages\shapely\geos.py", line 62, in load_dll
    libname, fallbacks or []))
OSError: Could not find lib geos_c.dll or load any of its variants [].

Aivar Annamaa

unread,
May 19, 2021, 12:08:37 PM5/19/21
to thonny
Hi!

When googling the error message, I get the impression that this library can be reliably installed with conda. So I suggest you install Anaconda (https://www.anaconda.com/products/individual), then conda install the library there and let Thonny use Anaconda as back-end (Run => Select interpreter => Alternative Python 3...). I'm happy to dig further if you still can't use it in Thonny (and can use it outside of Thonny).


Best regards,
Aivar

Yennyffer Duran

unread,
May 19, 2021, 4:07:03 PM5/19/21
to thonny
Thanks Aivar, that's what I did.
I installed miniconda and change the interpreter in Thony and then I installed the library and It work well. 
Regards
Yennyffer
Reply all
Reply to author
Forward
0 new messages