Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

ImportError: No module named site #62

Open
Nenuial opened this issue Mar 6, 2018 · 19 comments
Open

ImportError: No module named site #62

Nenuial opened this issue Mar 6, 2018 · 19 comments

Comments

@Nenuial
Copy link

Nenuial commented Mar 6, 2018

I can't get the homebrew Formula to work anymore... I have the impression that the move of homebrew formulas from "python3" to "python" and "python" to "python@2" coincided with the build breaking, but I'm not sure.

Last 15 lines from /Users/admin/Library/Logs/Homebrew/qgis3-dev/03.cmake:

[4521/4564] /usr/local/Homebrew/Library/Homebrew/shims/super/clang++  -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_POSITIONING_LIB -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DWITH_BINDINGS -DWITH_QTWEBKIT -Dprotected=public -Dpython_module_qgis__core_EXPORTS -Isrc/analysis/openstreetmap -Isrc/analysis/interpolation -Isrc/analysis/network -Isrc/analysis/raster -Isrc/analysis/vector -Isrc/analysis/processing -I../python/../src/analysis/openstreetmap -I../python/../src/analysis/interpolation -I../python/../src/analysis/network -I../python/../src/analysis/raster -I../python/../src/analysis/vector -I../python/../src/analysis/processing -I. -isystem /usr/local/Frameworks/Python.framework/Versions/3.6/Headers -isystem /usr/local/Cellar/sip/4.19.8/include -isystem /usr/local/opt/gdal2/include -isystem /usr/local/opt/geos/include -isystem /usr/local/opt/qwt/lib/qwt.framework/Headers -isystem ../external/qextserialport -isystem /usr/local/opt/qca/lib/qca-qt5.framework/Headers -isystem /usr/local/include/qt5keychain -isystem /usr/local/opt/sqlite/include -isystem /usr/local/opt/qscintilla2/include -I../src/core -I../src/core/3d -I../src/core/annotations -I../src/core/auth -I../src/core/expression -I../src/core/pal -I../src/core/diagram -I../src/core/effects -I../src/core/fieldformatter -I../src/core/dxf -I../src/core/geometry -I../src/core/geocms -I../src/core/geocms/geonode -I../src/core/gps -I../src/core/layertree -I../src/core/layout -I../src/core/locator -I../src/core/metadata -I../src/core/processing -I../src/core/processing/models -I../src/core/providers -I../src/core/providers/memory -I../src/core/raster -I../src/core/scalebar -I../src/core/symbology -I../src/plugins -Isrc/core -Isrc/ui -Isrc/analysis -I../src/gui -I../src/gui/symbology -I../src/gui/raster -I../src/gui/attributetable -I../src/gui/auth -I../src/gui/editorwidgets -I../src/gui/editorwidgets/core -I../src/gui/effects -I../src/gui/layertree -I../src/gui/layout -I../src/gui/locator -I../src/gui/processing -Isrc/gui -I../python/../src/server -Isrc/server -iframework /usr/local/opt/qt/lib -isystem /usr/local/opt/qt/lib/QtXml.framework/Headers -isystem /usr/local/opt/qt/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt/./mkspecs/macx-clang -isystem /usr/local/opt/qt/lib/QtGui.framework/Headers -isystem /System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem /usr/local/opt/qt/lib/QtWidgets.framework/Headers -isystem /usr/local/opt/qt/lib/QtSvg.framework/Headers -isystem /usr/local/opt/qt/lib/QtPrintSupport.framework/Headers -isystem /usr/local/opt/qt/lib/QtNetwork.framework/Headers -iframework /usr/local/opt/qt5-webkit/lib -isystem /usr/local/opt/qt5-webkit/lib/QtWebKitWidgets.framework/Headers -isystem /usr/local/opt/qt5-webkit/lib/QtWebKit.framework/Headers -isystem /usr/local/opt/qt/lib/QtSql.framework/Headers -isystem /usr/local/opt/qt/lib/QtConcurrent.framework/Headers -isystem /usr/local/opt/qt/lib/QtPositioning.framework/Headers -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -O2 -g -DNDEBUG -fPIC -fvisibility=default   -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -F/usr/local/opt/qca/lib  -fPIC -std=gnu++11 -MD -MT python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart0.cpp.o -MF python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart0.cpp.o.d -o python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart0.cpp.o -c python/core/sip_corepart0.cpp
[4522/4564] /usr/local/Homebrew/Library/Homebrew/shims/super/clang++  -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_POSITIONING_LIB -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DWITH_BINDINGS -DWITH_QTWEBKIT -Dprotected=public -Dpython_module_qgis__gui_EXPORTS -Isrc/analysis/openstreetmap -Isrc/analysis/interpolation -Isrc/analysis/network -Isrc/analysis/raster -Isrc/analysis/vector -Isrc/analysis/processing -I../python/../src/analysis/openstreetmap -I../python/../src/analysis/interpolation -I../python/../src/analysis/network -I../python/../src/analysis/raster -I../python/../src/analysis/vector -I../python/../src/analysis/processing -I. -isystem /usr/local/Frameworks/Python.framework/Versions/3.6/Headers -isystem /usr/local/Cellar/sip/4.19.8/include -isystem /usr/local/opt/gdal2/include -isystem /usr/local/opt/geos/include -isystem /usr/local/opt/qwt/lib/qwt.framework/Headers -isystem ../external/qextserialport -isystem /usr/local/opt/qca/lib/qca-qt5.framework/Headers -isystem /usr/local/include/qt5keychain -isystem /usr/local/opt/sqlite/include -isystem /usr/local/opt/qscintilla2/include -I../src/core -I../src/core/3d -I../src/core/annotations -I../src/core/auth -I../src/core/expression -I../src/core/pal -I../src/core/diagram -I../src/core/effects -I../src/core/fieldformatter -I../src/core/dxf -I../src/core/geometry -I../src/core/geocms -I../src/core/geocms/geonode -I../src/core/gps -I../src/core/layertree -I../src/core/layout -I../src/core/locator -I../src/core/metadata -I../src/core/processing -I../src/core/processing/models -I../src/core/providers -I../src/core/providers/memory -I../src/core/raster -I../src/core/scalebar -I../src/core/symbology -I../src/plugins -Isrc/core -Isrc/ui -Isrc/analysis -I../src/gui -I../src/gui/symbology -I../src/gui/raster -I../src/gui/attributetable -I../src/gui/auth -I../src/gui/editorwidgets -I../src/gui/editorwidgets/core -I../src/gui/effects -I../src/gui/layertree -I../src/gui/layout -I../src/gui/locator -I../src/gui/processing -Isrc/gui -I../python/../src/server -Isrc/server -iframework /usr/local/opt/qt/lib -isystem /usr/local/opt/qt/lib/QtXml.framework/Headers -isystem /usr/local/opt/qt/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt/./mkspecs/macx-clang -isystem /usr/local/opt/qt/lib/QtGui.framework/Headers -isystem /System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem /usr/local/opt/qt/lib/QtWidgets.framework/Headers -isystem /usr/local/opt/qt/lib/QtSvg.framework/Headers -isystem /usr/local/opt/qt/lib/QtPrintSupport.framework/Headers -isystem /usr/local/opt/qt/lib/QtNetwork.framework/Headers -iframework /usr/local/opt/qt5-webkit/lib -isystem /usr/local/opt/qt5-webkit/lib/QtWebKitWidgets.framework/Headers -isystem /usr/local/opt/qt5-webkit/lib/QtWebKit.framework/Headers -isystem /usr/local/opt/qt/lib/QtSql.framework/Headers -isystem /usr/local/opt/qt/lib/QtConcurrent.framework/Headers -isystem /usr/local/opt/qt/lib/QtPositioning.framework/Headers -isystem /usr/local/opt/qt/include -isystem /usr/local/opt/qt/include/QtUiTools -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -O2 -g -DNDEBUG -fPIC -fvisibility=default   -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -F/usr/local/opt/qca/lib -F/usr/local/opt/qwt/lib  -fPIC -std=gnu++11 -MD -MT python/CMakeFiles/python_module_qgis__gui.dir/gui/sip_guipart0.cpp.o -MF python/CMakeFiles/python_module_qgis__gui.dir/gui/sip_guipart0.cpp.o.d -o python/CMakeFiles/python_module_qgis__gui.dir/gui/sip_guipart0.cpp.o -c python/gui/sip_guipart0.cpp
[4523/4564] /usr/local/Homebrew/Library/Homebrew/shims/super/clang++  -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_POSITIONING_LIB -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DWITH_BINDINGS -DWITH_QTWEBKIT -Dprotected=public -Dpython_module_qgis__core_EXPORTS -Isrc/analysis/openstreetmap -Isrc/analysis/interpolation -Isrc/analysis/network -Isrc/analysis/raster -Isrc/analysis/vector -Isrc/analysis/processing -I../python/../src/analysis/openstreetmap -I../python/../src/analysis/interpolation -I../python/../src/analysis/network -I../python/../src/analysis/raster -I../python/../src/analysis/vector -I../python/../src/analysis/processing -I. -isystem /usr/local/Frameworks/Python.framework/Versions/3.6/Headers -isystem /usr/local/Cellar/sip/4.19.8/include -isystem /usr/local/opt/gdal2/include -isystem /usr/local/opt/geos/include -isystem /usr/local/opt/qwt/lib/qwt.framework/Headers -isystem ../external/qextserialport -isystem /usr/local/opt/qca/lib/qca-qt5.framework/Headers -isystem /usr/local/include/qt5keychain -isystem /usr/local/opt/sqlite/include -isystem /usr/local/opt/qscintilla2/include -I../src/core -I../src/core/3d -I../src/core/annotations -I../src/core/auth -I../src/core/expression -I../src/core/pal -I../src/core/diagram -I../src/core/effects -I../src/core/fieldformatter -I../src/core/dxf -I../src/core/geometry -I../src/core/geocms -I../src/core/geocms/geonode -I../src/core/gps -I../src/core/layertree -I../src/core/layout -I../src/core/locator -I../src/core/metadata -I../src/core/processing -I../src/core/processing/models -I../src/core/providers -I../src/core/providers/memory -I../src/core/raster -I../src/core/scalebar -I../src/core/symbology -I../src/plugins -Isrc/core -Isrc/ui -Isrc/analysis -I../src/gui -I../src/gui/symbology -I../src/gui/raster -I../src/gui/attributetable -I../src/gui/auth -I../src/gui/editorwidgets -I../src/gui/editorwidgets/core -I../src/gui/effects -I../src/gui/layertree -I../src/gui/layout -I../src/gui/locator -I../src/gui/processing -Isrc/gui -I../python/../src/server -Isrc/server -iframework /usr/local/opt/qt/lib -isystem /usr/local/opt/qt/lib/QtXml.framework/Headers -isystem /usr/local/opt/qt/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt/./mkspecs/macx-clang -isystem /usr/local/opt/qt/lib/QtGui.framework/Headers -isystem /System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem /usr/local/opt/qt/lib/QtWidgets.framework/Headers -isystem /usr/local/opt/qt/lib/QtSvg.framework/Headers -isystem /usr/local/opt/qt/lib/QtPrintSupport.framework/Headers -isystem /usr/local/opt/qt/lib/QtNetwork.framework/Headers -iframework /usr/local/opt/qt5-webkit/lib -isystem /usr/local/opt/qt5-webkit/lib/QtWebKitWidgets.framework/Headers -isystem /usr/local/opt/qt5-webkit/lib/QtWebKit.framework/Headers -isystem /usr/local/opt/qt/lib/QtSql.framework/Headers -isystem /usr/local/opt/qt/lib/QtConcurrent.framework/Headers -isystem /usr/local/opt/qt/lib/QtPositioning.framework/Headers -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -O2 -g -DNDEBUG -fPIC -fvisibility=default   -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -F/usr/local/opt/qca/lib  -fPIC -std=gnu++11 -MD -MT python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart1.cpp.o -MF python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart1.cpp.o.d -o python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart1.cpp.o -c python/core/sip_corepart1.cpp
[4524/4564] /usr/local/Homebrew/Library/Homebrew/shims/super/clang++  -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_POSITIONING_LIB -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DWITH_BINDINGS -DWITH_QTWEBKIT -Dprotected=public -Dpython_module_qgis__core_EXPORTS -Isrc/analysis/openstreetmap -Isrc/analysis/interpolation -Isrc/analysis/network -Isrc/analysis/raster -Isrc/analysis/vector -Isrc/analysis/processing -I../python/../src/analysis/openstreetmap -I../python/../src/analysis/interpolation -I../python/../src/analysis/network -I../python/../src/analysis/raster -I../python/../src/analysis/vector -I../python/../src/analysis/processing -I. -isystem /usr/local/Frameworks/Python.framework/Versions/3.6/Headers -isystem /usr/local/Cellar/sip/4.19.8/include -isystem /usr/local/opt/gdal2/include -isystem /usr/local/opt/geos/include -isystem /usr/local/opt/qwt/lib/qwt.framework/Headers -isystem ../external/qextserialport -isystem /usr/local/opt/qca/lib/qca-qt5.framework/Headers -isystem /usr/local/include/qt5keychain -isystem /usr/local/opt/sqlite/include -isystem /usr/local/opt/qscintilla2/include -I../src/core -I../src/core/3d -I../src/core/annotations -I../src/core/auth -I../src/core/expression -I../src/core/pal -I../src/core/diagram -I../src/core/effects -I../src/core/fieldformatter -I../src/core/dxf -I../src/core/geometry -I../src/core/geocms -I../src/core/geocms/geonode -I../src/core/gps -I../src/core/layertree -I../src/core/layout -I../src/core/locator -I../src/core/metadata -I../src/core/processing -I../src/core/processing/models -I../src/core/providers -I../src/core/providers/memory -I../src/core/raster -I../src/core/scalebar -I../src/core/symbology -I../src/plugins -Isrc/core -Isrc/ui -Isrc/analysis -I../src/gui -I../src/gui/symbology -I../src/gui/raster -I../src/gui/attributetable -I../src/gui/auth -I../src/gui/editorwidgets -I../src/gui/editorwidgets/core -I../src/gui/effects -I../src/gui/layertree -I../src/gui/layout -I../src/gui/locator -I../src/gui/processing -Isrc/gui -I../python/../src/server -Isrc/server -iframework /usr/local/opt/qt/lib -isystem /usr/local/opt/qt/lib/QtXml.framework/Headers -isystem /usr/local/opt/qt/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt/./mkspecs/macx-clang -isystem /usr/local/opt/qt/lib/QtGui.framework/Headers -isystem /System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem /usr/local/opt/qt/lib/QtWidgets.framework/Headers -isystem /usr/local/opt/qt/lib/QtSvg.framework/Headers -isystem /usr/local/opt/qt/lib/QtPrintSupport.framework/Headers -isystem /usr/local/opt/qt/lib/QtNetwork.framework/Headers -iframework /usr/local/opt/qt5-webkit/lib -isystem /usr/local/opt/qt5-webkit/lib/QtWebKitWidgets.framework/Headers -isystem /usr/local/opt/qt5-webkit/lib/QtWebKit.framework/Headers -isystem /usr/local/opt/qt/lib/QtSql.framework/Headers -isystem /usr/local/opt/qt/lib/QtConcurrent.framework/Headers -isystem /usr/local/opt/qt/lib/QtPositioning.framework/Headers -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -O2 -g -DNDEBUG -fPIC -fvisibility=default   -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -F/usr/local/opt/qca/lib  -fPIC -std=gnu++11 -MD -MT python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart3.cpp.o -MF python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart3.cpp.o.d -o python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart3.cpp.o -c python/core/sip_corepart3.cpp
[4525/4564] cd /tmp/qgis3-dev-20180306-47449-5b4370/python && /usr/local/Cellar/cmake/3.10.2/bin/cmake -E make_directory /tmp/qgis3-dev-20180306-47449-5b4370/build/output/python/qgis/analysis && /usr/local/Cellar/cmake/3.10.2/bin/cmake -E copy /tmp/qgis3-dev-20180306-47449-5b4370/python/analysis/__init__.py /tmp/qgis3-dev-20180306-47449-5b4370/build/output/python/qgis/analysis
[4526/4564] : && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -O2 -g -DNDEBUG  -bundle -Wl,-headerpad_max_install_names -Qunused-arguments -F/Library/Frameworks  -undefined dynamic_lookup -o output/python/qgis/_core.so python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart0.cpp.o python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart1.cpp.o python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart2.cpp.o python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart3.cpp.o -F/usr/local/opt/qca/lib  -L/tmp/qgis3-dev-20180306-47449-5b4370/build/src/core  -L/tmp/qgis3-dev-20180306-47449-5b4370/build/src/gui -Wl,-rpath,/tmp/qgis3-dev-20180306-47449-5b4370/build/src/core -Wl,-rpath,/tmp/qgis3-dev-20180306-47449-5b4370/build/src/gui output/lib/qgis_core.framework/Versions/3.1/qgis_core output/lib/qgis_native.framework/Versions/3.1/qgis_native -framework ApplicationServices -framework CoreFoundation -framework IOKit -framework AppKit /usr/local/lib/libtasn1.dylib /usr/local/opt/qt/lib/QtXml.framework/QtXml /usr/local/opt/qt/lib/QtSvg.framework/QtSvg /usr/local/opt/qt/lib/QtPrintSupport.framework/QtPrintSupport /usr/local/opt/qt5-webkit/lib/QtWebKitWidgets.framework/QtWebKitWidgets /usr/local/opt/qt/lib/QtWidgets.framework/QtWidgets /usr/local/opt/qt5-webkit/lib/QtWebKit.framework/QtWebKit /usr/local/opt/qt/lib/QtGui.framework/QtGui /usr/local/opt/qt/lib/QtNetwork.framework/QtNetwork /usr/local/opt/qt/lib/QtSql.framework/QtSql /usr/local/opt/qt/lib/QtConcurrent.framework/QtConcurrent -framework qca-qt5 /usr/local/lib/libqt5keychain.dylib /usr/local/opt/proj/lib/libproj.dylib /usr/local/opt/geos/lib/libgeos_c.dylib /usr/local/opt/gdal2/lib/libgdal.dylib /usr/local/opt/spatialindex/lib/libspatialindex.dylib /usr/local/opt/expat/lib/libexpat.dylib /usr/local/opt/sqlite/lib/libsqlite3.dylib /usr/local/opt/libspatialite/lib/libspatialite.dylib /usr/local/opt/libzip/lib/libzip.dylib /usr/local/opt/qt/lib/QtPositioning.framework/QtPositioning /usr/local/opt/qt/lib/QtCore.framework/QtCore && :
[4527/4564] cd /tmp/qgis3-dev-20180306-47449-5b4370/python && /usr/local/Cellar/cmake/3.10.2/bin/cmake -E make_directory /tmp/qgis3-dev-20180306-47449-5b4370/build/output/python/qgis/core && /usr/local/Cellar/cmake/3.10.2/bin/cmake -E copy /tmp/qgis3-dev-20180306-47449-5b4370/python/core/__init__.py /tmp/qgis3-dev-20180306-47449-5b4370/build/output/python/qgis/core && cd /tmp/qgis3-dev-20180306-47449-5b4370/python && /usr/local/Cellar/cmake/3.10.2/bin/cmake -E make_directory /tmp/qgis3-dev-20180306-47449-5b4370/build/output/python/qgis/core && /usr/local/Cellar/cmake/3.10.2/bin/cmake -E copy /tmp/qgis3-dev-20180306-47449-5b4370/python/core/contextmanagers.py /tmp/qgis3-dev-20180306-47449-5b4370/build/output/python/qgis/core
[4528/4564] cd /tmp/qgis3-dev-20180306-47449-5b4370/build/python/plugins/db_manager && /usr/local/bin/pyrcc5 -o /tmp/qgis3-dev-20180306-47449-5b4370/build/python/plugins/db_manager/resources_rc.py /tmp/qgis3-dev-20180306-47449-5b4370/python/plugins/db_manager/resources.qrc
FAILED: python/plugins/db_manager/resources_rc.py 
cd /tmp/qgis3-dev-20180306-47449-5b4370/build/python/plugins/db_manager && /usr/local/bin/pyrcc5 -o /tmp/qgis3-dev-20180306-47449-5b4370/build/python/plugins/db_manager/resources_rc.py /tmp/qgis3-dev-20180306-47449-5b4370/python/plugins/db_manager/resources.qrc
ImportError: No module named site
[4529/4564] /usr/local/Homebrew/Library/Homebrew/shims/super/clang++  -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_POSITIONING_LIB -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DWITH_BINDINGS -DWITH_QTWEBKIT -Dprotected=public -Dpython_module_qgis__gui_EXPORTS -Isrc/analysis/openstreetmap -Isrc/analysis/interpolation -Isrc/analysis/network -Isrc/analysis/raster -Isrc/analysis/vector -Isrc/analysis/processing -I../python/../src/analysis/openstreetmap -I../python/../src/analysis/interpolation -I../python/../src/analysis/network -I../python/../src/analysis/raster -I../python/../src/analysis/vector -I../python/../src/analysis/processing -I. -isystem /usr/local/Frameworks/Python.framework/Versions/3.6/Headers -isystem /usr/local/Cellar/sip/4.19.8/include -isystem /usr/local/opt/gdal2/include -isystem /usr/local/opt/geos/include -isystem /usr/local/opt/qwt/lib/qwt.framework/Headers -isystem ../external/qextserialport -isystem /usr/local/opt/qca/lib/qca-qt5.framework/Headers -isystem /usr/local/include/qt5keychain -isystem /usr/local/opt/sqlite/include -isystem /usr/local/opt/qscintilla2/include -I../src/core -I../src/core/3d -I../src/core/annotations -I../src/core/auth -I../src/core/expression -I../src/core/pal -I../src/core/diagram -I../src/core/effects -I../src/core/fieldformatter -I../src/core/dxf -I../src/core/geometry -I../src/core/geocms -I../src/core/geocms/geonode -I../src/core/gps -I../src/core/layertree -I../src/core/layout -I../src/core/locator -I../src/core/metadata -I../src/core/processing -I../src/core/processing/models -I../src/core/providers -I../src/core/providers/memory -I../src/core/raster -I../src/core/scalebar -I../src/core/symbology -I../src/plugins -Isrc/core -Isrc/ui -Isrc/analysis -I../src/gui -I../src/gui/symbology -I../src/gui/raster -I../src/gui/attributetable -I../src/gui/auth -I../src/gui/editorwidgets -I../src/gui/editorwidgets/core -I../src/gui/effects -I../src/gui/layertree -I../src/gui/layout -I../src/gui/locator -I../src/gui/processing -Isrc/gui -I../python/../src/server -Isrc/server -iframework /usr/local/opt/qt/lib -isystem /usr/local/opt/qt/lib/QtXml.framework/Headers -isystem /usr/local/opt/qt/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt/./mkspecs/macx-clang -isystem /usr/local/opt/qt/lib/QtGui.framework/Headers -isystem /System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem /usr/local/opt/qt/lib/QtWidgets.framework/Headers -isystem /usr/local/opt/qt/lib/QtSvg.framework/Headers -isystem /usr/local/opt/qt/lib/QtPrintSupport.framework/Headers -isystem /usr/local/opt/qt/lib/QtNetwork.framework/Headers -iframework /usr/local/opt/qt5-webkit/lib -isystem /usr/local/opt/qt5-webkit/lib/QtWebKitWidgets.framework/Headers -isystem /usr/local/opt/qt5-webkit/lib/QtWebKit.framework/Headers -isystem /usr/local/opt/qt/lib/QtSql.framework/Headers -isystem /usr/local/opt/qt/lib/QtConcurrent.framework/Headers -isystem /usr/local/opt/qt/lib/QtPositioning.framework/Headers -isystem /usr/local/opt/qt/include -isystem /usr/local/opt/qt/include/QtUiTools -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -O2 -g -DNDEBUG -fPIC -fvisibility=default   -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -F/usr/local/opt/qca/lib -F/usr/local/opt/qwt/lib  -fPIC -std=gnu++11 -MD -MT python/CMakeFiles/python_module_qgis__gui.dir/gui/sip_guipart1.cpp.o -MF python/CMakeFiles/python_module_qgis__gui.dir/gui/sip_guipart1.cpp.o.d -o python/CMakeFiles/python_module_qgis__gui.dir/gui/sip_guipart1.cpp.o -c python/gui/sip_guipart1.cpp
[4530/4564] /usr/local/Homebrew/Library/Homebrew/shims/super/clang++  -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_POSITIONING_LIB -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DWITH_BINDINGS -DWITH_QTWEBKIT -Dprotected=public -Dpython_module_qgis__gui_EXPORTS -Isrc/analysis/openstreetmap -Isrc/analysis/interpolation -Isrc/analysis/network -Isrc/analysis/raster -Isrc/analysis/vector -Isrc/analysis/processing -I../python/../src/analysis/openstreetmap -I../python/../src/analysis/interpolation -I../python/../src/analysis/network -I../python/../src/analysis/raster -I../python/../src/analysis/vector -I../python/../src/analysis/processing -I. -isystem /usr/local/Frameworks/Python.framework/Versions/3.6/Headers -isystem /usr/local/Cellar/sip/4.19.8/include -isystem /usr/local/opt/gdal2/include -isystem /usr/local/opt/geos/include -isystem /usr/local/opt/qwt/lib/qwt.framework/Headers -isystem ../external/qextserialport -isystem /usr/local/opt/qca/lib/qca-qt5.framework/Headers -isystem /usr/local/include/qt5keychain -isystem /usr/local/opt/sqlite/include -isystem /usr/local/opt/qscintilla2/include -I../src/core -I../src/core/3d -I../src/core/annotations -I../src/core/auth -I../src/core/expression -I../src/core/pal -I../src/core/diagram -I../src/core/effects -I../src/core/fieldformatter -I../src/core/dxf -I../src/core/geometry -I../src/core/geocms -I../src/core/geocms/geonode -I../src/core/gps -I../src/core/layertree -I../src/core/layout -I../src/core/locator -I../src/core/metadata -I../src/core/processing -I../src/core/processing/models -I../src/core/providers -I../src/core/providers/memory -I../src/core/raster -I../src/core/scalebar -I../src/core/symbology -I../src/plugins -Isrc/core -Isrc/ui -Isrc/analysis -I../src/gui -I../src/gui/symbology -I../src/gui/raster -I../src/gui/attributetable -I../src/gui/auth -I../src/gui/editorwidgets -I../src/gui/editorwidgets/core -I../src/gui/effects -I../src/gui/layertree -I../src/gui/layout -I../src/gui/locator -I../src/gui/processing -Isrc/gui -I../python/../src/server -Isrc/server -iframework /usr/local/opt/qt/lib -isystem /usr/local/opt/qt/lib/QtXml.framework/Headers -isystem /usr/local/opt/qt/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt/./mkspecs/macx-clang -isystem /usr/local/opt/qt/lib/QtGui.framework/Headers -isystem /System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem /usr/local/opt/qt/lib/QtWidgets.framework/Headers -isystem /usr/local/opt/qt/lib/QtSvg.framework/Headers -isystem /usr/local/opt/qt/lib/QtPrintSupport.framework/Headers -isystem /usr/local/opt/qt/lib/QtNetwork.framework/Headers -iframework /usr/local/opt/qt5-webkit/lib -isystem /usr/local/opt/qt5-webkit/lib/QtWebKitWidgets.framework/Headers -isystem /usr/local/opt/qt5-webkit/lib/QtWebKit.framework/Headers -isystem /usr/local/opt/qt/lib/QtSql.framework/Headers -isystem /usr/local/opt/qt/lib/QtConcurrent.framework/Headers -isystem /usr/local/opt/qt/lib/QtPositioning.framework/Headers -isystem /usr/local/opt/qt/include -isystem /usr/local/opt/qt/include/QtUiTools -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -O2 -g -DNDEBUG -fPIC -fvisibility=default   -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -F/usr/local/opt/qca/lib -F/usr/local/opt/qwt/lib  -fPIC -std=gnu++11 -MD -MT python/CMakeFiles/python_module_qgis__gui.dir/gui/sip_guipart2.cpp.o -MF python/CMakeFiles/python_module_qgis__gui.dir/gui/sip_guipart2.cpp.o.d -o python/CMakeFiles/python_module_qgis__gui.dir/gui/sip_guipart2.cpp.o -c python/gui/sip_guipart2.cpp
[4531/4564] /usr/local/Homebrew/Library/Homebrew/shims/super/clang++  -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_POSITIONING_LIB -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DWITH_BINDINGS -DWITH_QTWEBKIT -Dprotected=public -Dpython_module_qgis__gui_EXPORTS -Isrc/analysis/openstreetmap -Isrc/analysis/interpolation -Isrc/analysis/network -Isrc/analysis/raster -Isrc/analysis/vector -Isrc/analysis/processing -I../python/../src/analysis/openstreetmap -I../python/../src/analysis/interpolation -I../python/../src/analysis/network -I../python/../src/analysis/raster -I../python/../src/analysis/vector -I../python/../src/analysis/processing -I. -isystem /usr/local/Frameworks/Python.framework/Versions/3.6/Headers -isystem /usr/local/Cellar/sip/4.19.8/include -isystem /usr/local/opt/gdal2/include -isystem /usr/local/opt/geos/include -isystem /usr/local/opt/qwt/lib/qwt.framework/Headers -isystem ../external/qextserialport -isystem /usr/local/opt/qca/lib/qca-qt5.framework/Headers -isystem /usr/local/include/qt5keychain -isystem /usr/local/opt/sqlite/include -isystem /usr/local/opt/qscintilla2/include -I../src/core -I../src/core/3d -I../src/core/annotations -I../src/core/auth -I../src/core/expression -I../src/core/pal -I../src/core/diagram -I../src/core/effects -I../src/core/fieldformatter -I../src/core/dxf -I../src/core/geometry -I../src/core/geocms -I../src/core/geocms/geonode -I../src/core/gps -I../src/core/layertree -I../src/core/layout -I../src/core/locator -I../src/core/metadata -I../src/core/processing -I../src/core/processing/models -I../src/core/providers -I../src/core/providers/memory -I../src/core/raster -I../src/core/scalebar -I../src/core/symbology -I../src/plugins -Isrc/core -Isrc/ui -Isrc/analysis -I../src/gui -I../src/gui/symbology -I../src/gui/raster -I../src/gui/attributetable -I../src/gui/auth -I../src/gui/editorwidgets -I../src/gui/editorwidgets/core -I../src/gui/effects -I../src/gui/layertree -I../src/gui/layout -I../src/gui/locator -I../src/gui/processing -Isrc/gui -I../python/../src/server -Isrc/server -iframework /usr/local/opt/qt/lib -isystem /usr/local/opt/qt/lib/QtXml.framework/Headers -isystem /usr/local/opt/qt/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt/./mkspecs/macx-clang -isystem /usr/local/opt/qt/lib/QtGui.framework/Headers -isystem /System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem /usr/local/opt/qt/lib/QtWidgets.framework/Headers -isystem /usr/local/opt/qt/lib/QtSvg.framework/Headers -isystem /usr/local/opt/qt/lib/QtPrintSupport.framework/Headers -isystem /usr/local/opt/qt/lib/QtNetwork.framework/Headers -iframework /usr/local/opt/qt5-webkit/lib -isystem /usr/local/opt/qt5-webkit/lib/QtWebKitWidgets.framework/Headers -isystem /usr/local/opt/qt5-webkit/lib/QtWebKit.framework/Headers -isystem /usr/local/opt/qt/lib/QtSql.framework/Headers -isystem /usr/local/opt/qt/lib/QtConcurrent.framework/Headers -isystem /usr/local/opt/qt/lib/QtPositioning.framework/Headers -isystem /usr/local/opt/qt/include -isystem /usr/local/opt/qt/include/QtUiTools -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -O2 -g -DNDEBUG -fPIC -fvisibility=default   -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -w -Wno-deprecated-declarations -F/usr/local/opt/qca/lib -F/usr/local/opt/qwt/lib  -fPIC -std=gnu++11 -MD -MT python/CMakeFiles/python_module_qgis__gui.dir/gui/sip_guipart3.cpp.o -MF python/CMakeFiles/python_module_qgis__gui.dir/gui/sip_guipart3.cpp.o.d -o python/CMakeFiles/python_module_qgis__gui.dir/gui/sip_guipart3.cpp.o -c python/gui/sip_guipart3.cpp
ninja: build stopped: subcommand failed.

Any idea what's going on?

@dd-a
Copy link

dd-a commented Mar 6, 2018 via email

@Nenuial
Copy link
Author

Nenuial commented Mar 6, 2018

The culprit seems to be PyQt5. Installing it using pip allows me to complete a build of qgis3 but there still are errors when launching the app. Now I'm not sure anymore if this is really an issue of the qgis Formula and not the PyQt5 one.

@Nenuial
Copy link
Author

Nenuial commented Mar 9, 2018

Well... I’ve tried a number of different things. I've managed to get all dependencies installed and, at least I think, working properly (passing brew test). PyQt tools now work again. I had to build it all from source (gdal2 wasn’t working when using the bottle). I still get an error saying “no module named site”.

Full logs here : gist-logs

@Nenuial
Copy link
Author

Nenuial commented Mar 9, 2018

Eureka ! Found the problem ! In my case, the /usr/local/bin/pyrcc5 executable had the following in it :

#!/bin/sh
exec pythonw2.7 -m PyQt5.pyrcc_main ${1+"$@"}

replacing pythonw2.7 with python3 did it for me. Calling pythonw2.7 with the PYTHONHOME and PYTHONPATH from the qgis3-dev Formula was throwing the "ImportError: No module named site".

I still don't really know if my issue is a problem of the qgis3-dev formula (probably not...) but if others run into the same issue at least you'll have a "hack" to work with.

@alexgleith
Copy link

Ok, I tried the change the the pyrcc5 file, and it seems to get further. Now I'm stuck with:

 FAILED: python/plugins/db_manager/ui_DlgCreateTable.py 
cd /tmp/qgis3-dev-20180310-54526-ap49is/build/python/plugins/db_manager && /tmp/qgis3-dev-20180310-54526-ap49is/scripts/pyuic-wrapper.sh /usr/local/bin/pyuic5 /tmp/qgis3-dev-20180310-54526-ap49is/build/output/lib /tmp/qgis3-dev-20180310-54526-ap49is/build/output/python /usr/local/bin/python3 /tmp/qgis3-dev-20180310-54526-ap49is/python/plugins/db_manager/ui/DlgCreateTable.ui -o /tmp/qgis3-dev-20180310-54526-ap49is/build/python/plugins/db_manager/ui_DlgCreateTable.py
Traceback (most recent call last):
  File "/tmp/qgis3-dev-20180310-54526-ap49is/scripts/pyuic-wrapper.py", line 26, in <module>
    import qgis.PyQt.uic.pyuic
  File "/tmp/qgis3-dev-20180310-54526-ap49is/build/output/python/qgis/__init__.py", line 72, in <module>
    from qgis.core import QgsFeature, QgsGeometry
  File "/tmp/qgis3-dev-20180310-54526-ap49is/build/output/python/qgis/core/__init__.py", line 34, in <module>
    from qgis._core import *
