Bug #6280
error in gdal --> merge
| Status: | Closed | Start Date: | 08/29/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | % Done: | 0% |
||
| Category: | GDALTools | |||
| Target version: | Version 2.0.0 | |||
| Platform: | Patch supplied: | No | ||
| Platform version: | Affected version: | 1.8.0 | ||
| Status info: | Causes crash or corruption: | No | ||
| Resolution: |
Description
when i try to launch the merge command of gdal, it returns this error
Traceback (most recent call last):
File "C:\OSGeo4W\bin\gdal_merge.py", line 36, in
import gdal
File "C:\OSGeo4W\apps\Python27\lib\site-packages\gdal.py", line 2, in
from osgeo.gdal import deprecation_warn
File "C:\OSGeo4W\apps\Python27\lib\site-packages\osgeo\__init__.py", line 21, in
gdal = swig_import_helper()
File "C:\OSGeo4W\apps\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: Impossibile trovare la procedura specificata.
error occurs both in qgis 1.8 and master
same error if i launch the commando from osgeo prompt:
C:\>gdal_merge.bat -of GTiff -o E:/temp/RiesgoGuaya/Danno_10cm.tif E:/temp/Riesg
oGuaya/Danno_A_10cm.tif E:/temp/RiesgoGuaya/Danno_B_10cm.tif E:/temp/RiesgoGuaya
/Danno_C_10cm.tif
C:\OSGeo4W\\apps\Python27\lib\site.py:158: Warning: 'with' will become a reserve
d keyword in Python 2.6
'import site' failed; use -v for traceback
C:\OSGeo4W\\apps\Python27\lib\linecache.py:127: Warning: 'with' will become a re
served keyword in Python 2.6
Traceback (most recent call last):
File "C:\OSGeo4W\\bin\gdal_merge.py", line 36, in <module>
import gdal
ImportError: No module named gdal
History
Updated by Giovanni Manghi 9 months ago
If it happens from the CLI then it should not be qgis issue. You need to fix before the CLI issue and then try again qgis.
Updated by stefano campus 9 months ago
so, i have re-installed gdal by osgeo but error exists.
this error comes also for other gdal modules, like polygonyze.
gdal version is 1.9.1-rc2-2
Updated by Giovanni Manghi 9 months ago
stefano campus wrote:
so, i have re-installed gdal by osgeo but error exists. this error comes also for other gdal modules, like polygonyze. gdal version is 1.9.1-rc2-2
if gdal tools/osgeo4w installation is somehow broken, then there is no way that gdal tools can work in qgis.
Updated by Paolo Cavallini 9 months ago
Have you installed python-gdal?
Updated by stefano campus 9 months ago
yes. from osgeo i have first downgraded gdal then upgraded to last version that now is 1.9.1-1 (rc2-2 disappeared).
but error is still present...
:-(
Updated by Giovanni Manghi 9 months ago
- Status changed from New to Feedback
stefano campus wrote:
yes. from osgeo i have first downgraded gdal then upgraded to last version that now is 1.9.1-1 (rc2-2 disappeared). but error is still present... :-(
does this happens on any osgeo4w installation?
Updated by stefano campus 9 months ago
today i have updated qgis master to 1.9.55 and new version of gdal (under "command_utilities" list) appeared.
it is 1.9.1-2.
but error still exists...
Updated by Giovanni Manghi 9 months ago
but error still exists...
it does happen on any osgeo4w installation or only on your machine?
Updated by Paolo Cavallini 9 months ago
- Target version set to Version 2.0.0
Updated by Giovanni Manghi 5 months ago
- Assigned to set to Giuseppe Sucameli
Updated by Paolo Cavallini 5 months ago
- Assigned to changed from Giuseppe Sucameli to anonymous -
Updated by stefano campus about 1 month ago
- Status changed from Feedback to Closed