komoot / staticmap

A small, python-based library for creating map images with lines, markers and polygons.
https://www.komoot.com
Other
290 stars 65 forks source link

"DLL load failed" error. #16

Closed ahmetanildindar closed 5 years ago

ahmetanildindar commented 5 years ago

Dear all, I have an interesting problem :) I'm very happy about the staticmap in my humble Python codes for earthquake mapping.

Recently I've started havin problem importing staticmap. Below is the warning message I receive. I've checked the PIL and found that it is installed. But "ImportError: DLL load failed: The specified module could not be found." does not ignite anything to this folk :)

import staticmap Traceback (most recent call last): File "", line 1, in File "C:\ProgramData\Anaconda3\lib\site-packages\staticmap__init__.py", line 1, in from .staticmap import StaticMap, CircleMarker, IconMarker, Line, Polygon File "C:\ProgramData\Anaconda3\lib\site-packages\staticmap\staticmap.py", line 6, in from PIL import Image, ImageDraw File "C:\ProgramData\Anaconda3\lib\site-packages\PIL\Image.py", line 58, in from . import _imaging as core ImportError: DLL load failed: The specified module could not be found.

Is there anyone out there with a solution/recommendation?

Best regards from Istanbul.

++Ahmet

ahmetanildindar commented 5 years ago

I've solved problem by using below; conda unistall pillow and then pip install pillow

For my case, the recent version of PILLOW through Conda created the DLL problem.