Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in gdal --> merge #15580

Closed
qgib opened this issue Aug 29, 2012 · 13 comments
Closed

error in gdal --> merge #15580

qgib opened this issue Aug 29, 2012 · 13 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats)
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Aug 29, 2012

Author Name: stefano campus (@skampus)
Original Redmine Issue: 6280
Affected QGIS version: 1.8.0
Redmine category:gdal_tools


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
import gdal
ImportError: No module named gdal

@qgib
Copy link
Contributor Author

qgib commented Aug 29, 2012

Author Name: Giovanni Manghi (@gioman)


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.

@qgib
Copy link
Contributor Author

qgib commented Aug 29, 2012

Author Name: stefano campus (@skampus)


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

@qgib
Copy link
Contributor Author

qgib commented Aug 29, 2012

Author Name: Giovanni Manghi (@gioman)


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.

@qgib
Copy link
Contributor Author

qgib commented Aug 29, 2012

Author Name: Paolo Cavallini (@pcav)


Have you installed python-gdal?

@qgib
Copy link
Contributor Author

qgib commented Aug 30, 2012

Author Name: stefano campus (@skampus)


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...
:-(

@qgib
Copy link
Contributor Author

qgib commented Aug 30, 2012

Author Name: Giovanni Manghi (@gioman)


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?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Aug 31, 2012

Author Name: stefano campus (@skampus)


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...

@qgib
Copy link
Contributor Author

qgib commented Sep 1, 2012

Author Name: Giovanni Manghi (@gioman)


but error still exists...

it does happen on any osgeo4w installation or only on your machine?

@qgib
Copy link
Contributor Author

qgib commented Sep 4, 2012

Author Name: Paolo Cavallini (@pcav)


  • fixed_version_id was configured as Version 2.0.0

@qgib
Copy link
Contributor Author

qgib commented Dec 30, 2012

Author Name: Giovanni Manghi (@gioman)


  • assigned_to_id was configured as Giuseppe Sucameli

@qgib
Copy link
Contributor Author

qgib commented Dec 31, 2012

Author Name: Paolo Cavallini (@pcav)


  • assigned_to_id was changed from Giuseppe Sucameli to anonymous

@qgib
Copy link
Contributor Author

qgib commented Apr 17, 2013

Author Name: stefano campus (@skampus)


  • status_id was changed from Feedback to Closed

@qgib
Copy link
Contributor Author

qgib commented Jun 29, 2014

Author Name: Jürgen Fischer (@jef-n)


  • assigned_to_id removed anonymous

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats) labels May 24, 2019
@qgib qgib added this to the Version 2.0.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant