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

QGIS2 - could not load "processing" plugin #203

Closed
rkrug opened this issue Jan 12, 2017 · 33 comments
Closed

QGIS2 - could not load "processing" plugin #203

rkrug opened this issue Jan 12, 2017 · 33 comments

Comments

@rkrug
Copy link
Contributor

rkrug commented Jan 12, 2017

I installed qgis2 on Sierrra, and I get the following error when starting:

Couldn't load plugin processing due to an error when calling its classFactory() method 

TypeError: coercing to Unicode: need string or buffer, NoneType found 
Traceback (most recent call last):
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 333, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py", line 38, in classFactory
    return ProcessingPlugin(iface)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/ProcessingPlugin.py", line 58, in __init__
    Processing.initialize()
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 148, in initialize
    Processing.addProvider(c())
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 103, in addProvider
    % (provider.getDescription(), traceback.format_exc()))
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/saga/SagaAlgorithmProvider.py", line 123, in getDescription
    version = SagaUtils.getSagaInstalledVersion()
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/saga/SagaUtils.py", line 130, in getSagaInstalledVersion
    commands = [os.path.join(sagaPath(), "saga_cmd -v")]
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/saga/SagaUtils.py", line 75, in sagaPath
    if not os.path.isdir(folder):
  File "/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.py", line 49, in isdir
    st = os.stat(s)
TypeError: coercing to Unicode: need string or buffer, NoneType found


Python version: 2.7.13 (default, Dec 18 2016, 07:03:39) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] 
QGIS version: 2.18.2 Las Palmas, exported 

Python Path:
/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing
/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python
/Users/rainerkrug/.qgis2/python
/Users/rainerkrug/.qgis2/python/plugins
/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins
/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/geeknote-0.2a-py2.7.egg
/usr/local/opt/gdal2-python/lib/python2.7/site-packages
/usr/local/lib/qt-4/python2.7/site-packages
/usr/local/opt/qgis2/lib/python2.7/site-packages
/usr/local/lib/python2.7/site-packages
/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/Users/rainerkrug/Library/Python/2.7/lib/python/site-packages
/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/geos
/usr/local/Cellar/matplotlib/1.5.1/libexec/lib/python2.7/site-packages
/usr/local/Cellar/numpy/1.11.2/libexec/nose/lib/python2.7/site-packages
/usr/local/opt/libxml2/lib/python2.7/site-packages
/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtk-2.0
/usr/local/lib/python2.7/site-packages/gtk-2.0
/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-3.0-osx_cocoa
/Users/rainerkrug/.qgis2//python

The same happens if Y start from the wrapper script.

Any suggestions?

@rkrug
Copy link
Contributor Author

rkrug commented Jan 17, 2017

Nobody?

@dakcarto
Copy link
Member

dakcarto commented Jan 17, 2017

Hi @rkrug, thanks for reporting. Does this happen when launched from the QGIS.app bundle and not from the wrapper shell script?

@rkrug
Copy link
Contributor Author

rkrug commented Jan 18, 2017

Hi @dakcarto, yes - the same error. I installed qgis2 new and deleted the ~/.qgis2 directory to be sure to have no leftovers from older versions and I got the same error when I start from the app bundle.

Some more info:

09:57:44 ~$ brew info qgis2
osgeo/osgeo4mac/qgis2: stable 2.18.2, HEAD [keg-only]
Open Source Geographic Information System
http://www.qgis.org
/usr/local/Cellar/qgis2/2.18.2 (9,334 files, 225.8M)
  Built from source on 2017-01-18 at 09:45:56
From: https://github.com/osgeo/homebrew-osgeo4mac/blob/master/Formula/qgis2.rb
==> Dependencies
Build: cmake ✔, bison ✔, flex ✔
Required: qt-4 ✔, sip-qt4 ✔, pyqt-qt4 ✔, qca-qt4 ✔, qscintilla2-qt4 ✔, qwt-qt4 ✔, qwtpolar-qt4 ✔, qjson-qt4 ✔, gsl ✔, sqlite ✔, expat ✔, proj ✔, spatialindex ✔, fcgi ✔, gdal2 ✔, gdal2-python ✔, pyspatialite ✔
Recommended: postgresql ✔
Optional: gpsbabel-qt4 ✘, grass6 ✔, orfeo5 ✘, homebrew/science/r ✔, saga-gis ✔
==> Requirements
Required: unlinkedqgis2 ✔, python ✔
==> Options
--with-api-docs
	Build the API documentation with Doxygen and Graphviz
--with-gdal-1
	Build with GDAL/OGR v1.x instead of v2.x
--with-globe
	Build with Globe plugin, based upon osgEarth
--with-gpsbabel-qt4
	Build with gpsbabel-qt4 support
--with-grass
	Build with GRASS 7 integration plugin and Processing plugin support (or install grass-7x first)
--with-grass6
	Build extra GRASS 6 for Processing plugin
--with-isolation
	Isolate .app's environment to HOMEBREW_PREFIX, to coexist with other QGIS installs
--with-oracle
	Build extra Oracle geospatial database and raster support
--with-orfeo5
	Build extra Orfeo Toolbox for Processing plugin
--with-qspatialite
	Build QSpatialite Qt database driver
--with-r
	Build extra R for Processing plugin
--with-saga-gis
	Build extra Saga GIS for Processing plugin
--without-debug
	Disable debug build, which outputs info to system.log or console
--without-postgresql
	Build without current PostgreSQL client
--without-server
	Build without QGIS Server (qgis_mapserv.fcgi)
--HEAD
	Install HEAD version
==> Caveats
Bottles support only Homebrew's Python

QGIS is built as an application bundle. Environment variables for the
Homebrew prefix are embedded in QGIS.app:
  /usr/local/opt/qgis2/QGIS.app

You may also symlink QGIS.app into /Applications or ~/Applications:
  brew linkapps [--local]

To directly run the `QGIS.app/Contents/MacOS/QGIS` binary use the wrapper
script pre-defined with Homebrew prefix environment variables:
  /usr/local/opt/qgis2/bin/qgis2

NOTE: Your current PATH and PYTHONPATH environment variables are honored
      when launching via the wrapper script, while launching QGIS.app
      bundle they are not.

For standalone Python development, set the following environment variable:
  export PYTHONPATH=/usr/local/lib/qt-4/python2.7/site-packages:/usr/local/lib/python2.7/site-packages:$PYTHONPATH

Developer frameworks are installed in:
  /usr/local/opt/qgis2/lib/qgis-dev
  NOTE: not symlinked to HOMEBREW_PREFIX/Frameworks, which affects isolation.
        Use dyld -F option in CPPFLAGS/LDFLAGS when building other software.

If you have built GRASS 6.4.x or 7.0.x support for the Processing plugin set
the following in QGIS:
  Processing->Options: Providers->GRASS commands->GRASS folder to:
     /usr/local/opt/grass6/grass-base
  Processing->Options: Providers->GRASS GIS 7 commands->GRASS 7 folder to:
     /usr/local/opt/grass7/grass-base


This formula is keg-only, which means it was not symlinked into /usr/local.

Installed as keg-only to allow multiple QGIS installs

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/qgis2/lib


If you need Python to find bindings for this keg-only formula, run:
  echo /usr/local/opt/qgis2/lib/python2.7/site-packages >> /usr/local/lib/python2.7/site-packages/qgis2.pth
09:58:01 ~$

And here is the complete output from the commandline start:

