OSGeo / homebrew-osgeo4mac

Mac homebrew tap for maintaining a stable work environment for the OSGeo.org geospatial toolset
https://git.io/fhh3X
BSD 3-Clause "New" or "Revised" License
364 stars 112 forks source link

qgis3 formula: missing WebKit Support #471

Closed dmey closed 5 years ago

dmey commented 5 years ago

Can you please confirm whether support for WebKit is not going to be available on your qgis3 formula?

From my quick check, on a clean macOS VM, after installing the qgis3 formula, I got the following error:

ImportError: cannot import name 'QWebPage' from 'PyQt5.Qt' (/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyQt5/Qt.so) 
Traceback (most recent call last):
  File "/usr/local/Cellar/qgis3/3.2.2_1/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 337, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/Users/testing/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/__init__.py", line 22, in classFactory
    bootstrap_with_ui(iface)
  File "/Users/testing/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/__init__.py", line 31, in bootstrap_with_ui
    from gis4wrf.plugin.ui.helpers import WaitDialog
  File "/usr/local/Cellar/qgis3/3.2.2_1/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 674, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/Users/testing/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/plugin/ui/helpers.py", line 17, in 
    from PyQt5.Qt import QWebPage
ImportError: cannot import name 'QWebPage' from 'PyQt5.Qt' (/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyQt5/Qt.so)

Python version: 3.7.0 (default, Aug 22 2018, 15:22:33) [Clang 9.1.0 (clang-902.0.39.2)] 
QGIS version: 3.2.2-Bonn Bonn, exported 
dmey commented 5 years ago

@nickrobison could you please shed some light on this issue? Please see https://github.com/OSGeo/homebrew-osgeo4mac/pull/403#issuecomment-400396383 re supporting WebKit. At the moment this formula does break certain plug-ins. @nyalldawson I am concerned that -- with the current status -- if people start relying on this formua it will lead to bug-reports to plug-in developers related to WebKit.

3nids commented 5 years ago

I just gave it a try. The issue is that the bottle of pyqt5-webkit is made with python 3.6 and you won't find it if you run with 3.7. I could solve the issue by doing brew reinstall --build-from-source --no-sandbox pyqt5-webkit

@nickrobinson would rebuilding on Travis be enough?

nickrobison commented 5 years ago

@3nids Yes it would, I've triggered the rebuild on Travis.

@dmey My apologies for not responding sooner, the rebuild should take about 20 minutes and then be ready to try again.

Fortunately, we only need to rebuild the pyqt formula when python gets upgraded from 3.x -> 3.y, which isn't very common.

We should probably create a list of python dependent formulae to manually rebuild when that happens.

3nids commented 5 years ago

thanks!

nickrobison commented 5 years ago

@dmey I've rebuilt the pyqt5-webkit bottle, please try again and let me know if you run into any other issues.

dmey commented 5 years ago

Thanks but there are still issues -- we may want to move 2. and 3. to separate issues if you think it's best. @nickrobison could you test any new changes on a local VM first to avoid repetitions?

1) Issues with pyqt5-webkit

 from PyQt5.Qt import QWebPage
Traceback (most recent call last):
  File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/code.py", line 90, in runcode
    exec(code, self.locals)
  File "<input>", line 1, in <module>
ImportError: cannot import name 'QWebPage' from 'PyQt5.Qt' (/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyQt5/Qt.so)

2) On a clean VM, the qgis3 formula does not install qgis3 at the first try -- the command brew install qgis3 has to be invoked twice. See log below.

Testings-Mac:~ testing$ brew install qgis3
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 4 taps (homebrew/core, homebrew/cask, osgeo/osgeo4mac, brewsci/bio).
==> New Formulae
brewsci/bio/indelible      brewsci/bio/salmid         pagmo
brewsci/bio/jellyfish      brewsci/bio/trinity        peru
brewsci/bio/maxbin2        cmdshelf                   prototool
brewsci/bio/parsnp         golang-migrate             skopeo
brewsci/bio/repaq          libpsl                     ucloud
==> Updated Formulae
activemq                   ghostscript                mps-youtube
adwaita-icon-theme         gifski                     msgpack
annie                      git                        multimarkdown
ansible                    git-ftp                    nano
apache-drill               gitbucket                  nats-streaming-server
apktool                    gjs                        nghttp2
at-spi2-atk                glib                       node
at-spi2-core               glib-networking            node-build
atk                        glm                        node@8
atomicparsley              glslviewer                 nsq
aws-okta                   gnu-indent                 nss
awscli                     grafana                    oniguruma
baobab                     grpc                       openrtsp
bibutils                   grunt-cli                  pdfsandwich
bitwarden-cli              gsettings-desktop-schemas  pdftoedn
brewsci/bio/ale            gtksourceview3             pdns
brewsci/bio/fraggenescan   gtksourceview@4            pdnsrec
brewsci/bio/idba           gucharmap                  php-cs-fixer
brewsci/bio/oma            gutenberg                  phpunit
brewsci/bio/phyx           handbrake                  pqiv
bwfmetaedit                harfbuzz                   presto
bzt                        hcloud                     pygobject3
caf                        hlint                      quicktype
ccache                     homebank                   rclone
certbot                    imagemagick                ripgrep
cgal                       imagemagick@6              shibboleth-sp
checkbashisms              ios-deploy                 skaffold
chronograf                 iso-codes                  smali
circleci                   jenkins                    sphinx-doc
citus                      jhipster                   swiftformat
cloc                       jsonrpc-glib               tarantool
cmake                      kakoune                    telnet
convox                     kettle                     template-glib
curl                       kubernetes-cli             terragrunt
davmail                    kustomize                  the_platinum_searcher
dhall-json                 lf                         tile38
diffoscope                 libarchive                 topgrade
dnstwist                   libdazzle                  tor
dosbox                     libimobiledevice           travis
double-conversion          libphonenumber             trezor-agent
dxpy                       libre                      uftp
emscripten                 libsoup                    unrar
erlang                     libspectre                 upx
eslint                     libxlsxwriter              v8
evince                     lnav                       vault
fauna-shell                logentries                 vim
fdk-aac-encoder            logtalk                    vte3
file-roller                mariadb@10.1               watchexec
firebase-cli               mdcat                      webpack
fluent-bit                 media-info                 wildfly-as
folly                      mercurial                  wireguard-tools
fonttools                  meson-internal             wskdeploy
gauge                      mesos                      xml-tooling-c
gdal                       metabase                   xmount
gdk-pixbuf                 metashell                  yelp-tools
gedit                      mmseqs2                    youtube-dl
geogram                    mongodb                    zabbix
geoipupdate                mongodb@3.2                zsh
==> Renamed Formulae
rebar@3 -> rebar3
==> Deleted Formulae
llvm@3.7

==> Installing qgis3 from osgeo/osgeo4mac
==> Installing dependencies for osgeo/osgeo4mac/qgis3: cmake, ninja, fcgi, gsl, gdbm, openssl, readline, sqlite, xz, python, python@2, sip, bison, gettext, flex, qt, pyqt, libjpeg, libpng, jpeg, webp, osgeo/osgeo4mac/qt5-webkit, pyqt5-webkit, qca, qtkeychain, qscintilla2, qwt, qwtpolar, qjson, expat, proj, spatialindex, numpy, freetype, brewsci/bio/matplotlib, icu4c, postgresql, libzip, libtasn1, hicolor-icon-theme, libiconv, geos, libxml2, freexl, libspatialite, json-c, giflib, libtiff, libgeotiff, libpq, pcre, zstd, gdal, boost, gmp, mpfr, cgal, sfcgal, postgis, gdal2, gdal2-python, pyspatialite
==> Installing osgeo/osgeo4mac/qgis3 dependency: cmake
==> Downloading https://homebrew.bintray.com/bottles/cmake-3.12.2.high_sierra.bo
==> Downloading from https://akamai.bintray.com/85/852ff3e17fd4b18dad1b321043a2e
######################################################################## 100.0%
==> Pouring cmake-3.12.2.high_sierra.bottle.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/cmake
==> Summary
🍺  /usr/local/Cellar/cmake/3.12.2: 2,417 files, 33.6MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: ninja
==> Downloading https://homebrew.bintray.com/bottles/ninja-1.8.2.high_sierra.bot
######################################################################## 100.0%
==> Pouring ninja-1.8.2.high_sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions have been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/ninja/1.8.2: 7 files, 273.2KB
==> Installing osgeo/osgeo4mac/qgis3 dependency: fcgi
==> Downloading https://homebrew.bintray.com/bottles/fcgi-2.4.0.high_sierra.bott
######################################################################## 100.0%
==> Pouring fcgi-2.4.0.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/fcgi/2.4.0: 19 files, 195.5KB
==> Installing osgeo/osgeo4mac/qgis3 dependency: gsl
==> Downloading https://homebrew.bintray.com/bottles/gsl-2.5.high_sierra.bottle.
==> Downloading from https://akamai.bintray.com/a1/a11e16ee61294794105faf42908ae
######################################################################## 100.0%
==> Pouring gsl-2.5.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/gsl/2.5: 271 files, 9.2MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: gdbm
==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.18.high_sierra.bottl
######################################################################## 100.0%
==> Pouring gdbm-1.18.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/gdbm/1.18: 20 files, 584.4KB
==> Installing osgeo/osgeo4mac/qgis3 dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2p.high_sierra.
==> Downloading from https://akamai.bintray.com/f5/f5f498c4e8dee3e835c1750cb4140
######################################################################## 100.0%
==> Pouring openssl-1.0.2p.high_sierra.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have openssl first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

For compilers to find openssl you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl/include"

==> Summary
🍺  /usr/local/Cellar/openssl/1.0.2p: 1,793 files, 12.3MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: readline
==> Downloading https://homebrew.bintray.com/bottles/readline-7.0.5.high_sierra.
==> Downloading from https://akamai.bintray.com/0c/0cc8fcf8ee733e41c40b859a09eb0
######################################################################## 100.0%
==> Pouring readline-7.0.5.high_sierra.bottle.tar.gz
==> Caveats
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.

For compilers to find readline you may need to set:
  export LDFLAGS="-L/usr/local/opt/readline/lib"
  export CPPFLAGS="-I/usr/local/opt/readline/include"

==> Summary
🍺  /usr/local/Cellar/readline/7.0.5: 46 files, 1.5MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: sqlite
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.24.0.high_sierra.b
==> Downloading from https://akamai.bintray.com/a5/a51a1d0a22f6648b41980363dae43
######################################################################## 100.0%
==> Pouring sqlite-3.24.0.high_sierra.bottle.tar.gz
==> Caveats
sqlite is keg-only, which means it was not symlinked into /usr/local,
because macOS provides an older sqlite3.

If you need to have sqlite first in your PATH run:
  echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.bash_profile

For compilers to find sqlite you may need to set:
  export LDFLAGS="-L/usr/local/opt/sqlite/lib"
  export CPPFLAGS="-I/usr/local/opt/sqlite/include"

==> Summary
🍺  /usr/local/Cellar/sqlite/3.24.0: 11 files, 3.5MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: xz
==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.4.high_sierra.bottle
==> Downloading from https://akamai.bintray.com/e7/e7be50f4ee00e35887f3957263334
######################################################################## 100.0%
==> Pouring xz-5.2.4.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/xz/5.2.4: 92 files, 1MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: python
==> Downloading https://homebrew.bintray.com/bottles/python-3.7.0.high_sierra.bo
==> Downloading from https://akamai.bintray.com/65/6524b4cac1faeade2aee55ece641e
######################################################################## 100.0%
==> Pouring python-3.7.0.high_sierra.bottle.3.tar.gz
==> /usr/local/Cellar/python/3.7.0/bin/python3 -s setup.py --no-user-cfg install
==> /usr/local/Cellar/python/3.7.0/bin/python3 -s setup.py --no-user-cfg install
==> /usr/local/Cellar/python/3.7.0/bin/python3 -s setup.py --no-user-cfg install
==> Caveats
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python/libexec/bin

If you need Homebrew's Python 2.7 run
  brew install python@2

Pip, setuptools, and wheel have been installed. To update them run
  pip3 install --upgrade pip setuptools wheel

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
🍺  /usr/local/Cellar/python/3.7.0: 4,789 files, 102MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: python@2
==> Downloading https://homebrew.bintray.com/bottles/python@2-2.7.15_1.high_sier
==> Downloading from https://akamai.bintray.com/b7/b713f6116757c5899450836f1e448
######################################################################## 100.0%
==> Pouring python@2-2.7.15_1.high_sierra.bottle.3.tar.gz
==> /usr/local/Cellar/python@2/2.7.15_1/bin/python -s setup.py --no-user-cfg ins
==> /usr/local/Cellar/python@2/2.7.15_1/bin/python -s setup.py --no-user-cfg ins
==> /usr/local/Cellar/python@2/2.7.15_1/bin/python -s setup.py --no-user-cfg ins
==> Caveats
Pip and setuptools have been installed. To update them
  pip install --upgrade pip setuptools

You can install Python packages with
  pip install <package>

They will install into the site-package directory
  /usr/local/lib/python2.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
🍺  /usr/local/Cellar/python@2/2.7.15_1: 4,674 files, 82.7MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: sip
==> Downloading https://homebrew.bintray.com/bottles/sip-4.19.8_5.high_sierra.bo
==> Downloading from https://akamai.bintray.com/ec/ec4c53082f161ffce908cdb2d5ed6
######################################################################## 100.0%
==> Pouring sip-4.19.8_5.high_sierra.bottle.tar.gz
==> Caveats
The sip-dir for Python is /usr/local/share/sip.
==> Summary
🍺  /usr/local/Cellar/sip/4.19.8_5: 16 files, 1.1MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: bison
==> Downloading https://homebrew.bintray.com/bottles/bison-3.1.high_sierra.bottl
==> Downloading from https://akamai.bintray.com/07/07aeea960757c9db4633f532ffa57
######################################################################## 100.0%
==> Pouring bison-3.1.high_sierra.bottle.tar.gz
==> Caveats
bison is keg-only, which means it was not symlinked into /usr/local,
because some formulae require a newer version of bison.

If you need to have bison first in your PATH run:
  echo 'export PATH="/usr/local/opt/bison/bin:$PATH"' >> ~/.bash_profile

For compilers to find bison you may need to set:
  export LDFLAGS="-L/usr/local/opt/bison/lib"

==> Summary
🍺  /usr/local/Cellar/bison/3.1: 56 files, 2.2MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: gettext
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.19.8.1.high_sierr
==> Downloading from https://akamai.bintray.com/99/99d2dbd4c9ebfe9bf2a64bd99f3a6
######################################################################## 100.0%
==> Pouring gettext-0.19.8.1.high_sierra.bottle.tar.gz
==> Caveats
gettext is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD gettext library & some software gets confused if both are in the library path.

If you need to have gettext first in your PATH run:
  echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile

For compilers to find gettext you may need to set:
  export LDFLAGS="-L/usr/local/opt/gettext/lib"
  export CPPFLAGS="-I/usr/local/opt/gettext/include"

==> Summary
🍺  /usr/local/Cellar/gettext/0.19.8.1: 1,935 files, 16.9MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: flex
==> Downloading https://homebrew.bintray.com/bottles/flex-2.6.4.high_sierra.bott
==> Downloading from https://akamai.bintray.com/0a/0abf12786daea0fb1be796e24f411
######################################################################## 100.0%
==> Pouring flex-2.6.4.high_sierra.bottle.tar.gz
==> Caveats
flex is keg-only, which means it was not symlinked into /usr/local,
because some formulae require a newer version of flex.

If you need to have flex first in your PATH run:
  echo 'export PATH="/usr/local/opt/flex/bin:$PATH"' >> ~/.bash_profile

For compilers to find flex you may need to set:
  export LDFLAGS="-L/usr/local/opt/flex/lib"
  export CPPFLAGS="-I/usr/local/opt/flex/include"

==> Summary
🍺  /usr/local/Cellar/flex/2.6.4: 45 files, 1.4MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: qt
==> Downloading https://homebrew.bintray.com/bottles/qt-5.11.1.high_sierra.bottl
==> Downloading from https://akamai.bintray.com/64/6483de8b8724673a06e03abfc6672
######################################################################## 100.0%
==> Pouring qt-5.11.1.high_sierra.bottle.tar.gz
==> Caveats
We agreed to the Qt open source license for you.
If this is unacceptable you should uninstall.

qt is keg-only, which means it was not symlinked into /usr/local,
because Qt 5 has CMake issues when linked.

If you need to have qt first in your PATH run:
  echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.bash_profile

For compilers to find qt you may need to set:
  export LDFLAGS="-L/usr/local/opt/qt/lib"
  export CPPFLAGS="-I/usr/local/opt/qt/include"

==> Summary
🍺  /usr/local/Cellar/qt/5.11.1: 9,492 files, 303.9MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: pyqt
==> Downloading https://homebrew.bintray.com/bottles/pyqt-5.10.1_1.high_sierra.b
==> Downloading from https://akamai.bintray.com/70/7098976f9222b541929b63e500381
######################################################################## 100.0%
==> Pouring pyqt-5.10.1_1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pyqt/5.10.1_1: 985 files, 45MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: libjpeg
==> Downloading https://homebrew.bintray.com/bottles/jpeg-9c.high_sierra.bottle.
==> Downloading from https://akamai.bintray.com/17/178200fd8aa50d5db22c5faa4ca40
######################################################################## 100.0%
==> Pouring jpeg-9c.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/jpeg/9c: 21 files, 724.5KB
==> Installing osgeo/osgeo4mac/qgis3 dependency: libpng
==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.35.high_sierra.b
==> Downloading from https://akamai.bintray.com/6d/6d87a8bac8290bef728e8faf1d39a
######################################################################## 100.0%
==> Pouring libpng-1.6.35.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/libpng/1.6.35: 26 files, 1.2MB
==> Caveats
==> cmake
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/cmake
==> ninja
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions have been installed to:
  /usr/local/share/zsh/site-functions
==> openssl
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have openssl first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

For compilers to find openssl you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl/include"

==> readline
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.

For compilers to find readline you may need to set:
  export LDFLAGS="-L/usr/local/opt/readline/lib"
  export CPPFLAGS="-I/usr/local/opt/readline/include"

==> sqlite
sqlite is keg-only, which means it was not symlinked into /usr/local,
because macOS provides an older sqlite3.

If you need to have sqlite first in your PATH run:
  echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.bash_profile

For compilers to find sqlite you may need to set:
  export LDFLAGS="-L/usr/local/opt/sqlite/lib"
  export CPPFLAGS="-I/usr/local/opt/sqlite/include"

==> python
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python/libexec/bin

If you need Homebrew's Python 2.7 run
  brew install python@2

Pip, setuptools, and wheel have been installed. To update them run
  pip3 install --upgrade pip setuptools wheel

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> python@2
Pip and setuptools have been installed. To update them
  pip install --upgrade pip setuptools

You can install Python packages with
  pip install <package>

They will install into the site-package directory
  /usr/local/lib/python2.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> sip
The sip-dir for Python is /usr/local/share/sip.
==> bison
bison is keg-only, which means it was not symlinked into /usr/local,
because some formulae require a newer version of bison.

If you need to have bison first in your PATH run:
  echo 'export PATH="/usr/local/opt/bison/bin:$PATH"' >> ~/.bash_profile

For compilers to find bison you may need to set:
  export LDFLAGS="-L/usr/local/opt/bison/lib"

==> gettext
gettext is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD gettext library & some software gets confused if both are in the library path.

If you need to have gettext first in your PATH run:
  echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile

For compilers to find gettext you may need to set:
  export LDFLAGS="-L/usr/local/opt/gettext/lib"
  export CPPFLAGS="-I/usr/local/opt/gettext/include"

==> flex
flex is keg-only, which means it was not symlinked into /usr/local,
because some formulae require a newer version of flex.

If you need to have flex first in your PATH run:
  echo 'export PATH="/usr/local/opt/flex/bin:$PATH"' >> ~/.bash_profile

For compilers to find flex you may need to set:
  export LDFLAGS="-L/usr/local/opt/flex/lib"
  export CPPFLAGS="-I/usr/local/opt/flex/include"

==> qt
We agreed to the Qt open source license for you.
If this is unacceptable you should uninstall.

qt is keg-only, which means it was not symlinked into /usr/local,
because Qt 5 has CMake issues when linked.

If you need to have qt first in your PATH run:
  echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.bash_profile

For compilers to find qt you may need to set:
  export LDFLAGS="-L/usr/local/opt/qt/lib"
  export CPPFLAGS="-I/usr/local/opt/qt/include"

Testings-Mac:~ testing$ qgis3
-bash: qgis3: command not found
Testings-Mac:~ testing$ brew install qgis3
==> Installing qgis3 from osgeo/osgeo4mac
==> Installing dependencies for osgeo/osgeo4mac/qgis3: webp, osgeo/osgeo4mac/qt5-webkit, pyqt5-webkit, qca, qtkeychain, qscintilla2, qwt, qwtpolar, qjson, expat, proj, spatialindex, numpy, freetype, brewsci/bio/matplotlib, icu4c, postgresql, libzip, libtasn1, hicolor-icon-theme, libiconv, geos, libxml2, freexl, libspatialite, json-c, giflib, libtiff, libgeotiff, libpq, pcre, zstd, gdal, boost, gmp, mpfr, cgal, sfcgal, postgis, gdal2, gdal2-python, pyspatialite
==> Installing osgeo/osgeo4mac/qgis3 dependency: webp
==> Downloading https://homebrew.bintray.com/bottles/webp-1.0.0.high_sierra.bott
==> Downloading from https://akamai.bintray.com/d8/d84c923512187318d2538983b0c51
######################################################################## 100.0%
==> Pouring webp-1.0.0.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/webp/1.0.0: 38 files, 2MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: osgeo/osgeo4mac/qt5-webkit
==> Downloading https://dl.bintray.com/homebrew-osgeo/osgeo-bottles/qt5-webkit-5
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/e747978ccf022d826d813
######################################################################## 100.0%
==> Pouring qt5-webkit-5.11.1.high_sierra.bottle.1.tar.gz
==> Caveats
Must be built with `brew install --no-sandbox ...`, or install steps will fail.

qt5-webkit is keg-only, which means it was not symlinked into /usr/local,
because because Qt5 is keg-only.

For compilers to find qt5-webkit you may need to set:
  export LDFLAGS="-L/usr/local/opt/qt5-webkit/lib"
  export CPPFLAGS="-I/usr/local/opt/qt5-webkit/include"

==> Summary
🍺  /usr/local/Cellar/qt5-webkit/5.11.1: 83 files, 45.4MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: pyqt5-webkit
==> Downloading https://dl.bintray.com/homebrew-osgeo/osgeo-bottles/pyqt5-webkit
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/64f43df75ac00fa8fee60
######################################################################## 100.0%
==> Pouring pyqt5-webkit-5.10.1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pyqt5-webkit/5.10.1: 12 files, 1.4MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: qca
==> Downloading https://homebrew.bintray.com/bottles/qca-2.1.3_2.high_sierra.bot
==> Downloading from https://akamai.bintray.com/7f/7fca5c9a591a204813356e3314077
######################################################################## 100.0%
==> Pouring qca-2.1.3_2.high_sierra.bottle.1.tar.gz
🍺  /usr/local/Cellar/qca/2.1.3_2: 39 files, 2.4MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: qtkeychain
==> Downloading https://homebrew.bintray.com/bottles/qtkeychain-0.9.1.high_sierr
######################################################################## 100.0%
==> Pouring qtkeychain-0.9.1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/qtkeychain/0.9.1: 15 files, 83.2KB
==> Installing osgeo/osgeo4mac/qgis3 dependency: qscintilla2
==> Downloading https://homebrew.bintray.com/bottles/qscintilla2-2.10.4_1.high_s
==> Downloading from https://akamai.bintray.com/5d/5d798036fba1637e6f8808598c3df
######################################################################## 100.0%
==> Pouring qscintilla2-2.10.4_1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/qscintilla2/2.10.4_1: 138 files, 8.6MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: qwt
==> Downloading https://homebrew.bintray.com/bottles/qwt-6.1.3_4.high_sierra.bot
==> Downloading from https://akamai.bintray.com/d9/d91a8d16588cd615df09fc8bdf288
######################################################################## 100.0%
==> Pouring qwt-6.1.3_4.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/qwt/6.1.3_4: 1,669 files, 18.7MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: qwtpolar
==> Downloading https://homebrew.bintray.com/bottles/qwtpolar-1.1.1_3.high_sierr
==> Downloading from https://akamai.bintray.com/41/41e46c5c73df6518ec55cd0c7fba2
######################################################################## 100.0%
==> Pouring qwtpolar-1.1.1_3.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/qwtpolar/1.1.1_3: 421 files, 2.7MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: qjson
==> Downloading https://homebrew.bintray.com/bottles/qjson-0.9.0_1.high_sierra.b
######################################################################## 100.0%
==> Pouring qjson-0.9.0_1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/qjson/0.9.0_1: 18 files, 196KB
==> Installing osgeo/osgeo4mac/qgis3 dependency: expat
==> Downloading https://homebrew.bintray.com/bottles/expat-2.2.6.high_sierra.bot
######################################################################## 100.0%
==> Pouring expat-2.2.6.high_sierra.bottle.tar.gz
==> Caveats
expat is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have expat first in your PATH run:
  echo 'export PATH="/usr/local/opt/expat/bin:$PATH"' >> ~/.bash_profile

For compilers to find expat you may need to set:
  export LDFLAGS="-L/usr/local/opt/expat/lib"
  export CPPFLAGS="-I/usr/local/opt/expat/include"

==> Summary
🍺  /usr/local/Cellar/expat/2.2.6: 18 files, 438.9KB
==> Installing osgeo/osgeo4mac/qgis3 dependency: proj
==> Downloading https://homebrew.bintray.com/bottles/proj-5.1.0.high_sierra.bott
==> Downloading from https://akamai.bintray.com/e0/e0ce8f9ec75dd95fda3881910e36f
######################################################################## 100.0%
==> Pouring proj-5.1.0.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/proj/5.1.0: 63 files, 10.4MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: spatialindex
==> Downloading https://homebrew.bintray.com/bottles/spatialindex-1.8.5.high_sie
==> Downloading from https://akamai.bintray.com/76/76e41dc6e6ccb457cb2db3d680646
######################################################################## 100.0%
==> Pouring spatialindex-1.8.5.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/spatialindex/1.8.5: 45 files, 2.7MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: numpy
==> Downloading https://homebrew.bintray.com/bottles/numpy-1.15.1.high_sierra.bo
==> Downloading from https://akamai.bintray.com/e2/e26fdc4e56f65f5afd875156556c8
######################################################################## 100.0%
==> Pouring numpy-1.15.1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/numpy/1.15.1: 967 files, 25.4MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: freetype
==> Downloading https://homebrew.bintray.com/bottles/freetype-2.9.1.high_sierra.
==> Downloading from https://akamai.bintray.com/44/444ef60a543aca6ca26223f46182c
######################################################################## 100.0%
==> Pouring freetype-2.9.1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/freetype/2.9.1: 60 files, 2.6MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: brewsci/bio/matplotlib
==> Downloading https://linuxbrew.bintray.com/bottles-bio/matplotlib-2.2.2_1.sie
==> Downloading from https://akamai.bintray.com/63/636d5e8a3602a48baa0c5ceb5a686
######################################################################## 100.0%
==> Pouring matplotlib-2.2.2_1.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/matplotlib/2.2.2_1: 1,181 files, 19.8MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: icu4c
==> Downloading https://homebrew.bintray.com/bottles/icu4c-62.1.high_sierra.bott
==> Downloading from https://akamai.bintray.com/d1/d1c24fa3df7e89935554ebcdbc6de
######################################################################## 100.0%
==> Pouring icu4c-62.1.high_sierra.bottle.tar.gz
==> Caveats
icu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).

If you need to have icu4c first in your PATH run:
  echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.bash_profile
  echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.bash_profile

For compilers to find icu4c you may need to set:
  export LDFLAGS="-L/usr/local/opt/icu4c/lib"
  export CPPFLAGS="-I/usr/local/opt/icu4c/include"

==> Summary
🍺  /usr/local/Cellar/icu4c/62.1: 250 files, 67.3MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: postgresql
==> Downloading https://homebrew.bintray.com/bottles/postgresql-10.5.high_sierra
==> Downloading from https://akamai.bintray.com/b4/b41e5c816f6827ef75fa91b4ccffb
######################################################################## 100.0%
==> Pouring postgresql-10.5.high_sierra.bottle.1.tar.gz
==> Caveats
To migrate existing data from a previous major version of PostgreSQL run:
  brew postgresql-upgrade-database

To have launchd start postgresql now and restart at login:
  brew services start postgresql
Or, if you don't want/need a background service you can just run:
  pg_ctl -D /usr/local/var/postgres start
==> Summary
🍺  /usr/local/Cellar/postgresql/10.5: 3,395 files, 39.6MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: libzip
==> Downloading https://homebrew.bintray.com/bottles/libzip-1.5.1.high_sierra.bo
######################################################################## 100.0%
==> Pouring libzip-1.5.1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/libzip/1.5.1: 134 files, 577KB
==> Installing osgeo/osgeo4mac/qgis3 dependency: libtasn1
==> Downloading https://homebrew.bintray.com/bottles/libtasn1-4.13.high_sierra.b
######################################################################## 100.0%
==> Pouring libtasn1-4.13.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/libtasn1/4.13: 59 files, 435KB
==> Installing osgeo/osgeo4mac/qgis3 dependency: hicolor-icon-theme
==> Downloading https://homebrew.bintray.com/bottles/hicolor-icon-theme-0.17.hig
######################################################################## 100.0%
==> Pouring hicolor-icon-theme-0.17.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/hicolor-icon-theme/0.17: 7 files, 77.1KB
==> Installing osgeo/osgeo4mac/qgis3 dependency: libiconv
==> Downloading https://homebrew.bintray.com/bottles/libiconv-1.15.high_sierra.b
==> Downloading from https://akamai.bintray.com/2e/2e16b57017ea3f5c34a57ea7fe39f
######################################################################## 100.0%
==> Pouring libiconv-1.15.high_sierra.bottle.tar.gz
==> Caveats
libiconv is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have libiconv first in your PATH run:
  echo 'export PATH="/usr/local/opt/libiconv/bin:$PATH"' >> ~/.bash_profile

For compilers to find libiconv you may need to set:
  export LDFLAGS="-L/usr/local/opt/libiconv/lib"
  export CPPFLAGS="-I/usr/local/opt/libiconv/include"

==> Summary
🍺  /usr/local/Cellar/libiconv/1.15: 30 files, 2.4MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: geos
==> Downloading https://homebrew.bintray.com/bottles/geos-3.6.3.high_sierra.bott
==> Downloading from https://akamai.bintray.com/a9/a9fbd9aa0658803ee78f4ff77bbae
######################################################################## 100.0%
==> Pouring geos-3.6.3.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/geos/3.6.3: 402 files, 8.5MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: libxml2
==> Downloading https://homebrew.bintray.com/bottles/libxml2-2.9.7.high_sierra.b
==> Downloading from https://akamai.bintray.com/ff/ff9bf7d946d5413fb1f2837a187bd
######################################################################## 100.0%
==> Pouring libxml2-2.9.7.high_sierra.bottle.tar.gz
==> Caveats
libxml2 is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have libxml2 first in your PATH run:
  echo 'export PATH="/usr/local/opt/libxml2/bin:$PATH"' >> ~/.bash_profile

For compilers to find libxml2 you may need to set:
  export LDFLAGS="-L/usr/local/opt/libxml2/lib"
  export CPPFLAGS="-I/usr/local/opt/libxml2/include"

==> Summary
🍺  /usr/local/Cellar/libxml2/2.9.7: 281 files, 10.4MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: freexl
==> Downloading https://homebrew.bintray.com/bottles/freexl-1.0.5.high_sierra.bo
######################################################################## 100.0%
==> Pouring freexl-1.0.5.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/freexl/1.0.5: 12 files, 119.5KB
==> Installing osgeo/osgeo4mac/qgis3 dependency: libspatialite
==> Downloading https://homebrew.bintray.com/bottles/libspatialite-4.3.0a_6.high
==> Downloading from https://akamai.bintray.com/2a/2a41b0baab67ec8b35f3c68b39243
######################################################################## 100.0%
==> Pouring libspatialite-4.3.0a_6.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/libspatialite/4.3.0a_6: 31 files, 18.6MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: json-c
==> Downloading https://homebrew.bintray.com/bottles/json-c-0.13.1.high_sierra.b
######################################################################## 100.0%
==> Pouring json-c-0.13.1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/json-c/0.13.1: 28 files, 232.3KB
==> Installing osgeo/osgeo4mac/qgis3 dependency: giflib
==> Downloading https://homebrew.bintray.com/bottles/giflib-5.1.4_1.high_sierra.
######################################################################## 100.0%
==> Pouring giflib-5.1.4_1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/giflib/5.1.4_1: 21 files, 312.2KB
==> Installing osgeo/osgeo4mac/qgis3 dependency: libtiff
==> Downloading https://homebrew.bintray.com/bottles/libtiff-4.0.9_4.high_sierra
==> Downloading from https://akamai.bintray.com/78/783fdbfa2a938c172bdb98e1a32c4
######################################################################## 100.0%
==> Pouring libtiff-4.0.9_4.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/libtiff/4.0.9_4: 246 files, 3.5MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: libgeotiff
==> Downloading https://homebrew.bintray.com/bottles/libgeotiff-1.4.2_2.high_sie
==> Downloading from https://akamai.bintray.com/5e/5e071647442f998e8239426ee2d9d
######################################################################## 100.0%
==> Pouring libgeotiff-1.4.2_2.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/libgeotiff/1.4.2_2: 75 files, 6.9MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: libpq
==> Downloading https://homebrew.bintray.com/bottles/libpq-10.5.high_sierra.bott
==> Downloading from https://akamai.bintray.com/59/59d624bb0b6f768941b4bec8ac4e6
######################################################################## 100.0%
==> Pouring libpq-10.5.high_sierra.bottle.tar.gz
==> Caveats
libpq is keg-only, which means it was not symlinked into /usr/local,
because conflicts with postgres formula.

If you need to have libpq first in your PATH run:
  echo 'export PATH="/usr/local/opt/libpq/bin:$PATH"' >> ~/.bash_profile

For compilers to find libpq you may need to set:
  export LDFLAGS="-L/usr/local/opt/libpq/lib"
  export CPPFLAGS="-I/usr/local/opt/libpq/include"

==> Summary
🍺  /usr/local/Cellar/libpq/10.5: 2,436 files, 27.0MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: pcre
==> Downloading https://homebrew.bintray.com/bottles/pcre-8.42.high_sierra.bottl
==> Downloading from https://akamai.bintray.com/b9/b904c008c04003c3f40e30c6ee6a3
######################################################################## 100.0%
==> Pouring pcre-8.42.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pcre/8.42: 204 files, 5.3MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: zstd
==> Downloading https://homebrew.bintray.com/bottles/zstd-1.3.5.high_sierra.bott
==> Downloading from https://akamai.bintray.com/85/85584f4a814eb5b29942ba9592416
######################################################################## 100.0%
==> Pouring zstd-1.3.5.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/zstd/1.3.5: 25 files, 2.2MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: gdal
==> Downloading https://homebrew.bintray.com/bottles/gdal-2.3.1_2.high_sierra.bo
==> Downloading from https://akamai.bintray.com/06/06161267b5ac59e36157a768898c3
######################################################################## 100.0%
==> Pouring gdal-2.3.1_2.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/gdal/2.3.1_2: 303 files, 52.5MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: boost
==> Downloading https://homebrew.bintray.com/bottles/boost-1.67.0_1.high_sierra.
==> Downloading from https://akamai.bintray.com/26/265ab8beaa6fa26a7c305ef2e6aec
######################################################################## 100.0%
==> Pouring boost-1.67.0_1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/boost/1.67.0_1: 13,506 files, 450.9MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: gmp
==> Downloading https://homebrew.bintray.com/bottles/gmp-6.1.2_2.high_sierra.bot
==> Downloading from https://akamai.bintray.com/83/8372dcd88e36997d7aacaffb55570
######################################################################## 100.0%
==> Pouring gmp-6.1.2_2.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/gmp/6.1.2_2: 18 files, 3.1MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: mpfr
==> Downloading https://homebrew.bintray.com/bottles/mpfr-4.0.1.high_sierra.bott
==> Downloading from https://akamai.bintray.com/22/223ac973eb796b275cf751111c458
######################################################################## 100.0%
==> Pouring mpfr-4.0.1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/mpfr/4.0.1: 28 files, 4.6MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: cgal
==> Downloading https://homebrew.bintray.com/bottles/cgal-4.12.1.high_sierra.bot
==> Downloading from https://akamai.bintray.com/49/4996b3af224bece9348288878c47f
######################################################################## 100.0%
==> Pouring cgal-4.12.1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/cgal/4.12.1: 3,140 files, 34.3MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: sfcgal
==> Downloading https://homebrew.bintray.com/bottles/sfcgal-1.3.5.high_sierra.bo
==> Downloading from https://akamai.bintray.com/da/da85122b3ce45845eb493be9aed24
######################################################################## 100.0%
==> Pouring sfcgal-1.3.5.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/sfcgal/1.3.5: 115 files, 9.4MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: postgis
==> Downloading https://homebrew.bintray.com/bottles/postgis-2.4.4_1.high_sierra
==> Downloading from https://akamai.bintray.com/39/39ca73e792f68197d9c7543300cfe
######################################################################## 100.0%
==> Pouring postgis-2.4.4_1.high_sierra.bottle.tar.gz
==> Caveats
To create a spatially-enabled database, see the documentation:
  https://postgis.net/docs/manual-2.4/postgis_installation.html#create_new_db_extensions
