{"action":"opened","issue":{"url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/15131","labels_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/15131/labels{/name}","comments_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/15131/comments","events_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/15131/events","html_url":"https://github.com/caskroom/homebrew-cask/issues/15131","id":116683993,"number":15131,"title":"QGIS fails to install","user":{"login":"englishm","id":1165411,"avatar_url":"https://avatars.githubusercontent.com/u/1165411?v=3","gravatar_id":"","url":"https://api.github.com/users/englishm","html_url":"https://github.com/englishm","followers_url":"https://api.github.com/users/englishm/followers","following_url":"https://api.github.com/users/englishm/following{/other_user}","gists_url":"https://api.github.com/users/englishm/gists{/gist_id}","starred_url":"https://api.github.com/users/englishm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/englishm/subscriptions","organizations_url":"https://api.github.com/users/englishm/orgs","repos_url":"https://api.github.com/users/englishm/repos","events_url":"https://api.github.com/users/englishm/events{/privacy}","received_events_url":"https://api.github.com/users/englishm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-13T02:04:23Z","updated_at":"2015-11-13T02:04:23Z","closed_at":null,"body":"```\r\n$ brew cask install qgis\r\n==> Satisfying dependencies\r\n==> Installing Formula dependencies from Homebrew\r\nmatplotlib ... already installed\r\n==> Installing Cask dependencies: gdal-framework\r\ngdal-framework ...\r\nalready installed\r\ncomplete\r\n==> Downloading http://www.kyngchaos.com/files/software/qgis/QGIS-2.12.0-1.dmg\r\nAlready downloaded: /Library/Caches/Homebrew/qgis-2.12.0-1.dmg\r\n==> Running installer for qgis; your password may be necessary.\r\n==> Package installers may write to any location; options such as --appdir are ignored.\r\nPassword:\r\n==> installer: Error - QGIS requires the Matplotlib python module (kyngchaos build).\r\nError: Command failed to execute!\r\n\r\n==> Failed command:\r\n[\"/usr/bin/sudo\", \"-E\", \"--\", \"/usr/sbin/installer\", \"-pkg\", \"#<Pathname:/opt/homebrew-cask/Caskroom/qgis/2.12.0-1/Install QGIS.pkg>\", \"-target\", \"/\"]\r\n\r\n==> Output of failed command:\r\n\r\n\r\n==> Exit status of failed command:\r\n#<Process::Status: pid 5199 exit 1>\r\n```\r\n```\r\n$ brew info matplotlib\r\nhomebrew/python/matplotlib: stable 1.4.3, HEAD\r\nhttp://matplotlib.org\r\n/usr/local/Cellar/matplotlib/1.4.3 (2996 files, 78M) *\r\n  Built from source\r\nFrom: https://github.com/Homebrew/homebrew-python/blob/master/matplotlib.rb\r\n==> Dependencies\r\nBuild: pkg-config ✔\r\nRequired: freetype ✔, libpng ✔, homebrew/python/numpy ✔\r\nOptional: ghostscript ✘, homebrew/dupes/tcl-tk ✘, gtk+3 ✘, pygtk ✘, pyside ✘, pyqt ✘, pyqt5 ✘\r\n==> Options\r\n--with-cairo\r\n\tBuild with cairo backend support\r\n--with-ghostscript\r\n\tBuild with ghostscript support\r\n--with-gtk+3\r\n\tBuild with gtk+3 support\r\n--with-pygtk\r\n\tBuild with pygtk backend support (python2 only)\r\n--with-pyqt\r\n\tBuild with pyqt support\r\n--with-pyqt5\r\n\tBuild with pyqt5 support\r\n--with-pyside\r\n\tBuild with pyside support\r\n--with-python3\r\n\tBuild with python3 support\r\n--with-tcl-tk\r\n\tBuild with tcl-tk support\r\n--with-tex\r\n\tBuild with tex support\r\n--without-python\r\n\tBuild without python2 support\r\n--HEAD\r\n\tInstall HEAD version\r\n==> Caveats\r\nIf you want to use the `wxagg` backend, do `brew install wxpython`.\r\nThis can be done even after the matplotlib install.\r\nIf you use system python (that comes - depending on the OS X version -\r\nwith older versions of numpy, scipy and matplotlib), you may need to\r\nensure that the brewed packages come earlier in Python's sys.path with:\r\n  mkdir -p /Users/username/Library/Python/2.7/lib/python/site-packages\r\n  echo 'import sys; sys.path.insert(1, \"/usr/local/lib/python2.7/site-packages\")' >> /Users/username/Library/Python/2.7/lib/python/site-packages/homebrew.pth\r\n```\r\n```\r\n$ brew doctor\r\nYour system is ready to brew.\r\n```\r\n\r\nThis is on El Capitan, but it looks like the issue is that QGIS expects a particular distribution of matplotlib that differs from what `homebrew/python` currently provides. I'm not familiar enough with the `homebrew/python` packaging/distribution situation to effectively troubleshoot this at the moment. It looks like the `qgis` formula used to depend on a casked version of matplotlib, but switched to a formula-provided version with #14043. It has also been updated since that change with #14881."}}