[Eric] Gdal and eric in windows
Luis Solis
solisgb at gmail.com
Wed Dec 26 08:52:19 GMT 2012
Hi
I've installed GDAL (http://pypi.python.org/pypi/GDAL) and python bindings
(py 2.7) on win xp sp3 using Tamas Szekeres's binaries (
http://www.gisinternals.com/sdk).
I've download python 2.7 from python.org [MSC v.1500 32 bit (Intel)]
and I've use gdal-19-1500-core.msi & GDAL-1.9.2.win32-py2.7.msi
All the environmental variables are ok (path, gdal_data and pythonpath).
path2gdal is the first in the list of directories in the PATH(PATH=c:\gdal;...)
I've tried with a simple test
try:
from osgeo import ogr
except:
import ogr
If I run the script from command line all is ok
If I try to run the script from Eric, both imports throws an error message
ImportError: DLL load failed (detailed below)
I don't know what I can do
--
Luis
Error message
Error in sys.excepthook:
Traceback (most recent call last):
File
"c:\python27\Lib\site-packages\eric4\DebugClients\Python\DebugClientBase.py",
line 1109, in __unhandled_exception
self.mainThread.user_exception(None, (exctype,excval,exctb), 1)
File
"c:\python27\Lib\site-packages\eric4\DebugClients\Python\DebugBase.py",
line 617, in user_exception
unicode(excval).encode(self._dbgClient.getCoding())]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position 30:
ordinal not in range(128)
Original exception was:
Traceback (most recent call last):
File
"c:\python27\Lib\site-packages\eric4\DebugClients\Python\DebugClient.py",
line 38, in <module>
debugClient.main()
File
"c:\python27\Lib\site-packages\eric4\DebugClients\Python\DebugClientBase.py",
line 1961, in main
self.__interact()
File
"c:\python27\Lib\site-packages\eric4\DebugClients\Python\DebugClientBase.py",
line 981, in __interact
self.eventLoop()
File
"c:\python27\Lib\site-packages\eric4\DebugClients\Python\DebugClientBase.py",
line 1009, in eventLoop
self.readReady(self.readstream.fileno())
File
"c:\python27\Lib\site-packages\eric4\DebugClients\Python\AsyncIO.py", line
67, in readReady
self.handleLine(s)
File
"c:\python27\Lib\site-packages\eric4\DebugClients\Python\DebugClientBase.py",
line 544, in handleLine
execfile(sys.argv[0], self.debugMod.__dict__)
File "C:\Doc\dev\python\gis\gdalogrtest\x_gdalogrtest.py", line 21, in
<module>
import ogr
File "c:\python27\lib\site-packages\ogr.py", line 2, in <module>
from osgeo.gdal import deprecation_warn
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_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: DLL load failed: No se encontró el proceso especificado. (
translation, specified process not found)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/eric/attachments/20121226/89fba56f/attachment.html>
More information about the Eric
mailing list