If you are currently using PostGIS 2.0+, you can go the soft upgrade path:
  ALTER EXTENSION postgis UPDATE TO "2.4.4";
Users of 1.5 and below will need to go the hard-upgrade path, see here:
  https://postgis.net/docs/manual-2.4/postgis_installation.html#upgrading

PostGIS SQL scripts installed to:
  /usr/local/opt/postgis/share/postgis
PostGIS plugin libraries installed to:
  /usr/local/lib
PostGIS extension modules installed to:
  /usr/local/share/postgresql/extension
==> Summary
🍺  /usr/local/Cellar/postgis/2.4.4_1: 248 files, 101.2MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: gdal2
==> Downloading https://dl.bintray.com/homebrew-osgeo/osgeo-bottles/gdal2-2.3.1.
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/f67eaadc28e5feb7502ed
######################################################################## 100.0%
==> Pouring gdal2-2.3.1.high_sierra.bottle.3.tar.gz
==> Caveats
Plugins for this version of GDAL/OGR, generated by other formulae, should
be symlinked to the following directory:

  /usr/local/lib/gdalplugins/2.3

You may need to set the following enviroment variable:

  export GDAL_DRIVER_PATH=/usr/local/lib/gdalplugins

PYTHON BINDINGS are now built in a separate formula: gdal2-python

gdal2 is keg-only, which means it was not symlinked into /usr/local,
because older version of gdal is in main tap and installs similar components.

If you need to have gdal2 first in your PATH run:
  echo 'export PATH="/usr/local/opt/gdal2/bin:$PATH"' >> ~/.bash_profile

For compilers to find gdal2 you may need to set:
  export LDFLAGS="-L/usr/local/opt/gdal2/lib"
  export CPPFLAGS="-I/usr/local/opt/gdal2/include"

==> Summary
🍺  /usr/local/Cellar/gdal2/2.3.1: 232 files, 47.1MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: gdal2-python
==> Downloading https://dl.bintray.com/homebrew-osgeo/osgeo-bottles/gdal2-python
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/6e1d2f817dd573afd1612
######################################################################## 100.0%
==> Pouring gdal2-python-2.3.1.high_sierra.bottle.2.tar.gz
==> Caveats
Sample Python scripts installed to:
  /usr/local/opt/gdal2-python/libexec/bin

To run full test suite use:
  `brew test -v gdal2-python --with-autotest`

gdal2-python is keg-only, which means it was not symlinked into /usr/local,
because older version of gdal is in main tap and installs similar components.

If you need to have gdal2-python first in your PATH run:
  echo 'export PATH="/usr/local/opt/gdal2-python/bin:$PATH"' >> ~/.bash_profile

For compilers to find gdal2-python you may need to set:
  export LDFLAGS="-L/usr/local/opt/gdal2-python/lib"

==> Summary
🍺  /usr/local/Cellar/gdal2-python/2.3.1: 140 files, 6.5MB
==> Installing osgeo/osgeo4mac/qgis3 dependency: pyspatialite
==> Downloading https://dl.bintray.com/homebrew-osgeo/osgeo-bottles/pyspatialite
######################################################################## 100.0%
==> Pouring pyspatialite-3.0.1_3.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pyspatialite/3.0.1_3: 21 files, 184.4KB
==> Installing osgeo/osgeo4mac/qgis3
==> Downloading https://dl.bintray.com/homebrew-osgeo/osgeo-bottles/qgis3-3.2.2_
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/80d2b1c751c71efaf615a
######################################################################## 100.0%
==> Pouring qgis3-3.2.2_1.high_sierra.bottle.tar.gz
==> Caveats
Bottles support only Homebrew's Python3

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

You may also symlink QGIS.app into /Applications or ~/Applications:
  ln -Fs `find $(brew --prefix) -name "QGIS.app"` /Applications/QGIS.app

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

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 Python3 development, set the following environment variable:
  export PYTHONPATH=/usr/local/opt/qgis3/lib/python3.7/site-packages:/usr/local/opt/gdal2-python/lib/python3.7/site-packages:/usr/local/opt/qgis3/libexec/vendor/lib/python3.7/site-packages:$PYTHONPATH

QGIS plugins may need extra Python modules to function. Most can be installed with pip in a Terminal:

    pip3 install modulename

If you want to upgrade modules, add the -U option:

    pip3 install -U modulename

If you have built GRASS 7 for the Processing plugin set the following in QGIS:
  Processing->Options: Providers->GRASS GIS 7 commands->GRASS 7 folder to:
     /usr/local/opt/grass7/grass-base
==> Summary
🍺  /usr/local/Cellar/qgis3/3.2.2_1: 6,998 files, 241.3MB
==> Caveats
==> qt5-webkit
Must be built with `brew install --no-sandbox ...`, or install steps will fail.

qt5-webkit is keg-only, which means it was not symlinked into /usr/local,
because because Qt5 is keg-only.

