homebrew-osgeo4mac: error when running gdal merge
Hi! I’m having issues when running the gdal merge tool from latest osgeo4mac QGIS 3.4.4 on MacOS Mojave. It’s strange because other gdal tools run well, but when I run the mosaic I get this error:
2019-02-11T18:25:17 INFO gdal_merge.py -ot Float32 -of GTiff -o /private/var/folders/fc/8d63rgj567954sphjm_18jxc0000gn/T/processing_b134aaed11d54580be7a0a55892749b4/852f65f2e4174785a1b7b8edc21053e9/OUTPUT.tif --optfile /private/var/folders/fc/8d63rgj567954sphjm_18jxc0000gn/T/processing_b134aaed11d54580be7a0a55892749b4/mergeInputFiles.txt
2019-02-11T18:25:17 INFO GDAL execution console output
Traceback (most recent call last):
File "/usr/local/opt/gdal2-python/bin/gdal_merge.py", line 38, in
from osgeo import gdal
File "/usr/local/opt/gdal2-python/lib/python3.7/site-packages/osgeo/__init__.py", line 21, in
_gdal = swig_import_helper()
File "/usr/local/opt/gdal2-python/lib/python3.7/site-packages/osgeo/__init__.py", line 13, in swig_import_helper
import _gdal
ImportError: No module named _gdal
I already checked those directories and the .py files are there, so I’m wondering what can be causing this error. Thanks!
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (1 by maintainers)
@GuiAlDuS What kind of problems are you having? do you mean others?
If you are installing.
To rule out any problem you have in your homebrew installation:
and the temporary build files in
/tmp
An installation that failed previously may have created this link
you will need to delete it.
If you are going to use several flags, make sure that the system can open the necessary number of files.
If you only use
qgis
without flags, you do not need to build, will use the generated bottle.p/d: keep in mind that if it is built in CI, it should be built on any other machine. If your installation fails, it is due to your Homebrew environment, review it.
@GuiAlDuSFormula updated, problems solved! 🎉
@GuiAlDuS I will implement the solution, verified and it works.
I have tried
merge
andpolygonize
. Everything seems to work correctly!in the course of the day I will fix this!
@GuiAlDuS @PeterPetrik @saberraz 🎉 I already found a solution for this, I will comment. Before I need to see what happens in Travis, building bottles.
Thanks! Just in case it’s needed, this is the info of the versions I have:
Thanks FJ! I’ll be checking for the updates.
Just in case it’s important for the debugging, I had the same issue with the Polygonize (raster to vector) tool:
I am rebuilding bottles and applying changes in several formulas.
Just wait a couple of hours, I’ll solve it.