09:59:16 ~$ /usr/local/opt/qgis2/bin/qgis2
src/app/main.cpp: 465: (main) [1ms] Mac RLIMIT_NOFILE Soft/Hard NEW: 10240 / 10240
src/app/main.cpp: 470: (main) [2ms] Mac RLIMIT_NOFILE Soft/Hard ORIG: 7168 / 9223372036854775807
src/app/main.cpp: 474: (main) [1ms] Starting qgis main
src/app/qgscustomization.cpp: 943: (loadDefault) [1281ms] Status path = /Customization/status
src/app/qgscustomization.cpp: 944: (loadDefault) [0ms] status = 0
src/app/qgscustomization.cpp: 952: (loadDefault) [1ms] Default customization not found in /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/resources/customization.ini
Warning: QString::arg: 1 argument(s) missing in Test font '%1' %3 from testdata.qrc
src/core/qgsmessagelog.cpp: 45: (logMessage) [6ms] 2017-01-18T09:59:45 Qt[1] QString::arg: 1 argument(s) missing in Test font '%1' %3 from testdata.qrc
src/core/qgsfontutils.cpp: 276: (loadStandardTestFonts) [1ms] Test font 'QGIS Vera Sans' Bold from testdata.qrc
Warning: QString::arg: 1 argument(s) missing in Test font '%1' %3 from testdata.qrc
src/core/qgsmessagelog.cpp: 45: (logMessage) [979ms] 2017-01-18T09:59:45 Qt[1] QString::arg: 1 argument(s) missing in Test font '%1' %3 from testdata.qrc
src/core/qgsfontutils.cpp: 276: (loadStandardTestFonts) [0ms] Test font 'QGIS Vera Sans' Roman from testdata.qrc
Warning: loading of qgis translation failed [/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/i18n//qgis_en_US]
src/core/qgsmessagelog.cpp: 45: (logMessage) [2ms] 2017-01-18T09:59:45 Qt[1] loading of qgis translation failed [/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/i18n//qgis_en_US]
Warning: loading of qt translation failed [/usr/local/Cellar/qt-4/4.8.7/translations/qt_en_US]
src/core/qgsmessagelog.cpp: 45: (logMessage) [0ms] 2017-01-18T09:59:45 Qt[1] loading of qt translation failed [/usr/local/Cellar/qt-4/4.8.7/translations/qt_en_US]
src/app/main.cpp: 1046: (main) [0ms] Adding Mac QGIS and Qt plugins dirs to search path: /usr/local/Cellar/qt-4/4.8.7/plugins
src/core/qgsapplication.cpp: 1367: (setMaxThreads) [152ms] maxThreads: -1
src/core/qgsapplication.cpp: 1383: (setMaxThreads) [0ms] set QThreadPool max thread count to 8
src/core/qgsnetworkaccessmanager.cpp: 167: (setFallbackProxyAndExcludes) [7ms] proxy settings: (type:DefaultProxy host: :0, user:, password:not set
src/core/qgsnetworkaccessmanager.cpp: 384: (setupDefaultProxyAndCache) [2ms] cacheDirectory: /Users/rainerkrug/.qgis2/cache/
src/core/qgsnetworkaccessmanager.cpp: 385: (setupDefaultProxyAndCache) [0ms] maximumCacheSize: 52428800
src/core/qgsruntimeprofiler.cpp: 56: (end) [1380ms] PROFILE: qgisapp/startup/Setting up UI - 1.376
src/core/qgsruntimeprofiler.cpp: 56: (end) [18ms] PROFILE: qgisapp/startup/Checking database - 0.018
src/core/auth/qgsauthmanager.cpp: 106: (init) [2ms] Initializing QCA...
src/core/auth/qgsauthmanager.cpp: 109: (init) [3ms] QCA initialized.
src/core/auth/qgsauthmanager.cpp: 112: (init) [19ms] QCA Plugin Diagnostics Context: Checking Qt static plugins:
  (none)
Checking Qt Library Path: /usr/local/Cellar/qt-4/4.8.7/plugins
  (No 'crypto' subdirectory)
Checking Qt Library Path: /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/PlugIns/qgis
  (No 'crypto' subdirectory)
Checking Qt Library Path: /usr/local/Cellar/qca-qt4/2.1.1/lib/qca
  libqca-cyrus-sasl.dylib: (class: saslPlugin) loaded as qca-cyrus-sasl
  libqca-logger.dylib: (class: loggerPlugin) loaded as qca-logger
  libqca-ossl.dylib: (class: opensslPlugin) loaded as qca-ossl
  libqca-softstore.dylib: (class: softstorePlugin) loaded as qca-softstore

src/core/auth/qgsauthmanager.cpp: 116: (init) [0ms] QCA supports: random,md5,sha1,keystorelist,sasl,log,sha0,ripemd160,md4,sha224,sha256,sha384,sha512,hmac(md5),hmac(sha1),hmac(sha224),hmac(sha256),hmac(sha384),hmac(sha512),hmac(ripemd160),aes128-ecb,aes128-cfb,aes128-cbc,aes128-cbc-pkcs7,aes128-ofb,aes128-ctr,aes192-ecb,aes192-cfb,aes192-cbc,aes192-cbc-pkcs7,aes192-ofb,aes192-ctr,aes256-ecb,aes256-cbc,aes256-cbc-pkcs7,aes256-cfb,aes256-ofb,aes256-ctr,blowfish-ecb,blowfish-cbc-pkcs7,blowfish-cbc,blowfish-cfb,blowfish-ofb,tripledes-ecb,tripledes-cbc,des-ecb,des-ecb-pkcs7,des-cbc,des-cbc-pkcs7,des-cfb,des-ofb,cast5-ecb,cast5-cbc,cast5-cbc-pkcs7,cast5-cfb,cast5-ofb,pbkdf1(sha1),pbkdf2(sha1),pkey,dlgroup,rsa,dsa,dh,cert,csr,crl,certcollection,pkcs12,tls,cms,ca
src/core/auth/qgsauthmanager.cpp: 126: (init) [1ms] Prioritizing qca-ossl over all other QCA providers...
src/core/auth/qgsauthmanager.cpp: 140: (init) [0ms] QCA provider priorities: qca-cyrus-sasl:1, qca-logger:1, qca-ossl:0, qca-softstore:1
src/core/auth/qgsauthmanager.cpp: 142: (init) [0ms] Populating auth method registry
src/core/auth/qgsauthmethodregistry.cpp: 66: (QgsAuthMethodRegistry) [0ms] Checking for auth method plugins in: /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis
src/core/auth/qgsauthmanager.cpp: 147: (init) [11ms] Authentication methods found: Basic, Identity-Cert, PKI-PKCS#12, PKI-Paths
src/core/auth/qgsauthmethodregistry.cpp: 288: (authMethod) [0ms] Auth method library name is /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libbasicauthmethod.so
src/core/auth/qgsauthmethodregistry.cpp: 310: (authMethod) [0ms] Instantiated the auth method plugin: Basic
src/core/auth/qgsauthmethodregistry.cpp: 288: (authMethod) [1ms] Auth method library name is /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libidentcertauthmethod.so
src/core/auth/qgsauthmethodregistry.cpp: 310: (authMethod) [0ms] Instantiated the auth method plugin: Identity-Cert
src/core/auth/qgsauthmethodregistry.cpp: 288: (authMethod) [0ms] Auth method library name is /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libpkcs12authmethod.so
src/core/auth/qgsauthmethodregistry.cpp: 310: (authMethod) [0ms] Instantiated the auth method plugin: PKI-PKCS#12
src/core/auth/qgsauthmethodregistry.cpp: 288: (authMethod) [0ms] Auth method library name is /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libpkipathsauthmethod.so
src/core/auth/qgsauthmethodregistry.cpp: 310: (authMethod) [0ms] Instantiated the auth method plugin: PKI-Paths
src/core/auth/qgsauthmanager.cpp: 164: (init) [0ms] Auth database path: /Users/rainerkrug/.qgis2/qgis-auth.db
src/core/auth/qgsauthmanager.cpp: 168: (init) [1ms] Auth db directory path: /Users/rainerkrug/.qgis2
src/core/auth/qgsauthmanager.cpp: 193: (init) [0ms] Auth db exists and has data
src/core/auth/qgsauthmanager.cpp: 323: (createCertTables) [0ms] Creating cert tables in auth db
src/core/auth/qgsauthmanager.cpp: 885: (updateConfigAuthMethods) [10ms] Synching existing auth config and their auth methods
src/core/auth/qgsauthmanager.cpp: 894: (updateConfigAuthMethods) [12ms] Stored auth config/methods:

src/core/auth/qgsauthmanager.cpp: 2439: (rebuildCaCertsCache) [42ms] Rebuild of CA certs cache SUCCEEDED
src/core/auth/qgsauthmanager.cpp: 2636: (rebuildCertTrustCache) [1ms] Rebuild of cert trust policy cache SUCCEEDED
src/core/auth/qgsauthmanager.cpp: 2701: (rebuildTrustedCaCertsCache) [5ms] Rebuilt trusted cert authorities cache
src/core/auth/qgsauthmanager.cpp: 2205: (rebuildIgnoredSslErrorCache) [1ms] Rebuild of ignored SSL errors cache SAME AS BEFORE
src/core/auth/qgsauthmanager.cpp: 2075: (dumpIgnoredSslErrorsCache_) [0ms] Ignored SSL errors cache EMPTY
src/core/auth/qgsauthmanager.cpp: 1587: (initSslCaches) [0ms] Init of SSL caches SUCCEEDED
src/core/qgsruntimeprofiler.cpp: 56: (end) [0ms] PROFILE: qgisapp/startup/Initializing authentication - 0.109
src/core/qgsruntimeprofiler.cpp: 56: (end) [2ms] PROFILE: qgisapp/startup/Creating theme folder - 0.002
src/app/qgisappstylesheet.cpp: 200: (setActiveValues) [2ms] Style name: macintosh (aqua)
src/app/qgisappstylesheet.cpp: 67: (defaultOptions) [0ms] fontPointSize: 13
src/app/qgisappstylesheet.cpp: 87: (defaultOptions) [1ms] fontFamily: .SF NS Text
src/app/qgisappstylesheet.cpp: 106: (buildStyleSheet) [0ms] fontPointSize: 13
src/app/qgisappstylesheet.cpp: 110: (buildStyleSheet) [0ms] fontFamily: .SF NS Text
src/app/qgisappstylesheet.cpp: 117: (buildStyleSheet) [0ms] groupBoxCustom: 1
src/app/qgisappstylesheet.cpp: 178: (buildStyleSheet) [1ms] Stylesheet built: * { font: 13pt ".SF NS Text"} QGroupBox{color: rgb(25,25,25);font-weight: bold;background-color: rgba(0,0,0,3%);border: 1px solid rgba(0,0,0,20%);border-radius: 5px;margin-top: 2.5ex;margin-bottom: 1.5ex;} QGroupBox:flat{background-color: rgba(0,0,0,0);border: rgba(0,0,0,0);} QGroupBox::title{subcontrol-origin: margin;subcontrol-position: top left;margin-left: 6px;background-color: rgba(0,0,0,0);} QListWidget#mOptionsListWidget {    background-color: rgb(69, 69, 69, 220);    outline: 0;}QListWidget#mOptionsListWidget::item {    color: white;    padding: 3px;}QListWidget#mOptionsListWidget::item::selected {    color: black;    background-color:palette(Window);    padding-right: 0px;}QTableView {selection-background-color: #b2d7ff;selection-color: #000000;}
src/core/qgsruntimeprofiler.cpp: 56: (end) [45ms] PROFILE: qgisapp/startup/Building style sheet - 0.047
src/core/qgsscalecalculator.cpp: 40: (setMapUnits) [27ms] Map units set to 2
src/core/qgsscalecalculator.cpp: 40: (setMapUnits) [5ms] Map units set to 2
src/core/qgsscalecalculator.cpp: 40: (setMapUnits) [54ms] Map units set to 2
src/core/qgsscalecalculator.cpp: 129: (calculateGeographicDistance) [0ms] Distance across map extent (m): 0
src/core/qgsscalecalculator.cpp: 82: (calculate) [0ms] Can't calculate scale from the input values
src/core/qgsmaprenderer.cpp: 210: (adjustExtentToSize) [4ms] Map units per pixel (x,y) : 0, 0
src/core/qgsmaprenderer.cpp: 211: (adjustExtentToSize) [0ms] Pixmap dimensions (x,y) : 98, 28
src/core/qgsmaprenderer.cpp: 212: (adjustExtentToSize) [0ms] Extent dimensions (x,y) : 0, 0
src/core/qgsmaprenderer.cpp: 213: (adjustExtentToSize) [0ms] Empty
src/core/qgsmaprenderer.cpp: 221: (adjustExtentToSize) [0ms] Adjusted map units per pixel (x,y) : 0, 0
src/core/qgsmaprenderer.cpp: 223: (adjustExtentToSize) [0ms] Recalced pixmap dimensions (x,y) : nan, nan
src/core/qgsscalecalculator.cpp: 129: (calculateGeographicDistance) [0ms] Distance across map extent (m): 0
src/core/qgsscalecalculator.cpp: 86: (calculate) [0ms] scale = 0 conversionFactor = 39.3701
src/core/qgsmaprenderer.cpp: 228: (adjustExtentToSize) [0ms] Scale (assuming meters as map units) = 1:0
src/gui/qgsmapcanvas.cpp: 676: (refresh) [1ms] CANVAS refresh - invalid settings -> nothing to do
src/core/qgsruntimeprofiler.cpp: 56: (end) [0ms] PROFILE: qgisapp/startup/Creating map canvas - 0.09
src/core/qgsnetworkaccessmanager.cpp: 189: (createRequest) [7ms] Adding trusted CA certs to request
src/core/qgsnetworkaccessmanager.cpp: 94: (queryProxy) [16ms] using fallback proxy for https://ubuntu.qgis.org/version.txt
src/core/qgsruntimeprofiler.cpp: 56: (end) [2ms] PROFILE: qgisapp/startup/Welcome page - 0.024
src/core/qgsruntimeprofiler.cpp: 56: (end) [10ms] PROFILE: qgisapp/startup/Message bar - 0.005
src/core/qgsruntimeprofiler.cpp: 56: (end) [6ms] PROFILE: qgisapp/startup/User input dock - 0.006
src/core/qgsruntimeprofiler.cpp: 56: (end) [2ms] PROFILE: qgisapp/startup/Layer tree - 0.002
src/core/qgsruntimeprofiler.cpp: 56: (end) [12ms] PROFILE: qgisapp/startup/Undo dock - 0.012
src/core/qgsruntimeprofiler.cpp: 56: (end) [29ms] PROFILE: qgisapp/startup/Advanced digitize panel - 0.028
src/core/qgsruntimeprofiler.cpp: 56: (end) [38ms] PROFILE: qgisapp/startup/Stats dock - 0.038
src/core/qgsruntimeprofiler.cpp: 56: (end) [35ms] PROFILE: qgisapp/startup/Bookmarks widget - 0.035
src/core/qgsscalecalculator.cpp: 40: (setMapUnits) [0ms] Map units set to 2
src/core/qgsruntimeprofiler.cpp: 56: (end) [1ms] PROFILE: qgisapp/startup/Snapping utils - 0.001
src/core/qgsruntimeprofiler.cpp: 56: (end) [1ms] PROFILE: qgisapp/startup/Create actions - 0.001
src/core/qgsruntimeprofiler.cpp: 56: (end) [0ms] PROFILE: qgisapp/startup/Create action group - 0
src/core/qgsruntimeprofiler.cpp: 56: (end) [2ms] PROFILE: qgisapp/startup/Create menus - 0.002
src/core/qgsruntimeprofiler.cpp: 56: (end) [2ms] PROFILE: qgisapp/startup/Toolbars - 0.002
src/core/qgsruntimeprofiler.cpp: 56: (end) [34ms] PROFILE: qgisapp/startup/Status bar - 0.034
src/app/qgsmeasuredialog.cpp: 94: (updateSettings) [9ms] ****************
src/app/qgsmeasuredialog.cpp: 95: (updateSettings) [0ms] Ellipsoid ID : NONE
src/app/qgsmeasuredialog.cpp: 96: (updateSettings) [0ms] Ellipsoidal  : false
src/app/qgsmeasuredialog.cpp: 97: (updateSettings) [0ms] Decimalplaces: 3
src/app/qgsmeasuredialog.cpp: 98: (updateSettings) [0ms] Distance units: meters
src/app/qgsmeasuredialog.cpp: 99: (updateSettings) [0ms] Area units: m2
src/app/qgsmeasuredialog.cpp: 100: (updateSettings) [0ms] Canvas units : degrees
src/core/qgsdistancearea.cpp: 1382: (convertLengthMeasurement) [1ms] Converted length of 0 degrees to 0 meters
src/core/qgsdistancearea.cpp: 1382: (convertLengthMeasurement) [3ms] Converted length of 0 degrees to 0 meters
src/app/qgsmeasuredialog.cpp: 94: (updateSettings) [6ms] ****************
src/app/qgsmeasuredialog.cpp: 95: (updateSettings) [0ms] Ellipsoid ID : NONE
src/app/qgsmeasuredialog.cpp: 96: (updateSettings) [0ms] Ellipsoidal  : false
src/app/qgsmeasuredialog.cpp: 97: (updateSettings) [0ms] Decimalplaces: 3
src/app/qgsmeasuredialog.cpp: 98: (updateSettings) [0ms] Distance units: meters
src/app/qgsmeasuredialog.cpp: 99: (updateSettings) [0ms] Area units: m2
src/app/qgsmeasuredialog.cpp: 100: (updateSettings) [0ms] Canvas units : degrees
src/core/qgsdistancearea.cpp: 1396: (convertAreaMeasurement) [1ms] Converted area of 0 square degrees to 0 square meters
src/core/qgsdistancearea.cpp: 1396: (convertAreaMeasurement) [2ms] Converted area of 0 square degrees to 0 square meters
src/core/qgsruntimeprofiler.cpp: 56: (end) [5ms] PROFILE: qgisapp/startup/Create canvas tools - 0.027
src/gui/qgsmapcanvas.cpp: 676: (refresh) [29ms] CANVAS refresh - invalid settings -> nothing to do
src/gui/qgsmapcanvas.cpp: 676: (refresh) [8ms] CANVAS refresh - invalid settings -> nothing to do
src/core/qgsruntimeprofiler.cpp: 56: (end) [0ms] PROFILE: qgisapp/startup/Init Layer tree view - 0.037
src/core/qgsscalecalculator.cpp: 40: (setMapUnits) [0ms] Map units set to 2
src/gui/qgsmapcanvas.cpp: 676: (refresh) [8ms] CANVAS refresh - invalid settings -> nothing to do
src/core/qgsruntimeprofiler.cpp: 56: (end) [0ms] PROFILE: qgisapp/startup/Create overview - 0.008
src/core/qgsruntimeprofiler.cpp: 56: (end) [0ms] PROFILE: qgisapp/startup/Create map tips - 0
src/app/qgsdecorationitem.cpp: 85: (setName) [1ms] name=Copyright Label nameconfig=CopyrightLabel nametrans=Copyright Label
src/app/qgsdecorationitem.cpp: 85: (setName) [0ms] name=North Arrow nameconfig=NorthArrow nametrans=North Arrow
src/app/qgsdecorationitem.cpp: 85: (setName) [0ms] name=Scale Bar nameconfig=ScaleBar nametrans=Scale Bar
src/app/qgsdecorationitem.cpp: 85: (setName) [0ms] name=Grid nameconfig=Grid nametrans=Grid
src/core/qgsruntimeprofiler.cpp: 56: (end) [4ms] PROFILE: qgisapp/startup/Create decorations - 0.005
Warning: QCss::Parser - Failed to load file  "/style.qss"
src/core/qgsmessagelog.cpp: 45: (logMessage) [2ms] 2017-01-18T09:59:48 Qt[1] QCss::Parser - Failed to load file  "/style.qss"
src/core/qgsruntimeprofiler.cpp: 56: (end) [426ms] PROFILE: qgisapp/startup/Read settings - 0.428
src/core/qgsruntimeprofiler.cpp: 56: (end) [0ms] PROFILE: qgisapp/startup/Update recent project paths - 0
src/core/qgsruntimeprofiler.cpp: 56: (end) [0ms] PROFILE: qgisapp/startup/Update project from templates - 0
src/core/qgsruntimeprofiler.cpp: 56: (end) [1ms] PROFILE: qgisapp/startup/Legend layer selection changed - 0.001
QKqueueFileSystemWatcherEngine::addPaths: open: No such file or directory
Warning: QFileSystemWatcher: failed to add paths: /Users/rainerkrug/.qgis2//project_templates
src/core/qgsmessagelog.cpp: 45: (logMessage) [0ms] 2017-01-18T09:59:48 Qt[1] QFileSystemWatcher: failed to add paths: /Users/rainerkrug/.qgis2//project_templates
src/app/pluginmanager/qgspluginmanager.cpp: 1090: (setCurrentTab) [129ms] Switching current tab to Plugins
src/core/qgsruntimeprofiler.cpp: 56: (end) [24ms] PROFILE: qgisapp/startup/Plugin manager - 0.153
src/gui/qgsmapcanvas.cpp: 676: (refresh) [0ms] CANVAS refresh - invalid settings -> nothing to do
Warning: QLayout: Attempting to add QLayout "" to QgsPanelWidgetStack "mWidgetStack", which already has a layout
src/core/qgsmessagelog.cpp: 45: (logMessage) [8ms] 2017-01-18T09:59:48 Qt[1] QLayout: Attempting to add QLayout "" to QgsPanelWidgetStack "mWidgetStack", which already has a layout
src/gui/qgsmapcanvas.cpp: 676: (refresh) [9ms] CANVAS refresh - invalid settings -> nothing to do
src/core/qgsruntimeprofiler.cpp: 56: (end) [0ms] PROFILE: qgisapp/startup/Layer Style dock - 0.016
src/core/qgsruntimeprofiler.cpp: 56: (end) [10ms] PROFILE: qgisapp/startup/Snapping dialog - 0.01
src/gui/qgsmapcanvas.cpp: 676: (refresh) [30ms] CANVAS refresh - invalid settings -> nothing to do
src/gui/qgsmapcanvas.cpp: 676: (refresh) [31ms] CANVAS refresh - invalid settings -> nothing to do
src/gui/qgsmapcanvas.cpp: 676: (refresh) [1ms] CANVAS refresh - invalid settings -> nothing to do
src/gui/qgsmapcanvas.cpp: 676: (refresh) [0ms] CANVAS refresh - invalid settings -> nothing to do
src/gui/qgsmapcanvas.cpp: 676: (refresh) [2ms] CANVAS refresh - invalid settings -> nothing to do
src/gui/qgsmapcanvas.cpp: 676: (refresh) [109ms] CANVAS refresh - invalid settings -> nothing to do
src/gui/qgsmapcanvas.cpp: 676: (refresh) [14ms] CANVAS refresh - invalid settings -> nothing to do
src/core/qgsmessagelog.cpp: 45: (logMessage) [9ms] 2017-01-18T09:59:48 [0] QGIS starting...
src/core/qgsproviderregistry.cpp: 89: (init) [30ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis for provider plugins
src/core/qgsproviderregistry.cpp: 142: (init) [13ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libbasicauthmethod.so: ...invalid (no isProvider method)
src/core/qgsproviderregistry.cpp: 134: (init) [3ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libcoordinatecaptureplugin.so: ...invalid (has type method)
src/core/qgsproviderregistry.cpp: 134: (init) [15ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libdxf2shpconverterplugin.so: ...invalid (has type method)
src/core/qgsproviderregistry.cpp: 134: (init) [3ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libevis.so: ...invalid (has type method)
ERROR 1: dlopen(/usr/local/lib/gdalplugins/gdal_GRASS.so, 1): Library not loaded: /usr/local/Cellar/grass-64/6.4.4_1/grass-6.4.4/lib/libgrass_I.6.4.4.dylib
  Referenced from: /usr/local/lib/gdalplugins/gdal_GRASS.so
  Reason: image not found
ERROR 1: dlopen(/usr/local/lib/gdalplugins/gdal_GRASS.so, 1): Library not loaded: /usr/local/Cellar/grass-64/6.4.4_1/grass-6.4.4/lib/libgrass_I.6.4.4.dylib
  Referenced from: /usr/local/lib/gdalplugins/gdal_GRASS.so
  Reason: image not found
ERROR 1: dlopen(/usr/local/lib/gdalplugins/ogr_GRASS.so, 1): Library not loaded: /usr/local/Cellar/grass-64/6.4.4_1/grass-6.4.4/lib/libgrass_I.6.4.4.dylib
  Referenced from: /usr/local/lib/gdalplugins/ogr_GRASS.so
  Reason: image not found
ERROR 1: dlopen(/usr/local/lib/gdalplugins/ogr_GRASS.so, 1): Library not loaded: /usr/local/Cellar/grass-64/6.4.4_1/grass-6.4.4/lib/libgrass_I.6.4.4.dylib
  Referenced from: /usr/local/lib/gdalplugins/ogr_GRASS.so
  Reason: image not found
src/providers/gdal/qgsgdalprovider.cpp: 2023: (buildSupportedRasterFileFilterAndExtensions) [54ms] GDAL driver count: 176
src/providers/gdal/qgsgdalprovider.cpp: 2213: (buildSupportedRasterFileFilterAndExtensions) [3ms] Raster filter list built: All files (*);;GDAL/OGR VSIFileHandler (*.zip *.gz *.tar *.tar.gz *.tgz *.ZIP *.GZ *.TAR *.TAR.GZ *.TGZ);;ACE2 (*.ace2 *.ACE2);;ARC Digitized Raster Graphics (*.gen *.GEN);;ASCII Gridded XYZ (*.xyz *.XYZ);;Arc/Info ASCII Grid (*.asc *.ASC);;Arc/Info Binary Grid (hdr.adf HDR.ADF);;Arc/Info Export E00 GRID (*.e00 *.E00);;DRDC COASP SAR Processor Raster (*.hdr *.HDR);;DTED Elevation Raster (*.dt0 *.dt1 *.dt2 *.DT0 *.DT1 *.DT2);;ECRG TOC format (*.xml *.XML);;ESRI .hdr Labelled (*.bil *.BIL);;EUMETSAT Archive native  (*.nat *.NAT);;Envisat Image Format (*.n1 *.N1);;Erdas Imagine Images  (*.img *.IMG);;FARSITE v.4 Landscape File  (*.lcp *.LCP);;GRIdded Binary  (*.grb *.GRB);;GeoPackage (*.gpkg *.GPKG);;GeoSoft Grid Exchange Format (*.gxf *.GXF);;GeoTIFF (*.tif *.tiff *.TIF *.TIFF);;Geospatial PDF (*.pdf *.PDF);;Golden Software 7 Binary Grid  (*.grd *.GRD);;Golden Software ASCII Grid  (*.grd *.GRD);;Golden Software Binary Grid  (*.grd *.GRD);;Graphics Interchange Format  (*.gif *.GIF);;Graphics Interchange Format  (*.gif *.GIF);;Ground-based SAR Applications Testbed File Format  (*.gff *.GFF);;HF2/HFZ heightfield raster (*.hf2 *.HF2);;ILWIS Raster Map (*.mpr *.mpl *.MPR *.MPL);;IRIS data  (*.ppi *.PPI);;Idrisi Raster A.1 (*.rst *.RST);;JPEG JFIF (*.jpg *.jpeg *.JPG *.JPEG);;Japanese DEM  (*.mem *.MEM);;KOLOR Raw (*.kro *.KRO);;Leveller heightfield (*.ter *.TER);;MBTiles (*.mbtiles *.MBTILES);;MS Windows Device Independent Bitmap (*.bmp *.BMP);;Magellan topo  (*.blx *.BLX);;NOAA NGS Geoid Height Grids (*.bin *.BIN);;NOAA Vertical Datum .GTX (*.gtx *.GTX);;NTv2 Datum Grid Shift (*.gsb *.GSB);;National Imagery Transmission Format (*.ntf *.NTF);;Northwood Classified Grid Format .grc/.tab (*.grc *.GRC);;Northwood Numeric Grid Format .grd/.tab (*.grd *.GRD);;PCIDSK Database File (*.pix *.PIX);;PCRaster Raster File (*.map *.MAP);;Portable Network Graphics (*.png *.PNG);;Portable Pixmap Format  (*.pnm *.PNM);;R Object Data Store (*.rda *.RDA);;Raster Matrix Format (*.rsw *.RSW);;Raster Product Format TOC format (*.toc *.TOC);;Rasterlite (*.sqlite *.SQLITE);;SAGA GIS Binary Grid  (*.sdat *.SDAT);;SDTS Raster (*.ddf *.DDF);;SGI Image File Format 1.0 (*.rgb *.RGB);;SRTMHGT File Format (*.hgt *.HGT);;Snow Data Assimilation System (*.hdr *.HDR);;Standard Raster Product  (*.img *.IMG);;Swedish Grid RIK  (*.rik *.RIK);;Terragen heightfield (*.ter *.TER);;USGS Optional ASCII DEM  (*.dem *.DEM);;VTP .bt (Binary Terrain) 1.3 Format (*.bt *.BT);;Vexcel MFF Raster (*.hdr *.HDR);;Virtual Raster (*.vrt *.ovr *.VRT *.OVR);;X11 PixMap Format (*.xpm *.XPM);;ZMap Plus Grid (*.dat *.DAT)
src/providers/gdal/qgsgdalprovider.cpp: 2214: (buildSupportedRasterFileFilterAndExtensions) [0ms] Raster extension list built: vrt ovr tif tiff ntf toc xml img gff asc ddf dt0 dt1 dt2 png jpg jpeg mem gif gif n1 xpm bmp pix map mpr mpl rgb hgt ter ter grb rsw nat rst grd grd grd hdr rda pdf sqlite mbtiles pnm hdr bt lcp gtx gsb ACE2 hdr kro bil rik dem gxf grd grc gen img blx sdat xyz hf2 e00 dat bin ppi gpkg zip gz tar tar.gz tgz
src/core/qgsproviderregistry.cpp: 213: (init) [0ms] raster filters: All files (*);;GDAL/OGR VSIFileHandler (*.zip *.gz *.tar *.tar.gz *.tgz *.ZIP *.GZ *.TAR *.TAR.GZ *.TGZ);;ACE2 (*.ace2 *.ACE2);;ARC Digitized Raster Graphics (*.gen *.GEN);;ASCII Gridded XYZ (*.xyz *.XYZ);;Arc/Info ASCII Grid (*.asc *.ASC);;Arc/Info Binary Grid (hdr.adf HDR.ADF);;Arc/Info Export E00 GRID (*.e00 *.E00);;DRDC COASP SAR Processor Raster (*.hdr *.HDR);;DTED Elevation Raster (*.dt0 *.dt1 *.dt2 *.DT0 *.DT1 *.DT2);;ECRG TOC format (*.xml *.XML);;ESRI .hdr Labelled (*.bil *.BIL);;EUMETSAT Archive native  (*.nat *.NAT);;Envisat Image Format (*.n1 *.N1);;Erdas Imagine Images  (*.img *.IMG);;FARSITE v.4 Landscape File  (*.lcp *.LCP);;GRIdded Binary  (*.grb *.GRB);;GeoPackage (*.gpkg *.GPKG);;GeoSoft Grid Exchange Format (*.gxf *.GXF);;GeoTIFF (*.tif *.tiff *.TIF *.TIFF);;Geospatial PDF (*.pdf *.PDF);;Golden Software 7 Binary Grid  (*.grd *.GRD);;Golden Software ASCII Grid  (*.grd *.GRD);;Golden Software Binary Grid  (*.grd *.GRD);;Graphics Interchange Format  (*.gif *.GIF);;Graphics Interchange Format  (*.gif *.GIF);;Ground-based SAR Applications Testbed File Format  (*.gff *.GFF);;HF2/HFZ heightfield raster (*.hf2 *.HF2);;ILWIS Raster Map (*.mpr *.mpl *.MPR *.MPL);;IRIS data  (*.ppi *.PPI);;Idrisi Raster A.1 (*.rst *.RST);;JPEG JFIF (*.jpg *.jpeg *.JPG *.JPEG);;Japanese DEM  (*.mem *.MEM);;KOLOR Raw (*.kro *.KRO);;Leveller heightfield (*.ter *.TER);;MBTiles (*.mbtiles *.MBTILES);;MS Windows Device Independent Bitmap (*.bmp *.BMP);;Magellan topo  (*.blx *.BLX);;NOAA NGS Geoid Height Grids (*.bin *.BIN);;NOAA Vertical Datum .GTX (*.gtx *.GTX);;NTv2 Datum Grid Shift (*.gsb *.GSB);;National Imagery Transmission Format (*.ntf *.NTF);;Northwood Classified Grid Format .grc/.tab (*.grc *.GRC);;Northwood Numeric Grid Format .grd/.tab (*.grd *.GRD);;PCIDSK Database File (*.pix *.PIX);;PCRaster Raster File (*.map *.MAP);;Portable Network Graphics (*.png *.PNG);;Portable Pixmap Format  (*.pnm *.PNM);;R Object Data Store (*.rda *.RDA);;Raster Matrix Format (*.rsw *.RSW);;Raster Product Format TOC format (*.toc *.TOC);;Rasterlite (*.sqlite *.SQLITE);;SAGA GIS Binary Grid  (*.sdat *.SDAT);;SDTS Raster (*.ddf *.DDF);;SGI Image File Format 1.0 (*.rgb *.RGB);;SRTMHGT File Format (*.hgt *.HGT);;Snow Data Assimilation System (*.hdr *.HDR);;Standard Raster Product  (*.img *.IMG);;Swedish Grid RIK  (*.rik *.RIK);;Terragen heightfield (*.ter *.TER);;USGS Optional ASCII DEM  (*.dem *.DEM);;VTP .bt (Binary Terrain) 1.3 Format (*.bt *.BT);;Vexcel MFF Raster (*.hdr *.HDR);;Virtual Raster (*.vrt *.ovr *.VRT *.OVR);;X11 PixMap Format (*.xpm *.XPM);;ZMap Plus Grid (*.dat *.DAT)
src/core/qgsproviderregistry.cpp: 217: (init) [7ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libgdalprovider.so: ...loaded ok (66 file filters)
src/core/qgsproviderregistry.cpp: 134: (init) [6ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libgeometrycheckerplugin.so: ...invalid (has type method)
src/core/qgsproviderregistry.cpp: 134: (init) [3ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libgeometrysnapperplugin.so: ...invalid (has type method)
src/core/qgsproviderregistry.cpp: 134: (init) [11ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libgeorefplugin.so: ...invalid (has type method)
src/core/qgsproviderregistry.cpp: 134: (init) [4ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libgpsimporterplugin.so: ...invalid (has type method)
src/core/qgsproviderregistry.cpp: 134: (init) [30ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libgrassplugin7.so: ...invalid (has type method)
src/providers/grass/qgsgrass.cpp: 542: (lock) [4ms] lock
src/providers/grass/qgsgrass.cpp: 339: (init) [0ms] do init
src/providers/grass/qgsgrass.cpp: 2758: (defaultGisbase) [3ms] gisbase from envar =
src/providers/grass/qgsgrass.cpp: 507: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()
src/providers/grass/qgsgrass.cpp: 2784: (defaultGisbase) [1ms] gisbase = /usr/local/opt/grass7/grass-7.2.0
src/providers/grass/qgsgrass.cpp: 507: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()
src/providers/grass/qgsgrass.cpp: 2758: (defaultGisbase) [0ms] gisbase from envar =
src/providers/grass/qgsgrass.cpp: 507: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()
src/providers/grass/qgsgrass.cpp: 2784: (defaultGisbase) [0ms] gisbase = /usr/local/opt/grass7/grass-7.2.0
src/providers/grass/qgsgrass.cpp: 407: (init) [0ms] Valid GRASS gisbase is: /usr/local/opt/grass7/grass-7.2.0
src/providers/grass/qgsgrass.cpp: 2758: (defaultGisbase) [0ms] gisbase from envar =
src/providers/grass/qgsgrass.cpp: 507: (isValidGrassBaseDir) [0ms] isValidGrassBaseDir()
src/providers/grass/qgsgrass.cpp: 2784: (defaultGisbase) [0ms] gisbase = /usr/local/opt/grass7/grass-7.2.0
src/providers/grass/qgsgrass.cpp: 2758: (defaultGisbase) [0ms] gisbase from envar = /usr/local/opt/grass7/grass-7.2.0
src/providers/grass/qgsgrass.cpp: 2758: (defaultGisbase) [1ms] gisbase from envar = /usr/local/opt/grass7/grass-7.2.0
src/providers/grass/qgsgrass.cpp: 443: (init) [0ms] mGrassModulesPaths = /usr/local/opt/grass7/grass-7.2.0/bin,/usr/local/opt/grass7/grass-7.2.0/scripts,/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/grass/scripts,/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/lib/qgis/grass/modules
src/providers/grass/qgsgrass.cpp: 548: (unlock) [12ms] unlock
src/core/qgsproviderregistry.cpp: 134: (init) [10ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libheatmapplugin.so: ...invalid (has type method)
src/core/qgsproviderregistry.cpp: 142: (init) [1ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libidentcertauthmethod.so: ...invalid (no isProvider method)
src/core/qgsproviderregistry.cpp: 134: (init) [3ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libinterpolationplugin.so: ...invalid (has type method)
src/core/qgsproviderregistry.cpp: 134: (init) [15ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libofflineeditingplugin.so: ...invalid (has type method)
src/providers/ogr/qgsogrprovider.cpp: 2054: (createFilters) [6ms] Driver count: 62
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [1ms] Unknown driver OGR_SDTS for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver OGR_VRT for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [1ms] Unknown driver REC for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver Memory for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver OGR_GMT for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [1ms] Unknown driver PGDUMP for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver GPSBabel for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [1ms] Unknown driver OGR_PDS for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver WFS for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver AeronavFAA for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver GFT for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver Cloudant for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [1ms] Unknown driver Idrisi for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver ElasticSearch for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver Carto for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver AmigoCloud for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [1ms] Unknown driver Selafin for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver JML for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver PLSCENES for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver CSW for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver VDV for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2376: (createFilters) [0ms] Unknown driver HTTP for file filters.
src/providers/ogr/qgsogrprovider.cpp: 2382: (createFilters) [1ms] myFileFilters: PCI Geomatics Database File (*.pix *.PIX);;Geospatial PDF (*.pdf *.PDF);;ESRI Shapefiles (*.shp *.SHP);;Mapinfo File (*.mif *.tab *.MIF *.TAB);;S-57 Base file (*.000 *.000);;Microstation DGN (*.dgn *.DGN);;Atlas BNA (*.bna *.BNA);;Comma Separated Value (*.csv *.CSV);;Geography Markup Language [GML] (*.gml *.GML);;GPS eXchange Format [GPX] (*.gpx *.GPX);;Keyhole Markup Language [KML] (*.kml *.kmz *.KML *.KMZ);;GeoJSON (*.geojson *.GEOJSON);;GeoPackage (*.gpkg *.GPKG);;SQLite/SpatiaLite (*.sqlite *.db *.sqlite3 *.db3 *.s3db *.sl3 *.SQLITE *.DB *.SQLITE3 *.DB3 *.S3DB *.SL3);;WAsP (*.map *.MAP);;X-Plane/Flightgear (apt.dat nav.dat fix.dat awy.dat APT.DAT NAV.DAT FIX.DAT AWY.DAT);;AutoCAD DXF (*.dxf *.DXF);;Geoconcept (*.gxt *.txt *.GXT *.TXT);;GeoRSS (*.xml *.XML);;GPSTrackMaker (*.gtm *.gtz *.GTM *.GTZ);;Czech Cadastral Exchange Data Format (*.vfk *.VFK);;OpenStreetMap (*.osm *.pbf *.OSM *.PBF);;Special Use Airspace Format (*.sua *.SUA);;OpenAir Special Use Airspace Format (*.txt *.TXT);;Hydrographic Transfer Format (*.htf *.HTF);;EDIGEO (*.thf *.THF);;Scalable Vector Graphics (*.svg *.SVG);;Arc/Info Generate (*.gen *.GEN);;SEG-P1 (*.seg *.seg1 *.sp1 *.SEG *.SEG1 *.SP1);;UKOOA P1/90 (*.uko *.ukooa *.UKO *.UKOOA);;SEG-Y (*.sgy *.segy *.SGY *.SEGY);;MS Excel format (*.xls *.XLS);;Open Document Spreadsheet (*.ods *.ODS);;MS Office Open XML spreadsheet (*.xlsx *.XLSX);;Storage and eXchange Format (*.sxf *.SXF);;Arc/Info ASCII Coverage (*.e00 *.E00);;
src/providers/ogr/qgsogrprovider.cpp: 2386: (createFilters) [0ms] myFileFilters: Arc/Info ASCII Coverage (*.e00 *.E00);;Arc/Info Generate (*.gen *.GEN);;Atlas BNA (*.bna *.BNA);;AutoCAD DXF (*.dxf *.DXF);;Comma Separated Value (*.csv *.CSV);;Czech Cadastral Exchange Data Format (*.vfk *.VFK);;EDIGEO (*.thf *.THF);;ESRI Shapefiles (*.shp *.SHP);;GPS eXchange Format [GPX] (*.gpx *.GPX);;GPSTrackMaker (*.gtm *.gtz *.GTM *.GTZ);;GeoJSON (*.geojson *.GEOJSON);;GeoPackage (*.gpkg *.GPKG);;GeoRSS (*.xml *.XML);;Geoconcept (*.gxt *.txt *.GXT *.TXT);;Geography Markup Language [GML] (*.gml *.GML);;Geospatial PDF (*.pdf *.PDF);;Hydrographic Transfer Format (*.htf *.HTF);;Keyhole Markup Language [KML] (*.kml *.kmz *.KML *.KMZ);;MS Excel format (*.xls *.XLS);;MS Office Open XML spreadsheet (*.xlsx *.XLSX);;Mapinfo File (*.mif *.tab *.MIF *.TAB);;Microstation DGN (*.dgn *.DGN);;Open Document Spreadsheet (*.ods *.ODS);;OpenAir Special Use Airspace Format (*.txt *.TXT);;OpenStreetMap (*.osm *.pbf *.OSM *.PBF);;PCI Geomatics Database File (*.pix *.PIX);;S-57 Base file (*.000 *.000);;SEG-P1 (*.seg *.seg1 *.sp1 *.SEG *.SEG1 *.SP1);;SEG-Y (*.sgy *.segy *.SGY *.SEGY);;SQLite/SpatiaLite (*.sqlite *.db *.sqlite3 *.db3 *.s3db *.sl3 *.SQLITE *.DB *.SQLITE3 *.DB3 *.S3DB *.SL3);;Scalable Vector Graphics (*.svg *.SVG);;Special Use Airspace Format (*.sua *.SUA);;Storage and eXchange Format (*.sxf *.SXF);;UKOOA P1/90 (*.uko *.ukooa *.UKO *.UKOOA);;WAsP (*.map *.MAP);;X-Plane/Flightgear (apt.dat nav.dat fix.dat awy.dat APT.DAT NAV.DAT FIX.DAT AWY.DAT);;
src/providers/ogr/qgsogrprovider.cpp: 2408: (createFilters) [0ms] myFileFilters: All files (*);;GDAL/OGR VSIFileHandler (*.zip *.gz *.tar *.tar.gz *.tgz *.ZIP *.GZ *.TAR *.TAR.GZ *.TGZ);;Arc/Info ASCII Coverage (*.e00 *.E00);;Arc/Info Generate (*.gen *.GEN);;Atlas BNA (*.bna *.BNA);;AutoCAD DXF (*.dxf *.DXF);;Comma Separated Value (*.csv *.CSV);;Czech Cadastral Exchange Data Format (*.vfk *.VFK);;EDIGEO (*.thf *.THF);;ESRI Shapefiles (*.shp *.SHP);;GPS eXchange Format [GPX] (*.gpx *.GPX);;GPSTrackMaker (*.gtm *.gtz *.GTM *.GTZ);;GeoJSON (*.geojson *.GEOJSON);;GeoPackage (*.gpkg *.GPKG);;GeoRSS (*.xml *.XML);;Geoconcept (*.gxt *.txt *.GXT *.TXT);;Geography Markup Language [GML] (*.gml *.GML);;Geospatial PDF (*.pdf *.PDF);;Hydrographic Transfer Format (*.htf *.HTF);;Keyhole Markup Language [KML] (*.kml *.kmz *.KML *.KMZ);;MS Excel format (*.xls *.XLS);;MS Office Open XML spreadsheet (*.xlsx *.XLSX);;Mapinfo File (*.mif *.tab *.MIF *.TAB);;Microstation DGN (*.dgn *.DGN);;Open Document Spreadsheet (*.ods *.ODS);;OpenAir Special Use Airspace Format (*.txt *.TXT);;OpenStreetMap (*.osm *.pbf *.OSM *.PBF);;PCI Geomatics Database File (*.pix *.PIX);;S-57 Base file (*.000 *.000);;SEG-P1 (*.seg *.seg1 *.sp1 *.SEG *.SEG1 *.SP1);;SEG-Y (*.sgy *.segy *.SGY *.SEGY);;SQLite/SpatiaLite (*.sqlite *.db *.sqlite3 *.db3 *.s3db *.sl3 *.SQLITE *.DB *.SQLITE3 *.DB3 *.S3DB *.SL3);;Scalable Vector Graphics (*.svg *.SVG);;Special Use Airspace Format (*.sua *.SUA);;Storage and eXchange Format (*.sxf *.SXF);;UKOOA P1/90 (*.uko *.ukooa *.UKO *.UKOOA);;WAsP (*.map *.MAP);;X-Plane/Flightgear (apt.dat nav.dat fix.dat awy.dat APT.DAT NAV.DAT FIX.DAT AWY.DAT)
src/core/qgsproviderregistry.cpp: 201: (init) [0ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libogrprovider.so: ...loaded ok (38 file filters)
src/core/qgsproviderregistry.cpp: 134: (init) [3ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/liboracleplugin.so: ...invalid (has type method)
src/core/qgsproviderregistry.cpp: 142: (init) [5ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libpkcs12authmethod.so: ...invalid (no isProvider method)
src/core/qgsproviderregistry.cpp: 142: (init) [1ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libpkipathsauthmethod.so: ...invalid (no isProvider method)
src/core/qgsproviderregistry.cpp: 134: (init) [11ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/librasterterrainplugin.so: ...invalid (has type method)
src/core/qgsproviderregistry.cpp: 134: (init) [3ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libroadgraphplugin.so: ...invalid (has type method)
src/core/qgsproviderregistry.cpp: 134: (init) [12ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libspatialqueryplugin.so: ...invalid (has type method)
src/core/qgsproviderregistry.cpp: 134: (init) [3ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libtopolplugin.so: ...invalid (has type method)
src/providers/wfs/qgswfsutils.cpp: 212: (init) [19ms] Keep-alive mechanism works
src/core/qgsproviderregistry.cpp: 134: (init) [15ms] Checking /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libzonalstatisticsplugin.so: ...invalid (has type method)
src/app/qgisapp.cpp: 8833: (loadPythonSupport) [6ms] load library /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/lib/qgispython (2.18.2)
src/core/qgsmessagelog.cpp: 45: (logMessage) [522ms] 2017-01-18T09:59:49 [0] Python support ENABLED :-)
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [6ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libarcgisfeatureserverprovider.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libarcgismapserverprovider.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [0ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libbasicauthmethod.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libdb2provider.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libdelimitedtextprovider.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libgdalprovider.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libgpxprovider.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libgrassprovider7.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [2ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libgrassrasterprovider7.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libidentcertauthmethod.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libmemoryprovider.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libmssqlprovider.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libogrprovider.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libowsprovider.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [0ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libpkcs12authmethod.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [18ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libpkipathsauthmethod.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [0ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libpostgresprovider.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libspatialiteprovider.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libvirtuallayerprovider.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libwcsprovider.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libwfsprovider.so
src/app/qgspluginregistry.cpp: 577: (checkCppPlugin) [1ms] Failed to get name, description, category or type for /usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../PlugIns/qgis/libwmsprovider.so
src/app/qgspluginregistry.cpp: 495: (restoreSessionPlugins) [4ms] Loading python plugins
src/core/qgsmessagelog.cpp: 45: (logMessage) [18ms] 2017-01-18T09:59:49 Plugins[0] Loaded DB Manager (package: db_manager)
src/core/qgsmessagelog.cpp: 45: (logMessage) [75ms] 2017-01-18T09:59:49 Plugins[0] Loaded GdalTools (package: GdalTools)
src/core/qgsmessagelog.cpp: 45: (logMessage) [338ms] 2017-01-18T09:59:50 Python warning[1] warning:/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pkgutil.py:186: ImportWarning: Not importing directory '/usr/local/lib/python2.7/site-packages/PyObjCTools': missing __init__.py
  file, filename, etc = imp.find_module(subname, path)

traceback:  File "<string>", line 1, in <module>
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 333, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/MetaSearch/__init__.py", line 29, in classFactory
    from MetaSearch.plugin import MetaSearchPlugin
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/MetaSearch/plugin.py", line 33, in <module>
    from MetaSearch.dialogs.maindialog import MetaSearchDialog
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/MetaSearch/dialogs/maindialog.py", line 43, in <module>
    from owslib.csw import CatalogueServiceWeb
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/owslib/csw.py", line 27, in <module>
    from owslib.util import OrderedDict
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/owslib/util.py", line 15, in <module>
    import pytz
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/pytz/__init__.py", line 29, in <module>
    from pkg_resources import resource_stream
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3019, in <module>
    @_call_aside
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3003, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3047, in _initialize_master_working_set
    for dist in working_set
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3047, in <genexpr>
    for dist in working_set
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2577, in activate
    declare_namespace(pkg)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2151, in declare_namespace
    _handle_ns(packageName, path_item)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2071, in _handle_ns
    loader = importer.find_module(packageName)

src/core/qgsmessagelog.cpp: 45: (logMessage) [29ms] 2017-01-18T09:59:50 Python warning[1] warning:/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pkgutil.py:186: ImportWarning: Not importing directory '/usr/local/lib/python2.7/site-packages/mpl_toolkits': missing __init__.py
  file, filename, etc = imp.find_module(subname, path)

traceback:  File "<string>", line 1, in <module>
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 333, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/MetaSearch/__init__.py", line 29, in classFactory
    from MetaSearch.plugin import MetaSearchPlugin
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/MetaSearch/plugin.py", line 33, in <module>
    from MetaSearch.dialogs.maindialog import MetaSearchDialog
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/MetaSearch/dialogs/maindialog.py", line 43, in <module>
    from owslib.csw import CatalogueServiceWeb
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/owslib/csw.py", line 27, in <module>
    from owslib.util import OrderedDict
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/owslib/util.py", line 15, in <module>
    import pytz
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/pytz/__init__.py", line 29, in <module>
    from pkg_resources import resource_stream
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3019, in <module>
    @_call_aside
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3003, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3047, in _initialize_master_working_set
    for dist in working_set
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3047, in <genexpr>
    for dist in working_set
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2577, in activate
    declare_namespace(pkg)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2151, in declare_namespace
    _handle_ns(packageName, path_item)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2071, in _handle_ns
    loader = importer.find_module(packageName)

src/core/qgsmessagelog.cpp: 45: (logMessage) [495ms] 2017-01-18T09:59:50 Plugins[0] Loaded MetaSearch Catalogue Client (package: MetaSearch)
src/core/qgsmessagelog.cpp: 45: (logMessage) [1466ms] 2017-01-18T09:59:52 Processing[2] Problem with OTB installation: OTB was not found or is not correctly installed
src/core/qgsmessagelog.cpp: 45: (logMessage) [14ms] 2017-01-18T09:59:52 Python error[1] Traceback (most recent call last):
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 333, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py", line 38, in classFactory
    return ProcessingPlugin(iface)
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/ProcessingPlugin.py", line 58, in __init__
    Processing.initialize()
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 148, in initialize
    Processing.addProvider(c())
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 103, in addProvider
    % (provider.getDescription(), traceback.format_exc()))
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/saga/SagaAlgorithmProvider.py", line 123, in getDescription
    version = SagaUtils.getSagaInstalledVersion()
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/saga/SagaUtils.py", line 130, in getSagaInstalledVersion
    commands = [os.path.join(sagaPath(), "saga_cmd -v")]
  File "/usr/local/Cellar/qgis2/2.18.2/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/saga/SagaUtils.py", line 75, in sagaPath
    if not os.path.isdir(folder):
  File "/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.py", line 49, in isdir
    st = os.stat(s)
TypeError: coercing to Unicode: need string or buffer, NoneType found

@dakcarto
Copy link
Member

@rkrug, I've updated qgis2 to 2.18.3. Please reinstall and try again. Thanks!

@rkrug
Copy link
Contributor Author

rkrug commented Jan 20, 2017

@dakcarto, Still the same error.

2017-01-20T09:40:13	1	Traceback (most recent call last):
			  File "/usr/local/Cellar/qgis2/2.18.3/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 333, in startPlugin
			    plugins[packageName] = package.classFactory(iface)
			  File "/usr/local/Cellar/qgis2/2.18.3/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/__init__.py", line 38, in classFactory
			    return ProcessingPlugin(iface)
			  File "/usr/local/Cellar/qgis2/2.18.3/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/ProcessingPlugin.py", line 58, in __init__
			    Processing.initialize()
			  File "/usr/local/Cellar/qgis2/2.18.3/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 148, in initialize
			    Processing.addProvider(c())
			  File "/usr/local/Cellar/qgis2/2.18.3/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 103, in addProvider
			    % (provider.getDescription(), traceback.format_exc()))
			  File "/usr/local/Cellar/qgis2/2.18.3/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/saga/SagaAlgorithmProvider.py", line 123, in getDescription
			    version = SagaUtils.getSagaInstalledVersion()
			  File "/usr/local/Cellar/qgis2/2.18.3/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/saga/SagaUtils.py", line 130, in getSagaInstalledVersion
			    commands = [os.path.join(sagaPath(), "saga_cmd -v")]
			  File "/usr/local/Cellar/qgis2/2.18.3/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/saga/SagaUtils.py", line 75, in sagaPath
			    if not os.path.isdir(folder):
			  File "/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.py", line 49, in isdir
			    st = os.stat(s)
			TypeError: coercing to Unicode: need string or buffer, NoneType found
			

@clancygreen
Copy link

@dakcarto, I'm having a near-identical error, for what it's worth. Starting from QGIS.app bundle on El Capitan. Have re-installed with no luck. Let me know if there's any additional info I can provide.

@pat-s
Copy link
Contributor

pat-s commented Jan 24, 2017

We would like to use/support the qgis2 bottle within our R package RQGIS but facing the same error.
For the moment we use the Kyngchaos binary via brew cask install qgis.
Let me know if you need help for testing.

@dakcarto
Copy link
Member

dakcarto commented Feb 1, 2017

Hmm. This might be an issue with incorrect parsing of an antiquated QSetting value for macOS (ran into this recently).

Try:

  • Quit any running QGIS.app
  • Temporarily move ~/Library/Preferences/org.qgis.QGIS2.plist to your Desktop
  • Relaunch QGIS.app <-- see if error is gone
  • Quit QGIS.app
  • Overwrite ~/Library/Preferences/org.qgis.QGIS2.plist with the backup from Desktop

Please report if that works.

Also, looks like this is fixed in: qgis/QGIS@4923e46

However, I think that fix masks the bad 'leftover' setting on macOS. If the workaround does work, then applying the fix and adding another should do the trick.

@rkrug
Copy link
Contributor Author

rkrug commented Feb 1, 2017

@dakcarto

Thanks

  • after removing the plist, the error was gone and QGIS started normally and loaded the Processing plugin
  • after putting the plist back, the error is back.

Should I then remove the plist? Any adverse effects?

Concerning qgis/QGIS@4923e46 : I don't know if this has anything to do with the bug, but I have saga installed (via osgeo4mac).

@pat-s
Copy link
Contributor

pat-s commented Feb 1, 2017

Does not work for me 😕

After moving ~/Library/Preferences/org.qgis.QGIS2.plist and starting QGIS, org.qgis.QGIS2.plist gets created again on startup with different content than the file which was moved to the desktop.

However, on startup the error persist. I´m launching via the link in /Applications created by brew linkapps qgis2.

Quitting QGIS and overwriting with the backup from the desktop also does not fix it. I keep getting the could lot load processing plugin error.

@rkrug
Copy link
Contributor Author

rkrug commented Feb 1, 2017

So there seem to be different issues at work.

@rkrug
Copy link
Contributor Author

rkrug commented Feb 1, 2017

@pat-s But this does not solve the regis issue. I just tried it - it persists.

@dakcarto
Copy link
Member

dakcarto commented Feb 1, 2017

@rkrug wrote:

after putting the plist back, the error is back.

and, @pat-s wrote:

Quitting QGIS and overwriting with the backup from the desktop also does not fix it. I keep getting the could lot load processing plugin error.

That was just a restore operation, so you didn't lose your settings. Return of any error is expected, and nothing is attempted to be fixed with that.

Can you guys just test the change noted in qgis/QGIS@4923e46 ? Manually edit:

/usr/local/opt/qgis2/QGIS.app/Contents/Resources/python/plugins/processing/algs/saga/SagaUtils.py

I would prefer not to patch the formulae, unless necessary (which seems like it is now). I'd also like to know that such patching will actually fix the issue.

Thanks!

Also note: SAGA folder is now a definable option again in Processing -> Options on macOS.

@pat-s
Copy link
Contributor

pat-s commented Feb 2, 2017

@dakcarto Applying qgis/QGIS@4923e46 does not fix it for me

@rkrug
Copy link
Contributor Author

rkrug commented Feb 2, 2017

@dakcarto @pat-s We are definitely dealing with two problems here - mine has been fixed by this patch.

@pat-s
Copy link
Contributor

pat-s commented Feb 2, 2017

@dakcarto @rkrug that is interesting.

Could you share any exports etc. after your installation (basically everything you did in detail after calling brew install qgis2) and your brew list @rkrug?

@rkrug
Copy link
Contributor Author

rkrug commented Feb 2, 2017

@pat-s @dakcarto

I haven't done any special, as far as I am aware of. exports: do you refer to export in the shell? As I am starting GGIS via Alfred (which starts the Application Qgis.app), I don't think exports in the shell have any impact.
brew list is a long list - be warned:

10:13:33 ~$ brew list
ant				gd				leptonica			mkvtoolnix			qwt
apple-gcc42			gdal				lesstif				mmv				qwt-qt4
archivemount			gdal-20				libarchive			moc				qwtpolar
arpack				gdal-grass64			libassuan			mp3fs				qwtpolar-qt4
asciiquarium			gdal1-grass6			libatomic_ops			mp3val				r
aspell				gdal2				libcroco			mp4v2				r-gui
at-spi2-atk			gdal2-python			libdap				mpfr				randomize-lines
at-spi2-core			gdb				libebml				mpfr2				readline
atk				gdbm				libepoxy			mpfr@2				readosm
atkmm				gdk-pixbuf			libevent			mpg123				rename
autoconf			geos				libffi				mysql				ripmime
automake			gettext				libgaiagraphics			nc_spm_08_grass7		rlog
autopsy				ghc				libgcrypt			ncdu				rsync
avfs				ghostscript			libgeotiff			net-snmp			ruby
bash				giflib				libgpg-error			netcat				s-lang
bash-completion			git				libgphoto2			netcdf				saga-gis
bdw-gc				git-annex			libgsf				netpbm				sane-backends
berkeley-db			git-flow			libharu				nettle				sfcgal
bibtex2html			git-lfs				libicns				ninja				shared-mime-info
bibtexconv			gl2ps				libid3tag			nmap				shntool
bibutils			glib				libidn				notmuch				sip
bison				glibmm				libkml				npth				sip-qt4
boost				glpk				libksba				objective-caml			sleuthkit
boost-build			gmime				liblas				ocaml				spatialindex
boost-python			gmp				liblqr				octave				spatialite-gui
cabal-install			gmp4				liblwgeom			offlineimap			spatialite-tools
cairo				gmp@4				libmagic			openexr				spawn-fcgi
cairomm				gnu-getopt			libmatroska			openjpeg			sqlite
cfitsio				gnu-sed				libmpc				openssl				squashfs
cgal				gnuplot				libmpc08			ossp-uuid			ssh-copy-id
clamav				gnutls				libmpc@0.8			p11-kit				sshfs
cloog				gobject-introspection		libogg				p7zip				suite-sparse
cloog018			gpp				libpng				pandoc				svg2pdf
clucene				gpsbabel			libquvi				pandoc-citeproc			svg2png
cmake				graphicsmagick			librasterlite			pango				swig
collada-dom			graphite2			librsvg				pangomm				szip
contacts			graphviz			libsamplerate			pangox-compat			t1utils
coreutils			grass-64			libsass				pcre				talloc
cowsay				grass-70			libsigc++			pcre2				tbb
ctags				grass-trunk			libsndfile			pdf2htmlex			tcl-tk
curl				grass6				libsodium			pgrouting			terminal-notifier
curl-ca-bundle			grass7				libsoxr				pidof				tesseract
czmq				gsasl				libspatialite			pinentry			texi2html
d-bus				gsettings-desktop-schemas	libssh2				pixman				texinfo
dbus				gsl				libsvg				pkg-config			tmux
ddrescue			gtk+				libsvg-cairo			plotutils			transfig
dirmngr				gtk+3				libtasn1			poppler				transmute
dovecot				gtkglext			libtiff				popt				trash
doxygen				gtkmm				libtool				portaudio			tree
e2fsprogs			gts				libunistring			postgis				ttfautohint
ecj				guile				libusb				postgresql			txt2tags
emacs-mac			hardlink-osx			libusb-compat			potrace				unbound
encfs				harfbuzz			libvo-aacenc			proj				unixodbc
epsilon				hdf5				libvorbis			pstoedit			utf8proc
epstool				hevea				libvpx				pth				vecLibFort
expat				hicolor-icon-theme		libwmf				py2cairo			virtualpg
ext2fuse			htop-osx			libxml2				pygobject			vobsub2srt
ext4fuse			icu4c				libyaml				pygtk				w3m
f3				ilmbase				lighttpd			pyqt				watch
faac				imagemagick			little-cms			pyqt-qt4			webp
faad2				imapfilter			little-cms2			pyqt5				wget
fcgi				inkscape			littler				pyspatialite			wine
fcgiwrap			intltool			lua				python				wxmac
ffmpeg				isl				lz4				python3				wxpython
fftw				isl011				lzip				qca-qt4				x264
fish				isl@0.12			lzlib				qgis2				xapian
flac				ispell				lzo				qhull				xdot
flex				isync				mad				qjson-qt4			xerces-c
fltk				jack				mailutils			qpdf				xvid
fondu				jasper				make				qrupdate			xz
fontconfig			jbig2dec			makedepend			qscintilla2			yasm
fontforge			jpeg				mas				qscintilla2-qt4			youtube-dl
fortune				jpeg-turbo			media-info			qt				zeromq
freetype			json-c				mercurial			qt-4				zile
freexl				lame				metis				qt-mysql			zlib
gcc				languagetool			mftrace				qt5
gcc48				lbzip2				midnight-commander		qt@5.7
gcc@4.8				ledger				minizip				quvi

@rkrug
Copy link
Contributor Author

rkrug commented Feb 2, 2017

@pat-s @dakcarto But it also works if I start egis using

open -a /usr/local/Cellar/qgis2/2.18.3/QGIS.app

ore using the wrapper script suppled.

For completion again the results from the first few lines of brew info qgis2

10:29:17 ~$ brew info qgis2
osgeo/osgeo4mac/qgis2: stable 2.18.3, HEAD [keg-only]
Open Source Geographic Information System
http://www.qgis.org
/usr/local/Cellar/qgis2/2.18.3 (9,336 files, 225.9M)
  Built from source on 2017-01-20 at 11:12:41 with: --with-saga-gis --with-grass --with-isolation
From: https://github.com/osgeo/homebrew-osgeo4mac/blob/master/Formula/qgis2.rb
==> Dependencies
Build: cmake ✔, bison ✔, flex ✔
Required: qt-4 ✔, sip-qt4 ✔, pyqt-qt4 ✔, qca-qt4 ✔, qscintilla2-qt4 ✔, qwt-qt4 ✔, qwtpolar-qt4 ✔, qjson-qt4 ✔, gsl ✔, sqlite ✔, expat ✔, proj ✔, spatialindex ✔, fcgi ✔, gdal2 ✔, gdal2-python ✔, pyspatialite ✔
Recommended: postgresql ✔
Optional: gpsbabel-qt4 ✘, grass6 ✔, orfeo5 ✘, homebrew/science/r ✔, saga-gis ✔
==> Requirements
Required: unlinkedqgis2 ✔, python ✔

and brew doctor

10:34:57 ~$ brew doctor

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  cloog018
  gdal1-grass6
  grass-64
  grass-70

@pat-s
Copy link
Contributor

pat-s commented Feb 2, 2017

@rkrug thanks! I did not do --with-saga-gis --with-grass --with-isolation.

Rebuilding and checking. If this is the fix, these buildings options should be set as default. Let's see :)

brew info qgis2
osgeo/osgeo4mac/qgis2: stable 2.18.3, HEAD [keg-only]
Open Source Geographic Information System
http://www.qgis.org
/usr/local/Cellar/qgis2/2.18.3 (8,781 files, 222.8M)
  Built from source on 2017-02-01 at 10:23:41
From: https://github.com/osgeo/homebrew-osgeo4mac/blob/master/Formula/qgis2.rb
==> Dependencies
Build: cmake , bison , flex 
Required: qt-4 , sip-qt4 , pyqt-qt4 , qca-qt4 , qscintilla2-qt4 , qwt-qt4 , qwtpolar-qt4 , qjson-qt4 , gsl , sqlite , expat , proj , spatialindex , fcgi , gdal2 , gdal2-python , pyspatialite 
Recommended: postgresql 
Optional: gpsbabel-qt4 , grass6 , orfeo5 , homebrew/science/r , saga-gis 
==> Requirements
Required: unlinkedqgis2 , python 
==> Options
--with-api-docs
	Build the API documentation with Doxygen and Graphviz
--with-gdal-1
	Build with GDAL/OGR v1.x instead of v2.x
--with-globe
	Build with Globe plugin, based upon osgEarth
--with-gpsbabel-qt4
	Build with gpsbabel-qt4 support
--with-grass
	Build with GRASS 7 integration plugin and Processing plugin support (or install grass-7x first)
--with-grass6
	Build extra GRASS 6 for Processing plugin
--with-isolation
	Isolate .app's environment to HOMEBREW_PREFIX, to coexist with other QGIS installs
--with-oracle
	Build extra Oracle geospatial database and raster support
--with-orfeo5
	Build extra Orfeo Toolbox for Processing plugin
--with-qspatialite
	Build QSpatialite Qt database driver
--with-r
	Build extra R for Processing plugin
--with-saga-gis
	Build extra Saga GIS for Processing plugin
--without-debug
	Disable debug build, which outputs info to system.log or console
--without-postgresql
	Build without current PostgreSQL client
--without-server
	Build without QGIS Server (qgis_mapserv.fcgi)
--HEAD
	Install HEAD version

@rkrug
Copy link
Contributor Author

rkrug commented Feb 2, 2017

@pat-s OK - now I remember. As one reason to install it was the rqgis package, I selected grass and saga - --with-isolation was also a try in that direction but it did not make any difference.

@dakcarto what does the --with-isolation option do?

@pat-s
Copy link
Contributor

pat-s commented Feb 2, 2017

@rkrug @dakcarto Building with --with-saga-gis --with-grass --with-isolation and then applying qgis/QGIS@4923e46 still does not work for me :/
Now trying to rebuild with HEAD for no reason ;)

@rkrug
Copy link
Contributor Author

rkrug commented Feb 2, 2017

@pat-s @dakcarto This is really strange. I assume some python modules which are not up to date? Do you have qgis installed via cask? Maybe some interference?

@pat-s
Copy link
Contributor

pat-s commented Feb 2, 2017

@rkrug @dakcarto I finally solved my problems. The error was:

ImportError: dlopen(/Users/gwulfs/anaconda/lib/python2.7/site-packages/psycopg2/_psycopg.so, 2): Library not loaded: libssl.1.0.0.dylib

Caused by some interferences between anaconda2 (installed via cask) and python (installed via brew). I removed anaconda2 and reinstalled psycopg2 with brew's python

Now QGIS starts fine! 🐺

I will now do checks with building QGIS without --with-saga-gis --with-grass --with-isolationand report back.

@pat-s
Copy link
Contributor

pat-s commented Feb 2, 2017

@dakcarto @rkrug
Confirmation:

When building via both brew install qgis2 AND brew install qgis2 --with-saga-gis --with-grass, qgis/QGIS@4923e46 needs to be applied to load the processing plugin. The last attempt takes 8 min longer for me.

No difference in usage is detected if SAGA and GRASS are not set as options during building.

Suggesting to add a note that multiple python interpreters can interfere with each other and cause problems for QGIS. I will now stick to brews python only from here on.

@dakcarto
Copy link
Member

dakcarto commented Feb 2, 2017

@rkrug and @pat-s thanks for digging into this! Glad to see things are working. I'll look into adding some patches to the formula.

@rkrug wrote:

what does the --with-isolation option do?

This option ensures only Homebrew is used, excluding macOS system Python and bypassing any Kyngchaos install interaction.

@pat-s wrote:

No difference in usage is detected if SAGA and GRASS are not set as options during building.

The optional Processing installs are purely optional, except GRASS7, which if added, or is found to already be installed, then the QGIS core C++ GRASS7 plugin is also built during QGIS compilation. If you install GRASS7 later, after QGIS, then the core GRASS7 plugin will not have been built (though Processing algorithms will still work).

Suggesting to add a note that multiple python interpreters can interfere with each other and cause problems for QGIS. I will now stick to brews python only from here on.

This is not specific to QGIS or this tap, per se. Mixing Python interpreters is prone to cause issues with any part of Homebrew, though more so with applications that are built against Python core headers/libs, like QGIS.

@rkrug
Copy link
Contributor Author

rkrug commented Feb 2, 2017

@dakcarto --with-isolation intersting, that this isolation did not work in the case of @pat-s case. Shouldn't this option be default, or does it add any complications? I had several bugs in R because of leftover frameworks - an option like this as default might have been helpful.

@rkrug
Copy link
Contributor Author

rkrug commented Feb 2, 2017

@pat-s Now that you have it running, we could dig into the RQGIS problem, but we should file a new issue for this.

@dakcarto
Copy link
Member

dakcarto commented Feb 2, 2017

@rkrug wrote:

--with-isolation intersting, that this isolation did not work in the case of @pat-s case. Shouldn't this option be default, or does it add any complications? I had several bugs in R because of leftover frameworks - an option like this as default might have been helpful.

Well, the default in Homebrew is not to be dependent upon its Python, so having isolation enabled would go against that. It also will not work for setups where a user has mixed Python C extensions, built by different Python installs of the same version (though they should be ABI compatible), or where the user has user-space Python overrides (which are not removed for isolation).

Isolation cleans the PATH, making it specific to Homebrew, and cleans Python support by skipping PYTHON_PATH and ignoring system Python packages. Even though that is helpful, for some instances, I think it should not be default.

@rkrug
Copy link
Contributor Author

rkrug commented Feb 3, 2017

@dakcarto OK - I accept your assessment. I am in no position to argue - I know way to little about Python for that and to understand the implications.

@chriszrc
Copy link

chriszrc commented Feb 14, 2017

Hi,

I know nothing about python, so forgive my questions. I just did a clean install on a new mac (sierra), and upon completion, brew said that I should install a few missing python dependencies using pip. So I did that, but psycopg2, the library mentioned in this thread failed to install:

    cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.12-intel-2.7/psycopg/psycopgmodule.o build/temp.macosx-10.12-intel-2.7/psycopg/green.o build/temp.macosx-10.12-intel-2.7/psycopg/pqpath.o build/temp.macosx-10.12-intel-2.7/psycopg/utils.o build/temp.macosx-10.12-intel-2.7/psycopg/bytes_format.o build/temp.macosx-10.12-intel-2.7/psycopg/connection_int.o build/temp.macosx-10.12-intel-2.7/psycopg/connection_type.o build/temp.macosx-10.12-intel-2.7/psycopg/cursor_int.o build/temp.macosx-10.12-intel-2.7/psycopg/cursor_type.o build/temp.macosx-10.12-intel-2.7/psycopg/diagnostics_type.o build/temp.macosx-10.12-intel-2.7/psycopg/error_type.o build/temp.macosx-10.12-intel-2.7/psycopg/lobject_int.o build/temp.macosx-10.12-intel-2.7/psycopg/lobject_type.o build/temp.macosx-10.12-intel-2.7/psycopg/notify_type.o build/temp.macosx-10.12-intel-2.7/psycopg/xid_type.o build/temp.macosx-10.12-intel-2.7/psycopg/adapter_asis.o build/temp.macosx-10.12-intel-2.7/psycopg/adapter_binary.o build/temp.macosx-10.12-intel-2.7/psycopg/adapter_datetime.o build/temp.macosx-10.12-intel-2.7/psycopg/adapter_list.o build/temp.macosx-10.12-intel-2.7/psycopg/adapter_pboolean.o build/temp.macosx-10.12-intel-2.7/psycopg/adapter_pdecimal.o build/temp.macosx-10.12-intel-2.7/psycopg/adapter_pint.o build/temp.macosx-10.12-intel-2.7/psycopg/adapter_pfloat.o build/temp.macosx-10.12-intel-2.7/psycopg/adapter_qstring.o build/temp.macosx-10.12-intel-2.7/psycopg/microprotocols.o build/temp.macosx-10.12-intel-2.7/psycopg/microprotocols_proto.o build/temp.macosx-10.12-intel-2.7/psycopg/typecast.o -L/usr/local/lib -lpq -lssl -lcrypto -o build/lib.macosx-10.12-intel-2.7/psycopg2/_psycopg.so
    ld: library not found for -lssl
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'cc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-EjOU9Y/psycopg2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-Cb2tlu-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-EjOU9Y/psycopg2/

Seems like something like this was mentioned in the comments, but I'm not seeing how to get this properly installed

@pat-s
Copy link
Contributor

pat-s commented Feb 15, 2017

If you search for the error on the web (ld: library not found for -lssl) it points you to a missing Xcode installation. However, your problem about the installation error of psycopg2 is not related to the missing processing plugin error of this issue but rather a simple python library installation issue.

It is recommended to use the brew installation of python (brew install python) and to have no other custom python installation on your system. These might interfere with each other - this was the problem with psycopg2 in the comments above.

@chriszrc
Copy link

Ok,

Does using python from brew involve anything else besides just brew install python? Is this documented anywhere in the installation instructions?

As for the psycopg2 error, I have no idea why, but I came back to this a week later, and it just installed normally the way it did in another sierra mac. Weird. Anyways, happy to have a working QGIS app now!

@ARoccaro94
Copy link

@dakcarto Thank you SO FUCKING MUCH. Applying qgis/QGIS@4923e46 worked flawlessly for me.

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

No branches or pull requests

7 participants