qgis / homebrew-qgisdev

Homebrew recipes for QGIS and MacOS
38 stars 31 forks source link

Import error-- image not found #56

Open Tele-Pet opened 6 years ago

Tele-Pet commented 6 years ago
Macbook Pro:~ myMacbook$ brew install qgis3-dev --with-3d --no-sandbox
==> Installing qgis3-dev from qgis/qgisdev
==> Cloning https://github.com/qgis/QGIS.git
Updating /Users/myMacbook/Library/Caches/Homebrew/qgis3-dev--git
==> Checking out branch master
==> /usr/local/bin/pip3 install --user future psycopg2 python-dateutil httplib2 pytz six nose2 pygments jinja2 pyyaml requests owslib
==> cmake -G Ninja -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/qgis3-dev/2.99 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIN
==> cmake --build . --target all -- -j 4
Last 15 lines from /Users/myMacbook/Library/Logs/Homebrew/qgis3-dev/03.cmake:
[4647/4668] cd /tmp/qgis3-dev-20180224-29201-1gqx9ok/build/python/plugins/db_manager && /tmp/qgis3-dev-20180224-29201-1gqx9ok/scripts/pyuic-wrapper.sh /usr/local/bin/pyuic5 /tmp/qgis3-dev-20180224-29201-1gqx9ok/build/output/lib /tmp/qgis3-dev-20180224-29201-1gqx9ok/build/output/python /usr/local/bin/python3 /tmp/qgis3-dev-20180224-29201-1gqx9ok/python/plugins/db_manager/ui/DlgAddGeometryColumn.ui -o /tmp/qgis3-dev-20180224-29201-1gqx9ok/build/python/plugins/db_manager/ui_DlgAddGeometryColumn.py
FAILED: python/plugins/db_manager/ui_DlgAddGeometryColumn.py 
cd /tmp/qgis3-dev-20180224-29201-1gqx9ok/build/python/plugins/db_manager && /tmp/qgis3-dev-20180224-29201-1gqx9ok/scripts/pyuic-wrapper.sh /usr/local/bin/pyuic5 /tmp/qgis3-dev-20180224-29201-1gqx9ok/build/output/lib /tmp/qgis3-dev-20180224-29201-1gqx9ok/build/output/python /usr/local/bin/python3 /tmp/qgis3-dev-20180224-29201-1gqx9ok/python/plugins/db_manager/ui/DlgAddGeometryColumn.ui -o /tmp/qgis3-dev-20180224-29201-1gqx9ok/build/python/plugins/db_manager/ui_DlgAddGeometryColumn.py
Traceback (most recent call last):
  File "/tmp/qgis3-dev-20180224-29201-1gqx9ok/scripts/pyuic-wrapper.py", line 26, in <module>
    import qgis.PyQt.uic.pyuic
  File "/tmp/qgis3-dev-20180224-29201-1gqx9ok/build/output/python/qgis/__init__.py", line 72, in <module>
    from qgis.core import QgsFeature, QgsGeometry
  File "/tmp/qgis3-dev-20180224-29201-1gqx9ok/build/output/python/qgis/core/__init__.py", line 34, in <module>
    from qgis._core import *
ImportError: dlopen(/tmp/qgis3-dev-20180224-29201-1gqx9ok/build/output/python/qgis/_core.so, 2): Library not loaded: /usr/local/opt/json-c/lib/libjson-c.2.dylib
  Referenced from: /usr/local/opt/gdal2/lib/libgdal.20.dylib
  Reason: image not found
[4648/4668] cd /tmp/qgis3-dev-20180224-29201-1gqx9ok/build && /usr/local/Cellar/cmake/3.10.2/bin/cmake -P /tmp/qgis3-dev-20180224-29201-1gqx9ok/cmake/QsciAPI.cmake
ninja: build stopped: subcommand failed.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/qgis/homebrew-qgisdev/issues

These open issues may also help:
Python 3.6.0 upgrade breaks existing qgis3-dev https://github.com/qgis/homebrew-qgisdev/issues/11