ImportError: dlopen(/tmp/qgis3-dev-20180310-54526-ap49is/build/output/python/qgis/_core.so, 2): Library not loaded: /usr/local/opt/proj/lib/libproj.12.dylib
  Referenced from: /usr/local/opt/gdal2/lib/libgdal.20.dylib
  Reason: image not found
ninja: build stopped: subcommand failed.

@Nenuial
Copy link
Author

Nenuial commented Mar 10, 2018

Uninstall gdal2 and build it from source (option --build-from-source).

I believe that proj is now version 5 and that breaks the gdal2 bottle.

@alexgleith
Copy link

Well, that gdal build failed too... I think I'm trying to live a bit close to the edge!

Last 15 lines from /Users/alex/Library/Logs/Homebrew/gdal2/02.make:
libtool: compile:  clang -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -I/usr/local/opt/sqlite/include -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -I. -DGDALDRIVER -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -c blx.c  -fno-common -DPIC -o ../o/.libs/blx.o
/bin/sh /private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/libtool --mode=compile --tag=CXX clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough  -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include  -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c -o ../o/msg_basic_types.lo msg_basic_types.cpp
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c msgndataset.cpp  -fno-common -DPIC -o ../o/.libs/msgndataset.o
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c msg_basic_types.cpp  -fno-common -DPIC -o ../o/.libs/msg_basic_types.o
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -c terragendataset.cpp -o ../o/terragendataset.o >/dev/null 2>&1
make[1]: *** [pds-install-obj] Error 2
make[1]: *** Waiting for unfinished jobs....
/bin/sh /private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/libtool --mode=compile --tag=CXX clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough  -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include  -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c -o ../o/msg_reader_core.lo msg_reader_core.cpp
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c msg_reader_core.cpp  -fno-common -DPIC -o ../o/.libs/msg_reader_core.o
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -I. -DGDALDRIVER -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -c blxdataset.cpp -o ../o/blxdataset.o >/dev/null 2>&1
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c msg_basic_types.cpp -o ../o/msg_basic_types.o >/dev/null 2>&1
libtool: compile:  clang -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -I/usr/local/opt/sqlite/include -Wall -Wdeclaration-after-statement -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -I. -DGDALDRIVER -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -c blx.c -o ../o/blx.o >/dev/null 2>&1
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c msg_reader_core.cpp -o ../o/msg_reader_core.o >/dev/null 2>&1
libtool: compile:  clang++ -std=gnu++11 -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gcore -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/alg -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/ogr/ogrsf_frmts -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/gnm -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/apps -arch x86_64 -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough -DGNM_ENABLED -I/usr/local/Cellar/gdal2/2.2.3/include -I/private/tmp/gdal2-20180310-76821-15xhugu/gdal-2.2.3/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/libpng -I/usr/local/opt/libpng/include -I/usr -I/usr/include -DGDAL_COMPILATION -I. -DGDAL_SUPPORT -c msgndataset.cpp -o ../o/msgndataset.o >/dev/null 2>&1
make: *** [frmts-target] Error 2

@sgerke
Copy link

sgerke commented Mar 10, 2018

For me, reinstalling gdal2 brew reinstall gdal2 --with-complete helped without compiling from source.

@Nenuial
Copy link
Author

Nenuial commented Mar 10, 2018

Sorry... That’s one error I haven’t come across.
I was always starting with a fresh homebrew install, making sure that brew doctor was clean and brew test $(brew list) passes all tests without issues.

@alexgleith
Copy link

This is a clean Mac OS install. Just started it up yesterday!

@Nenuial
Copy link
Author

Nenuial commented Mar 10, 2018

And using @sgerke reinstall command for gdal2?

To be honest I've done so many different tries since Tuesday that I don't remember everything I might have tweaked.

@alexgleith
Copy link

Yeah, the comment above was from reinstalling. #62 (comment)

@alexgleith
Copy link

Yay! It worked! 🎉

@harelw
Copy link

harelw commented Mar 13, 2018

Doing a combination of suggestions in this thread got it to work for me:

  1. brew tap-pin qgis/qgisdev
  2. brew reinstall gdal2 --with-complete (or brew install gdal2 --with-complete if not already installed)
  3. brew install pyqt (if not installed already)
  4. edit /usr/local/bin/pyrcc5 to:
#!/bin/sh
exec python3 -m PyQt5.pyrcc_main ${1+"$@"}
  1. brew install --no-sandbox qgis3-dev

