0

I'm trying to use python module Shapely inside virtualenv, but it can't load some dll with dependency.

EDIT

Error appears on python 3.5 ! Library works fine on 3.4

Wheel with binaries: http://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely

Error:

Traceback (most recent call last):
  File "C:\Python35\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Python35\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "c:\games\ingress\mymissionssite\inteltools\IntelTools\update.py", line 9, in <module>
    from .regions import Regions
  File "c:\games\ingress\mymissionssite\inteltools\IntelTools\regions.py", line 5, in <module>
    import shapely.geometry.geo as geometry
  File "c:\Games\Ingress\MyMissionsSite\env\lib\site-packages\shapely\geometry\__init__.py", line 4, in <module>
    from .base import CAP_STYLE, JOIN_STYLE
  File "c:\Games\Ingress\MyMissionsSite\env\lib\site-packages\shapely\geometry\base.py", line 9, in <module>
    from shapely.coords import CoordinateSequence
  File "c:\Games\Ingress\MyMissionsSite\env\lib\site-packages\shapely\coords.py", line 8, in <module>
    from shapely.geos import lgeos
  File "c:\Games\Ingress\MyMissionsSite\env\lib\site-packages\shapely\geos.py", line 138, in <module>
    _lgeos = CDLL("geos_c.dll")
  File "C:\Python35\lib\ctypes\__init__.py", line 347, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

enter image description here

This shows that dll inspector can find dll inside system32 directory enter image description here

Ev_genus
  • 135
  • 11
  • 1
    Possible duplicate of [MSVCP140.dll missing](http://stackoverflow.com/questions/32998902/msvcp140-dll-missing) – Kijewski Nov 05 '15 at 18:22

1 Answers1

0

Yes. You are right with MSVCP140.dll missing. Somehow I've got only part of runtime installed. Installing https://www.microsoft.com/en-us/download/details.aspx?id=48145 fixes the problem.

Community
  • 1
  • 1
Ev_genus
  • 135
  • 11