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

Symbol not found: _curl_mime_addpart with GDAL merge #111

Closed
PeterPetrik opened this issue Feb 8, 2021 · 8 comments · Fixed by #112
Closed

Symbol not found: _curl_mime_addpart with GDAL merge #111

PeterPetrik opened this issue Feb 8, 2021 · 8 comments · Fixed by #112
Assignees
Labels
bug Something isn't working qgis-bundle qgis-deps

Comments

@PeterPetrik
Copy link
Contributor

I use the latest Version of QGIS in German on Mac OS 10.14.6 and wanted to merge some 100 .asc files. I could load them into QGIS, but when merging with GDAL the following error occurred and no new layer was produced. I tried to install GDAL3.3 and python 3.9 externaly, but it seems QGIS doesn't makes use of them. My solution was to use an old installation of QGIS 3.10 on Mac OS 10.13, where evything worked fine. Hope this helps to improve next versions.

cc @stinanickel @gioman

132260_2633500_1257000.asc" "/Users/dt/Desktop/PROJEKT ERGOLZ/DTM itingen bis ormalingen 5m/132260_2633500_1257500.asc" "/Users/dt/Desktop/PROJEKT ERGOLZ/DTM itingen bis ormalingen 5m/132260_2633500_1258000.asc" "/Users/dt/Desktop/PROJEKT ERGOLZ/DTM itingen bis ormalingen 5m/132260_2633500_1258500.asc"
2021-02-07T00:11:16 INFO GDAL execution console output
Traceback (most recent call last):

          File "/Applications/QGIS.app/Contents/MacOS/lib/python3.7/site-packages/GDAL-3.1.2-py3.7-macosx-10.13.0-x86_64.egg/osgeo/__init__.py", line 18, in swig_import_helper
         
          return importlib.import_module(mname)
         
          File "/Applications/QGIS.app/Contents/MacOS/lib/python3.7/importlib/__init__.py", line 127, in import_module
         
          return _bootstrap._gcd_import(name[level:], package, level)
         
          File "", line 1006, in _gcd_import
         
          File "", line 983, in _find_and_load
         
          File "", line 967, in _find_and_load_unlocked
         
          File "", line 670, in _load_unlocked
         
          File "", line 583, in module_from_spec
         
          File "", line 1043, in create_module
         
          File "", line 219, in _call_with_frames_removed
         
         ImportError: dlopen(/Applications/QGIS.app/Contents/MacOS/lib/python3.7/site-packages/GDAL-3.1.2-py3.7-macosx-10.13.0-x86_64.egg/osgeo/_gdal.cpython-37m-darwin.so, 2): Symbol not found: _curl_mime_addpart
         
          Referenced from: /Applications/QGIS.app/Contents/MacOS/bin/../lib/libgdal.27.dylib
         
          Expected in: /usr/lib/libcurl.4.dylib
         
          in /Applications/QGIS.app/Contents/MacOS/bin/../lib/libgdal.27.dylib
         
         
         
         During handling of the above exception, another exception occurred:
         
         
         
         Traceback (most recent call last):
         
          File "/Applications/QGIS.app/Contents/MacOS/bin/gdal_retile.py", line 4, in 
         
          __import__('pkg_resources').run_script('GDAL==3.1.2', 'gdal_retile.py')
         
          File "/Applications/QGIS.app/Contents/MacOS/lib/python3.7/site-packages/pkg_resources/__init__.py", line 667, in run_script
         
          self.require(requires)[0].run_script(script_name, ns)
         
          File "/Applications/QGIS.app/Contents/MacOS/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1464, in run_script
         
          exec(code, namespace, namespace)
         
          File "/Applications/QGIS.app/Contents/Resources/python/site-packages/GDAL-3.1.2-py3.7-macosx-10.13.0-x86_64.egg/EGG-INFO/scripts/gdal_retile.py", line 36, in 
         
          from osgeo import gdal
         
          File "/Applications/QGIS.app/Contents/MacOS/lib/python3.7/site-packages/GDAL-3.1.2-py3.7-macosx-10.13.0-x86_64.egg/osgeo/__init__.py", line 32, in 
         
          _gdal = swig_import_helper()
         
          File "/Applications/QGIS.app/Contents/MacOS/lib/python3.7/site-packages/GDAL-3.1.2-py3.7-macosx-10.13.0-x86_64.egg/osgeo/__init__.py", line 31, in swig_import_helper
         
          return importlib.import_module('_gdal')
         
          File "/Applications/QGIS.app/Contents/MacOS/lib/python3.7/importlib/__init__.py", line 127, in import_module
         
          return _bootstrap._gcd_import(name[level:], package, level)
         
         ModuleNotFoundError: No module named '_gdal'
@PeterPetrik
Copy link
Contributor Author

@stinanickel can you please test with latest nightly to check if it is present there? https://qgis.org/downloads/macos/nightly/qgis_nightly_master_20210207_122751.dmg

thanks

@PeterPetrik
Copy link
Contributor Author

duplicate of #102

@stinanickel
Copy link

stinanickel commented Feb 8, 2021 via email

@PeterPetrik
Copy link
Contributor Author

We are using the system iconv and libcurl libraries, but it looks like on some systems it is not present in the /usr/lib/* folder

@frchalaoux
Copy link

libcurl.4.dylib is not missing in /usr/lib of my macos. Should I try to install a new version of libcurl with homebrew or other in an other PATH ?

@PeterPetrik
Copy link
Contributor Author

i think the curl version you have is not the same as it is on the build server where we package QGIS. solution is to package it with QGIS.app. Working on it (hope I have something to test this week)

@frchalaoux
Copy link

Thanks a lot Peter !

@casandra9
Copy link

casandra9 commented Feb 11, 2021

gdal_merge.py -ot UInt16 -of GTiff -o /Users/xxxxxx/Documents/_bc3d/test.tif --optfile /private/var/folders/q2/fzyv0v2523xfxzgkdj10f13r0000gn/T/processing_nEsMtc/39d365e3855c49c58b37edec265b54c6/mergeInputFiles.txt

QGIS version: 3.17.0-Master
(...)
ImportError: dlopen(/Applications/QGIS-Dev.app/Contents/MacOS/lib/python3.7/site-packages/GDAL-3.1.2-py3.7-macosx-10.13.0-x86_64.egg/osgeo/_gdal.cpython-37m-darwin.so, 2): Symbol not found: _curl_mime_addpart
(...)

The mergeInputFiles.txt file is not being created! Copying the command into terminal and adding all images to be merged instead of the .txt works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working qgis-bundle qgis-deps
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants