有一个非常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 <module>
from kartograph import Kartograph
File "C:\Python27\lib\site-packages\kartograph.py-0.6.5-py2.7.egg\kartograph\_
_init__.py", line 2, in <module>
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 <module>
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 <module>
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 <module>
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 <module>
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 <module>
from osgeo.osr import SpatialReference
File "C:\Python27\lib\site-packages\osgeo\__init__.py", line 21, in <module>
_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。但是一旦我运行kartograph.py提供的测试,我就会得到上面的错误。
我的python版本是:
C:\tests-kartograph>python
Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
我遵循了上面提到的类似主题中提供的解决方案:
我已经设置了两个环境变量,并且还在“路径”中提前编写了它。变量。我安装的GDAL核心版本及其python二进制文件是:
我还尝试了核心&#39; gdal-19-1600-core.msi&#39;,因为我不是100%确定我需要的GDAL核心,对我来说似乎微不足道我这个装置。
我已经尝试过安装自己的GDAL的osgeo4w,但它失败了,所以我现在没有安装它。我担心这会留下某种注册,这会导致我的实际安装GDAL及其DLL无法通过执行调用gdal模块的kartograph.py找到。
帮助它真的很感激,特别是如何跟踪或找到真正问题的提示:)