有一个非常similar topic但解决方案没有帮助我。在
我正在尝试安装并从安装中运行kartograpgh.py测试,结果如下所示=>C:\tests-kartograph>run_tests.py
Traceback (most recent call last):
File "C:\tests-kartograph\run_tests.py", line 1, in
from kartograph import Kartograph
File "C:\Python27\lib\site-packages\kartograph.py-0.6.5-py2.7.egg\kartograph\_
_init__.py", line 2, in
from kartograph import Kartograph
File "C:\Python27\lib\site-packages\kartograph.py-0.6.5-py2.7.egg\kartograph\k
artograph.py", line 8, in
from map import Map
File "C:\Python27\lib\site-packages\kartograph.py-0.6.5-py2.7.egg\kartograph\m
ap.py", line 3, in
from maplayer import MapLayer
File "C:\Python27\lib\site-packages\kartograph.py-0.6.5-py2.7.egg\kartograph\m
aplayer.py", line 2, in
from layersource import handle_layer_source
File "C:\Python27\lib\site-packages\kartograph.py-0.6.5-py2.7.egg\kartograph\l
ayersource\__init__.py", line 11, in
from shplayer import ShapefileLayer
File "C:\Python27\lib\site-packages\kartograph.py-0.6.5-py2.7.egg\kartograph\l
ayersource\shplayer.py", line 6, in
from osgeo.osr import SpatialReference
File "C:\Python27\lib\site-packages\osgeo\__init__.py", line 21, in
_gdal = swig_import_helper()
File "C:\Python27\lib\site-packages\osgeo\__init__.py", line 17, in swig_impor
t_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: DLL load failed: No se encontr¾ el proceso especificado.
我成功地安装了所有依赖库,而且卡皮卡罗盘. 但一旦我运行了提供的测试kartograph.py我得到上面的错误。在
我的python版本是:
^{pr2}$
我遵循了上述类似主题中提供的解决方案:
我已经设置了两个环境变量,同时还要注意将它写在前面的'path'变量中。我安装的GDAL core及其python二进制文件的版本是:gdal-19-1500-核心.msi格达尔
GDAL-1.9.2.win32-py2.7.msi
我也试过核心的gdal-19-1600-核心.msi'因为我不能百分之百地确定我需要的GDAL内核,所以这个安装对我来说似乎并不微不足道。在
我试过安装osgeo4w,它自己安装GDAL,但是失败了,所以我现在还没有安装它。我担心这会留下某种注册,这会使我实际安装的GDAL及其DLL在执行时找不到kartograph.py称为gdal模块。在
帮助它得到真正的赞赏,特别是关于如何跟踪或定位真正问题的提示:)