D M*_*ell 3 python openstreetmap mapnik
我正在尝试在Windows XP上安装mapnik.
在努力遵循其网站(http://trac.mapnik.org/wiki/WindowsInstallation)上的说明后,它失败并显示以下消息:
File "<stdin>", line 1, in <module>
File "C:\mapnik-0.7.1\python\2.6\site-packages\mapnik\__init__.py", line 43, in <module> from _mapnik import *
ImportError: DLL load failed: The specified procedure could not be found.
Run Code Online (Sandbox Code Playgroud)
我也尝试了OSGEO4W安装程序,这不再成功,但在显示相同的错误消息之前还会产生一个弹出窗口:
"The procedure entry point xmlCtxtReadMemory could not be located in the dynamic link library libxml2.dll."
Run Code Online (Sandbox Code Playgroud)
故障排除建议强调了几个可能缺失的dll.我安装了这两个但未能解决问题.
Dependency Walker确定了另外三个缺失的dll,我也安装了它,但仍然没有解决问题.
任何建议非常感谢!
这是一个很老的线索.然而,我遇到了同样的问题,并且能够通过我在网络上找到的不同提示来解决它.
之后我能够执行命令"import mapnik"而没有任何问题.我还能够执行这里所述的python演示,编号为5:https://gist.github.com/springmeyer/5651701
所以我想我有两个问题.首先,我在某种程度上错过了libxml2.dll文件,其次是因为我把mapnik条目放在最后的PATH变量中,因为我的系统上有许多相同的dll,所以python不知何故错了.
希望我能在这里提供缺少的解决方案.
| 归档时间: |
|
| 查看次数: |
2737 次 |
| 最近记录: |