Thanks!

@alexgleith
Copy link

Hey @harelw, did you need to change the MatPlotLib dependency?

@harelw
Copy link

harelw commented Mar 14, 2018 via email

@palmerj
Copy link

palmerj commented Apr 28, 2018

I managed to compile and launch QGIS 3.1.0-master but when adding vector or raster layers to the map canvas nothing displays. I also get "No QgsCoordinateTransformContext context set for transform" errors in the log

Does anyone else have issues like this? I'm wondering if this has something to do with Proj5. The about dialog says it complied against and running Proj 5.01.

@palmerj
Copy link

palmerj commented Apr 28, 2018

Ok editing the homebrew proj formula to use Proj.4 worked. I had to edit proj.rb to switch to the Proj 4.9.3 source code:

  url "http://download.osgeo.org/proj/proj-4.9.3.tar.gz"
  sha256 "6984542fea333488de5c82eea58d699e4aff4b359200a9971537cd7e047185f7"

Then I recompiled from source the following packages:

brew reinstall proj --build-from-source
brew reinstall libspatialite --build-from-source
brew reinstall libgeotiff --build-from-source
brew reinstall gdal --with-complete

Then I rebuilded qgis3-dev:

brew reinstall -v --no-sandbox --with-3d qgis3-dev

@palmerj
Copy link

palmerj commented Apr 28, 2018

I would suggest we need to get a Proj4 package going again and make that a dependency for qgis3-dev as Proj.5 doesn't look ready for prime time in QGIS. I can raise a issue for this if others agree.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants