Mapnik installation error Windows

410 views
Skip to first unread message

se666en

unread,
Mar 6, 2012, 1:12:30 PM3/6/12
to mapnik
Hi,

I have installed mapnik several days ago accourding to this link:
https://github.com/mapnik/mapnik/wiki/WindowsInstallation

I used python 2.5.4 and the mapnik-2.0.1rc0 mapnik binarys (on Win 7).
whenever I clicked a python file, I got a nice GUI where I could
execute the file. The command "from mapnik import *" worked without
any problems.
Unfortunately I forgot to never touch a running system and installed
python 2.7.2, since then I do not get any GUI, so I have to run python
on the command line (maybe I have some kind of python problem...).
When I execute "from mapnik import *" now, I get the following error
message:

>>>from mapnik import *
Traceback (most recent call last):
File "<stdin>", line 1 in <module>
File "E:\OSM\Tools\mapnik-2.0.1rc0\python\2.7\site-packages\mapnik
\__init__.py from _mapnik import *
ImportError: DLL load failed: Die angegebene Prozedur wurde nicht
gefunden.
>>>

and in a seperat Windows Error Window:

Der Prozedureinsprungpunkt
"??4glyph_symbolizer@mapnik@@QAEAAU01@ABU01@@Z" wurde in der DLL
"mapnik.dll" nicht gefunden.

I removed mapnik and python several times and tried reinstallations
with python 2.5.4 and 2.7.2, always with the same result (as well
without the python GUI).

Does anybody know, what I can do to get my mapnik back running?

I appreciate any help!

7

Dane Springmeyer

unread,
Mar 6, 2012, 1:37:51 PM3/6/12
to map...@googlegroups.com
Hi,

So it sounds like you were previously using mapnik 0.7.1 with python 2.5?

Now you switched to mapnik 2.0.1rc0 and python 2.7?

Both of those version should work together. It sounds like you may still have a mapnik.dll on your PATH from 0.7.1 that you need to remove.

Look in your system ENV settings for the PATH value (or type echo %PATH% in a console) and ensure that mapnik 0.7.1 is not still installed and available.

Then follow the instructions at:

http://mapnik.org/news/2011/11/29/windows-binaries-progress/

Dane

se666en

unread,
Mar 6, 2012, 1:45:45 PM3/6/12
to mapnik
Hi Dane,

my previous installation was mapnik-2.0.1rc0 and python 2.5, i never
used 0.7.1. I've also changed the PATH variable several times and I am
pretty sure, that it is correctly set. I have the feeling that it is a
python problem (because of the missing GUI), but I can't make
somethink of this error message, so I am not sure.

7

se666en

unread,
Mar 7, 2012, 1:32:30 PM3/7/12
to mapnik
Problem solved!

Thanks for the hint! I was sure my mapnik path was set correctly, so I
figured there might be another mapnik.dll around. After a quick
filesearch I found one in my HOTOSM installation. Removing HOTOSM in
the PATH variable gave me the error message: python27.dll is missing.
So I reinstalled python2.7 instead of 2.5 an now it is working :-).

Thanks again!
Reply all
Reply to author
Forward
0 new messages