For compilers to find qt5-webkit you may need to set:
  export LDFLAGS="-L/usr/local/opt/qt5-webkit/lib"
  export CPPFLAGS="-I/usr/local/opt/qt5-webkit/include"

==> expat
expat is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have expat first in your PATH run:
  echo 'export PATH="/usr/local/opt/expat/bin:$PATH"' >> ~/.bash_profile

For compilers to find expat you may need to set:
  export LDFLAGS="-L/usr/local/opt/expat/lib"
  export CPPFLAGS="-I/usr/local/opt/expat/include"

==> icu4c
icu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).

If you need to have icu4c first in your PATH run:
  echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.bash_profile
  echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.bash_profile

For compilers to find icu4c you may need to set:
  export LDFLAGS="-L/usr/local/opt/icu4c/lib"
  export CPPFLAGS="-I/usr/local/opt/icu4c/include"

==> postgresql
To migrate existing data from a previous major version of PostgreSQL run:
  brew postgresql-upgrade-database

To have launchd start postgresql now and restart at login:
  brew services start postgresql
Or, if you don't want/need a background service you can just run:
  pg_ctl -D /usr/local/var/postgres start
==> libiconv
libiconv is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have libiconv first in your PATH run:
  echo 'export PATH="/usr/local/opt/libiconv/bin:$PATH"' >> ~/.bash_profile

For compilers to find libiconv you may need to set:
  export LDFLAGS="-L/usr/local/opt/libiconv/lib"
  export CPPFLAGS="-I/usr/local/opt/libiconv/include"

==> libxml2
libxml2 is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have libxml2 first in your PATH run:
  echo 'export PATH="/usr/local/opt/libxml2/bin:$PATH"' >> ~/.bash_profile

For compilers to find libxml2 you may need to set:
  export LDFLAGS="-L/usr/local/opt/libxml2/lib"
  export CPPFLAGS="-I/usr/local/opt/libxml2/include"

==> libpq
libpq is keg-only, which means it was not symlinked into /usr/local,
because conflicts with postgres formula.

If you need to have libpq first in your PATH run:
  echo 'export PATH="/usr/local/opt/libpq/bin:$PATH"' >> ~/.bash_profile

For compilers to find libpq you may need to set:
  export LDFLAGS="-L/usr/local/opt/libpq/lib"
  export CPPFLAGS="-I/usr/local/opt/libpq/include"

==> postgis
To create a spatially-enabled database, see the documentation:
  https://postgis.net/docs/manual-2.4/postgis_installation.html#create_new_db_extensions
If you are currently using PostGIS 2.0+, you can go the soft upgrade path:
  ALTER EXTENSION postgis UPDATE TO "2.4.4";
Users of 1.5 and below will need to go the hard-upgrade path, see here:
  https://postgis.net/docs/manual-2.4/postgis_installation.html#upgrading

PostGIS SQL scripts installed to:
  /usr/local/opt/postgis/share/postgis
PostGIS plugin libraries installed to:
  /usr/local/lib
PostGIS extension modules installed to:
  /usr/local/share/postgresql/extension
==> gdal2
Plugins for this version of GDAL/OGR, generated by other formulae, should
be symlinked to the following directory:

  /usr/local/lib/gdalplugins/2.3

You may need to set the following enviroment variable:

  export GDAL_DRIVER_PATH=/usr/local/lib/gdalplugins

PYTHON BINDINGS are now built in a separate formula: gdal2-python

gdal2 is keg-only, which means it was not symlinked into /usr/local,
because older version of gdal is in main tap and installs similar components.

If you need to have gdal2 first in your PATH run:
  echo 'export PATH="/usr/local/opt/gdal2/bin:$PATH"' >> ~/.bash_profile

For compilers to find gdal2 you may need to set:
  export LDFLAGS="-L/usr/local/opt/gdal2/lib"
  export CPPFLAGS="-I/usr/local/opt/gdal2/include"

==> gdal2-python
Sample Python scripts installed to:
  /usr/local/opt/gdal2-python/libexec/bin

To run full test suite use:
  `brew test -v gdal2-python --with-autotest`

gdal2-python is keg-only, which means it was not symlinked into /usr/local,
because older version of gdal is in main tap and installs similar components.

If you need to have gdal2-python first in your PATH run:
  echo 'export PATH="/usr/local/opt/gdal2-python/bin:$PATH"' >> ~/.bash_profile

For compilers to find gdal2-python you may need to set:
  export LDFLAGS="-L/usr/local/opt/gdal2-python/lib"

==> qgis3
Bottles support only Homebrew's Python3

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

You may also symlink QGIS.app into /Applications or ~/Applications:
  ln -Fs `find $(brew --prefix) -name "QGIS.app"` /Applications/QGIS.app

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

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 Python3 development, set the following environment variable:
  export PYTHONPATH=/usr/local/opt/qgis3/lib/python3.7/site-packages:/usr/local/opt/gdal2-python/lib/python3.7/site-packages:/usr/local/opt/qgis3/libexec/vendor/lib/python3.7/site-packages:$PYTHONPATH

QGIS plugins may need extra Python modules to function. Most can be installed with pip in a Terminal:

    pip3 install modulename

If you want to upgrade modules, add the -U option:

    pip3 install -U modulename

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

3) (Minor), the QGIS3 icon app is not linked under apps.

fjperini commented 5 years ago

@dmey Working on qt5-webkit and pyqt5-webkit (compatible with 5.11.2). @nickrobison The build time is less than the limit for Travis CI (approximately what it takes to build qgis3). Testing some things, I hope to upload everything in a few days.

nickrobison commented 5 years ago

@fjperini Sounds great! Thanks for tackling this. Sorry I've been out of contact, things should get quieter for me soon.

fjperini commented 5 years ago

@nickrobison I understand, do not worry. But do not take too long! :sweat_smile:

nickrobison commented 5 years ago

qt5-webkit is building now. We'll see if it finishes in time.

fjperini commented 5 years ago

Ok, so I made some changes in the formula of qt5-webkit to use ninja and solve the --not-sandbox.

nickrobison commented 5 years ago

Great, if you send a PR we can get that merged in!

fjperini commented 5 years ago

@nickrobison this issue could be closed.