jbarlow83 / homebrew-ocrmypdf

OCRmyPDF homebrew testing private tap
https://github.com/jbarlow83/OCRmyPDF
MIT License
2 stars 0 forks source link

Error upgrading ocrmypdf to v5.4.1 #4

Closed joewiz closed 6 years ago

joewiz commented 6 years ago

Hi! When upgrading ocrmypdf to v5.4.1 via brew upgrade, I encountered the following error. I'd be happy to provide more information to assist in troubleshooting.

$ brew upgrade
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
apibuilder-cli
==> Upgrading 1 outdated package, with result:
jbarlow83/ocrmypdf/ocrmypdf 5.4.1
==> Upgrading jbarlow83/ocrmypdf/ocrmypdf 
==> Downloading https://files.pythonhosted.org/packages/2c/d5/9f2bb9651e2ab693e7556f0a5689f87f605d0eda078513cbc32925c50f45/ocrmypdf-5.4.1.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf-5.4.1.tar.gz
HOMEBREW_PROCESSOR:Intel
HOMEBREW_DEV_CMD_RUN:1
HOMEBREW_USER_AGENT:Homebrew/1.3.5-12-gc3ff748 (Macintosh; Intel Mac OS X 10.13)
GEM_OLD_HOME:
TERM_PROGRAM:Apple_Terminal
HOMEBREW_COMMAND_DEPTH:1
HOMEBREW_LIBRARY:/usr/local/Homebrew/Library
SHELL:/bin/bash
TERM:xterm-256color
HOMEBREW_OS_VERSION:macOS 10.13
HOMEBREW_REPOSITORY:/usr/local/Homebrew
Apple_PubSub_Socket_Render:/private/tmp/com.apple.launchd.pSQ6EKM5aO/Render
HOMEBREW_ENABLE_AUTO_UPDATE_MIGRATION:1
TERM_PROGRAM_VERSION:400
TERM_SESSION_ID:00D671DD-C62B-4E74-9BB9-449E5DCB97AA
HOMEBREW_RUBY_PATH:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/current/bin/ruby
HOMEBREW_GIT_CONFIG_FILE:/usr/local/Homebrew/.git/config
USER:joe
SSH_AUTH_SOCK:/private/tmp/com.apple.launchd.QmCElDroHz/Listeners
HOMEBREW_NO_AUTO_UPDATE:1
HOMEBREW_ANALYTICS_USER_UUID:77B44086-E2DB-44A5-8161-72BB486F47C3
HOMEBREW_CACHE:/Users/joe/Library/Caches/Homebrew
HOMEBREW_USER_AGENT_CURL:Homebrew/1.3.5-12-gc3ff748 (Macintosh; Intel Mac OS X 10.13) curl/7.54.0
PATH:/usr/local/Homebrew/Library/Homebrew/shims/super:/usr/local/opt/pkg-config/bin:/usr/local/opt/libpng/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/libtiff/bin:/usr/local/opt/leptonica/bin:/usr/local/opt/tesseract/bin:/usr/local/opt/little-cms2/bin:/usr/local/opt/ghostscript/bin:/usr/local/opt/lame/bin:/usr/local/opt/x264/bin:/usr/local/opt/ffmpeg/bin:/usr/local/opt/unpaper/bin:/usr/local/opt/qpdf/bin:/usr/local/opt/openjpeg/bin:/usr/local/opt/freetype/bin:/usr/local/opt/webp/bin:/usr/local/opt/python3/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/bin
HOMEBREW_EDITOR:nano
HOMEBREW_BREW_FILE:/usr/local/bin/brew
PWD:/Users/joe/workspace/exist
HOMEBREW_MACOS_VERSION:10.13
JAVA_HOME:/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
HOMEBREW_ANALYTICS_ID:UA-76679469-1
LANG:en_US.UTF-8
XPC_FLAGS:0x0
HOMEBREW_PRODUCT:Homebrew
RBENV_SHELL:bash
XPC_SERVICE_NAME:0
SHLVL:1
HOME:/private/tmp/ocrmypdf-20171013-40286-6s475o/ocrmypdf-5.4.1/.brew_home
GEM_OLD_PATH:
HOMEBREW_PREFIX:/usr/local
LOGNAME:joe
HOMEBREW_VERSION:1.3.5-12-gc3ff748
HOMEBREW_CELLAR:/usr/local/Cellar
HOMEBREW_CURL:/usr/bin/curl
DISPLAY:/private/tmp/com.apple.launchd.nnQlOZ5Fgf/org.macosforge.xquartz:0
SECURITYSESSIONID:186aa
HOMEBREW_SYSTEM:Macintosh
__CF_USER_TEXT_ENCODING:0x1F5:0x0:0x0
HOMEBREW_ERROR_PIPE:/tmp/homebrew20171013-39508-1uxnjww/socket
OBJC:clang
CC:clang
HOMEBREW_CC:clang
OBJCXX:clang++
CXX:clang++
HOMEBREW_CXX:clang++
MAKEFLAGS:-j8
PKG_CONFIG_PATH:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/leptonica/lib/pkgconfig:/usr/local/opt/tesseract/lib/pkgconfig:/usr/local/opt/little-cms2/lib/pkgconfig:/usr/local/opt/x264/lib/pkgconfig:/usr/local/opt/ffmpeg/lib/pkgconfig:/usr/local/opt/qpdf/lib/pkgconfig:/usr/local/opt/openjpeg/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/webp/lib/pkgconfig:/usr/local/opt/python3/lib/pkgconfig
PKG_CONFIG_LIBDIR:/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.13:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
HOMEBREW_CCCFG:sa
HOMEBREW_OPTIMIZATION_LEVEL:Os
HOMEBREW_OPT:/usr/local/opt
HOMEBREW_TEMP:/tmp
HOMEBREW_OPTFLAGS:-march=native
HOMEBREW_ARCHFLAGS:
CMAKE_PREFIX_PATH:/usr/local/opt/libffi:/usr/local
CMAKE_FRAMEWORK_PATH:/usr/local/opt/python3/Frameworks:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks
CMAKE_INCLUDE_PATH:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/apache2:/opt/X11/include:/opt/X11/include/freetype2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH:/opt/X11/lib:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
ACLOCAL_PATH:/usr/local/share/aclocal:/opt/X11/share/aclocal
HOMEBREW_ISYSTEM_PATHS:/usr/local/include:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/apache2:/opt/X11/include:/opt/X11/include/freetype2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
HOMEBREW_LIBRARY_PATHS:/usr/local/opt/libffi/lib:/usr/local/lib:/opt/X11/lib:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
HOMEBREW_DEPENDENCIES:pkg-config,libffi,libpng,jpeg,libtiff,leptonica,tesseract,little-cms2,ghostscript,lame,x264,xvid,ffmpeg,unpaper,qpdf,openjpeg,freetype,jpeg,webp,python3
HOMEBREW_FORMULA_PREFIX:/usr/local/Cellar/ocrmypdf/5.4.1
HOMEBREW_SDKROOT:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
MACOSX_DEPLOYMENT_TARGET:10.13
SDKROOT:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
HOMEBREW_PREFER_CLT_PROXIES:1
TMPDIR:/tmp
TEMP:/tmp
TMP:/tmp
_JAVA_OPTIONS: -Duser.home=/Users/joe/Library/Caches/Homebrew/java_cache
CURL_HOME:/Users/joe
SETUPTOOLS_SCM_PRETEND_VERSION:v5.4.1
==> Downloading https://files.pythonhosted.org/packages/d4/0c/9840c08189e030873387a73b90ada981885010dd9aea134d6de30cd24cb8/virtualenv-15.1.0.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--homebrew-virtualenv-15.1.0.tar.gz
==> python3 -c import setuptools... --no-user-cfg install --prefix=/tmp/ocrmypdf--homebrew-virtualenv-20171013-40286-1klqlp2/target --single-version-externally-
==> python3 -s /tmp/ocrmypdf--homebrew-virtualenv-20171013-40286-1klqlp2/target/bin/virtualenv -p python3 /usr/local/Cellar/ocrmypdf/5.4.1/libexec
==> Downloading https://files.pythonhosted.org/packages/5b/b9/790f8eafcdab455bcd3bd908161f802c9ce5adbf702a83aa7712fcc345b7/cffi-1.10.0.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--cffi-1.10.0.tar.gz
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--cffi-20171013-40286-1wxpgv
==> Downloading https://files.pythonhosted.org/packages/b6/bc/e72a813265a5e7b7319c74130888c60bed441b4a13c2b8f76a33c19541bb/img2pdf-0.2.3.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--img2pdf-0.2.3.tar.gz
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--img2pdf-20171013-40286-vwe
==> Downloading https://files.pythonhosted.org/packages/35/17/c15d41d5a8f8b98cc3df25eb00c5cee76193114c78e5674df6ef4ac92647/olefile-0.44.zip
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--olefile-0.44.zip
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--olefile-20171013-40286-ivv
==> Downloading https://files.pythonhosted.org/packages/93/73/66854f63b1941aad9af18a1de59f9cf95ad1a87c801540222e332f6688d7/Pillow-4.1.1.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--Pillow-4.1.1.tar.gz
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--Pillow-20171013-40286-1tor
Last 15 lines from /Users/joe/Library/Logs/Homebrew/ocrmypdf/06.pip:
  Removing source in /private/tmp/pip-6wlzajs8-build
Command "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-6wlzajs8-build/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-w7n5lzib-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/../include/site/python3.6/Pillow" failed with error code 1 in /private/tmp/pip-6wlzajs8-build/
Exception information:
Traceback (most recent call last):
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/req/req_install.py", line 878, in install
    spinner=spinner,
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/utils/__init__.py", line 707, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-6wlzajs8-build/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-w7n5lzib-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/../include/site/python3.6/Pillow" failed with error code 1 in /private/tmp/pip-6wlzajs8-build/
joewiz commented 6 years ago

I just noticed the directions in README.md, and, since my error log above contains mention of pip.exceptions.InstallationError, here are the results when running the command suggested in README.md:

choskimac-ii:exist joe$ brew install --keep-tmp --debug ocrmypdf
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/jbarlow83/homebrew-ocrmypdf/Formula/ocrmypdf.rb
==> Installing ocrmypdf from jbarlow83/ocrmypdf
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libffi.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/tesseract.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/leptonica.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtiff.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/jpeg.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ghostscript.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/little-cms2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/unpaper.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ffmpeg.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/qpdf.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openjpeg.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libpng.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/freetype.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/webp.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf-archive.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/automake.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtool.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/yasm.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cython.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/texi2html.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gettext.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lame.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/x264.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xvid.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cmake.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sphinx-doc.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/doxygen.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python3.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/readline.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sqlite.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gdbm.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xz.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/makedepend.rb
Error: ocrmypdf 5.3.2 is already installed
To upgrade to 5.4.1, run `brew upgrade ocrmypdf`
choskimac-ii:exist joe$ brew upgrade --keep-tmp --debug ocrmypdf
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/jbarlow83/homebrew-ocrmypdf/Formula/ocrmypdf.rb
==> Upgrading 1 outdated package, with result:
jbarlow83/ocrmypdf/ocrmypdf 5.4.1
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libffi.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/tesseract.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/leptonica.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtiff.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/jpeg.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ghostscript.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/little-cms2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/unpaper.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ffmpeg.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/qpdf.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openjpeg.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libpng.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/freetype.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/webp.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf-archive.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/automake.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtool.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/yasm.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cython.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/texi2html.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gettext.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lame.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/x264.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xvid.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cmake.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sphinx-doc.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/doxygen.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python3.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/readline.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sqlite.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gdbm.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xz.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/makedepend.rb
==> Upgrading jbarlow83/ocrmypdf/ocrmypdf 
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FromPathLoader): loading /usr/local/Homebrew/Library/Taps/jbarlow83/homebrew-ocrmypdf/Formula/ocrmypdf.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libffi.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/tesseract.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/leptonica.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libpng.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/jpeg.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtiff.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ghostscript.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/little-cms2.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/unpaper.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ffmpeg.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lame.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/x264.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xvid.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/qpdf.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openjpeg.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/freetype.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/webp.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf-archive.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/automake.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtool.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/yasm.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cython.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/texi2html.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gettext.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cmake.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sphinx-doc.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/doxygen.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python3.rb
==> Downloading https://files.pythonhosted.org/packages/2c/d5/9f2bb9651e2ab693e7556f0a5689f87f605d0eda078513cbc32925c50f45/ocrmypdf-5.4.1.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf-5.4.1.tar.gz
HOMEBREW_PROCESSOR:Intel
HOMEBREW_DEV_CMD_RUN:1
HOMEBREW_USER_AGENT:Homebrew/1.3.5-12-gc3ff748 (Macintosh; Intel Mac OS X 10.13)
GEM_OLD_HOME:
TERM_PROGRAM:Apple_Terminal
HOMEBREW_COMMAND_DEPTH:1
HOMEBREW_LIBRARY:/usr/local/Homebrew/Library
SHELL:/bin/bash
TERM:xterm-256color
HOMEBREW_OS_VERSION:macOS 10.13
HOMEBREW_REPOSITORY:/usr/local/Homebrew
Apple_PubSub_Socket_Render:/private/tmp/com.apple.launchd.pSQ6EKM5aO/Render
HOMEBREW_ENABLE_AUTO_UPDATE_MIGRATION:1
TERM_PROGRAM_VERSION:400
TERM_SESSION_ID:00D671DD-C62B-4E74-9BB9-449E5DCB97AA
HOMEBREW_RUBY_PATH:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/current/bin/ruby
HOMEBREW_GIT_CONFIG_FILE:/usr/local/Homebrew/.git/config
USER:joe
SSH_AUTH_SOCK:/private/tmp/com.apple.launchd.QmCElDroHz/Listeners
HOMEBREW_NO_AUTO_UPDATE:1
HOMEBREW_ANALYTICS_USER_UUID:77B44086-E2DB-44A5-8161-72BB486F47C3
HOMEBREW_CACHE:/Users/joe/Library/Caches/Homebrew
HOMEBREW_USER_AGENT_CURL:Homebrew/1.3.5-12-gc3ff748 (Macintosh; Intel Mac OS X 10.13) curl/7.54.0
PATH:/usr/local/Homebrew/Library/Homebrew/shims/super:/usr/local/opt/pkg-config/bin:/usr/local/opt/libpng/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/libtiff/bin:/usr/local/opt/leptonica/bin:/usr/local/opt/tesseract/bin:/usr/local/opt/little-cms2/bin:/usr/local/opt/ghostscript/bin:/usr/local/opt/lame/bin:/usr/local/opt/x264/bin:/usr/local/opt/ffmpeg/bin:/usr/local/opt/unpaper/bin:/usr/local/opt/qpdf/bin:/usr/local/opt/openjpeg/bin:/usr/local/opt/freetype/bin:/usr/local/opt/webp/bin:/usr/local/opt/python3/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/bin
HOMEBREW_EDITOR:nano
HOMEBREW_BREW_FILE:/usr/local/bin/brew
PWD:/Users/joe/workspace/exist
HOMEBREW_MACOS_VERSION:10.13
JAVA_HOME:/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
HOMEBREW_ANALYTICS_ID:UA-76679469-1
LANG:en_US.UTF-8
XPC_FLAGS:0x0
HOMEBREW_PRODUCT:Homebrew
RBENV_SHELL:bash
XPC_SERVICE_NAME:0
SHLVL:1
HOME:/private/tmp/ocrmypdf-20171013-41838-clssxi/ocrmypdf-5.4.1/.brew_home
GEM_OLD_PATH:
HOMEBREW_PREFIX:/usr/local
LOGNAME:joe
HOMEBREW_VERSION:1.3.5-12-gc3ff748
HOMEBREW_CELLAR:/usr/local/Cellar
HOMEBREW_CURL:/usr/bin/curl
DISPLAY:/private/tmp/com.apple.launchd.nnQlOZ5Fgf/org.macosforge.xquartz:0
SECURITYSESSIONID:186aa
HOMEBREW_SYSTEM:Macintosh
__CF_USER_TEXT_ENCODING:0x1F5:0x0:0x0
HOMEBREW_ERROR_PIPE:/tmp/homebrew20171013-41327-ygu4p1/socket
OBJC:clang
CC:clang
HOMEBREW_CC:clang
OBJCXX:clang++
CXX:clang++
HOMEBREW_CXX:clang++
MAKEFLAGS:-j8
PKG_CONFIG_PATH:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/leptonica/lib/pkgconfig:/usr/local/opt/tesseract/lib/pkgconfig:/usr/local/opt/little-cms2/lib/pkgconfig:/usr/local/opt/x264/lib/pkgconfig:/usr/local/opt/ffmpeg/lib/pkgconfig:/usr/local/opt/qpdf/lib/pkgconfig:/usr/local/opt/openjpeg/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/webp/lib/pkgconfig:/usr/local/opt/python3/lib/pkgconfig
PKG_CONFIG_LIBDIR:/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.13:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
HOMEBREW_CCCFG:sa
HOMEBREW_OPTIMIZATION_LEVEL:Os
HOMEBREW_OPT:/usr/local/opt
HOMEBREW_TEMP:/tmp
HOMEBREW_OPTFLAGS:-march=native
HOMEBREW_ARCHFLAGS:
CMAKE_PREFIX_PATH:/usr/local/opt/libffi:/usr/local
CMAKE_FRAMEWORK_PATH:/usr/local/opt/python3/Frameworks:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks
CMAKE_INCLUDE_PATH:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/apache2:/opt/X11/include:/opt/X11/include/freetype2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH:/opt/X11/lib:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
ACLOCAL_PATH:/usr/local/share/aclocal:/opt/X11/share/aclocal
HOMEBREW_ISYSTEM_PATHS:/usr/local/include:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/apache2:/opt/X11/include:/opt/X11/include/freetype2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
HOMEBREW_LIBRARY_PATHS:/usr/local/opt/libffi/lib:/usr/local/lib:/opt/X11/lib:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
HOMEBREW_DEPENDENCIES:pkg-config,libffi,libpng,jpeg,libtiff,leptonica,tesseract,little-cms2,ghostscript,lame,x264,xvid,ffmpeg,unpaper,qpdf,openjpeg,freetype,jpeg,webp,python3
HOMEBREW_FORMULA_PREFIX:/usr/local/Cellar/ocrmypdf/5.4.1
HOMEBREW_SDKROOT:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
MACOSX_DEPLOYMENT_TARGET:10.13
SDKROOT:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
HOMEBREW_PREFER_CLT_PROXIES:1
TMPDIR:/tmp
TEMP:/tmp
TMP:/tmp
_JAVA_OPTIONS: -Duser.home=/Users/joe/Library/Caches/Homebrew/java_cache
CURL_HOME:/Users/joe
SETUPTOOLS_SCM_PRETEND_VERSION:v5.4.1
==> Downloading https://files.pythonhosted.org/packages/d4/0c/9840c08189e030873387a73b90ada981885010dd9aea134d6de30cd24cb8/virtualenv-15.1.0.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--homebrew-virtualenv-15.1.0.tar.gz
==> python3 -c import setuptools... --no-user-cfg install --prefix=/tmp/ocrmypdf--homebrew-virtualenv-20171013-41838-ykdizj/target --single-version-externally-m
==> python3 -s /tmp/ocrmypdf--homebrew-virtualenv-20171013-41838-ykdizj/target/bin/virtualenv -p python3 /usr/local/Cellar/ocrmypdf/5.4.1/libexec
==> Downloading https://files.pythonhosted.org/packages/5b/b9/790f8eafcdab455bcd3bd908161f802c9ce5adbf702a83aa7712fcc345b7/cffi-1.10.0.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--cffi-1.10.0.tar.gz
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--cffi-20171013-41838-1l3dwr
==> Downloading https://files.pythonhosted.org/packages/b6/bc/e72a813265a5e7b7319c74130888c60bed441b4a13c2b8f76a33c19541bb/img2pdf-0.2.3.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--img2pdf-0.2.3.tar.gz
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--img2pdf-20171013-41838-1yo
==> Downloading https://files.pythonhosted.org/packages/35/17/c15d41d5a8f8b98cc3df25eb00c5cee76193114c78e5674df6ef4ac92647/olefile-0.44.zip
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--olefile-0.44.zip
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--olefile-20171013-41838-7nb
==> Downloading https://files.pythonhosted.org/packages/93/73/66854f63b1941aad9af18a1de59f9cf95ad1a87c801540222e332f6688d7/Pillow-4.1.1.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--Pillow-4.1.1.tar.gz
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--Pillow-20171013-41838-1a9o
Last 15 lines from /Users/joe/Library/Logs/Homebrew/ocrmypdf/06.pip:
  Removing source in /private/tmp/pip-1ab0n8zq-build
Command "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-1ab0n8zq-build/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-da77p4tq-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/../include/site/python3.6/Pillow" failed with error code 1 in /private/tmp/pip-1ab0n8zq-build/
Exception information:
Traceback (most recent call last):
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/req/req_install.py", line 878, in install
    spinner=spinner,
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/utils/__init__.py", line 707, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-1ab0n8zq-build/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-da77p4tq-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/../include/site/python3.6/Pillow" failed with error code 1 in /private/tmp/pip-1ab0n8zq-build/
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb
/usr/local/Homebrew/Library/Homebrew/debrew.rb:11:in `raise'
BuildError: Failed executing: /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--Pillow-20171013-41838-1a9o4l4/Pillow-4.1.1
1. raise
2. ignore
3. backtrace
4. irb
5. shell
joewiz commented 6 years ago

I wasn't sure which of the 5 options at the end here to select. Please advise.

jbarlow83 commented 6 years ago

I'd hit Ctrl+C, none of those 5 options are that useful.

Please try to do the following...

brew install libtiff libjpeg webp little-cms2
pip3 install Pillow

and see if that works for you, then try upgrade ocrmypdf.

joewiz commented 6 years ago

@jbarlow83 Thanks for your reply and hints. I also found https://github.com/Homebrew/homebrew-core/issues/11368, which pointed out the conflict in Homebrew between ghostscript and mactex. To ensure I wasn't suffering from this problem, I uninstalled mactex. And brew doctor says my system is ready to brew. Nonetheless, installation of ocrmypdf is failing. Here's my console output. Unfortunately, a diff with the output pasted into my original two posts shows no significant differences, as far as I could tell. Is there any other info I can provide? Restoring ocrmypdf isn't urgent for me, but I'd be happy to continue troubleshooting if it would help.

choskimac-ii:~ joe$ brew install libtiff libjpeg webp little-cms2
Warning: libtiff 4.0.8_4 is already installed
Warning: jpeg 9b is already installed
Warning: webp 0.6.0_2 is already installed
Warning: little-cms2 2.8_1 is already installed
choskimac-ii:~ joe$ pip3 install Pillow
Requirement already satisfied: Pillow in /usr/local/lib/python3.6/site-packages
Requirement already satisfied: olefile in /usr/local/lib/python3.6/site-packages (from Pillow)
choskimac-ii:~ joe$ brew uninstall ocrmypdf
Error: No such keg: /usr/local/Cellar/ocrmypdf
choskimac-ii:~ joe$ brew tap
jbarlow83/ocrmypdf
homebrew/core
caskroom/drivers
caskroom/fonts
caskroom/versions
caskroom/cask
caskroom/eid
vitorgalvao/tiny-scripts
choskimac-ii:~ joe$ brew install ocrmypdf
==> Installing ocrmypdf from jbarlow83/ocrmypdf
==> Downloading https://files.pythonhosted.org/packages/2c/d5/9f2bb9651e2ab693e7556f0a5689f87f605d0eda078513cbc32925c50f45/ocrmypdf-5.4.1.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf-5.4.1.tar.gz
HOMEBREW_PROCESSOR:Intel
HOMEBREW_DEV_CMD_RUN:1
HOMEBREW_USER_AGENT:Homebrew/1.3.5-16-gb4e1e39 (Macintosh; Intel Mac OS X 10.13)
GEM_OLD_HOME:
TERM_PROGRAM:Apple_Terminal
HOMEBREW_COMMAND_DEPTH:1
HOMEBREW_LIBRARY:/usr/local/Homebrew/Library
SHELL:/bin/bash
TERM:xterm-256color
HOMEBREW_OS_VERSION:macOS 10.13
HOMEBREW_REPOSITORY:/usr/local/Homebrew
Apple_PubSub_Socket_Render:/private/tmp/com.apple.launchd.z0UGRNeDUi/Render
HOMEBREW_ENABLE_AUTO_UPDATE_MIGRATION:1
TERM_PROGRAM_VERSION:400
TERM_SESSION_ID:00D671DD-C62B-4E74-9BB9-449E5DCB97AA
HOMEBREW_RUBY_PATH:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/current/bin/ruby
HOMEBREW_GIT_CONFIG_FILE:/usr/local/Homebrew/.git/config
USER:joe
SSH_AUTH_SOCK:/private/tmp/com.apple.launchd.imRXwqswwy/Listeners
HOMEBREW_NO_AUTO_UPDATE:1
HOMEBREW_ANALYTICS_USER_UUID:77B44086-E2DB-44A5-8161-72BB486F47C3
HOMEBREW_CACHE:/Users/joe/Library/Caches/Homebrew
HOMEBREW_USER_AGENT_CURL:Homebrew/1.3.5-16-gb4e1e39 (Macintosh; Intel Mac OS X 10.13) curl/7.54.0
PATH:/usr/local/Homebrew/Library/Homebrew/shims/super:/usr/local/opt/pkg-config/bin:/usr/local/opt/libpng/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/libtiff/bin:/usr/local/opt/leptonica/bin:/usr/local/opt/tesseract/bin:/usr/local/opt/little-cms2/bin:/usr/local/opt/ghostscript/bin:/usr/local/opt/lame/bin:/usr/local/opt/x264/bin:/usr/local/opt/ffmpeg/bin:/usr/local/opt/unpaper/bin:/usr/local/opt/qpdf/bin:/usr/local/opt/openjpeg/bin:/usr/local/opt/freetype/bin:/usr/local/opt/webp/bin:/usr/local/opt/python3/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/bin
HOMEBREW_EDITOR:nano
HOMEBREW_BREW_FILE:/usr/local/bin/brew
PWD:/Users/joe
HOMEBREW_MACOS_VERSION:10.13
JAVA_HOME:/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
HOMEBREW_ANALYTICS_ID:UA-76679469-1
LANG:en_US.UTF-8
XPC_FLAGS:0x0
HOMEBREW_PRODUCT:Homebrew
RBENV_SHELL:bash
XPC_SERVICE_NAME:0
SHLVL:1
HOME:/private/tmp/ocrmypdf-20171015-28449-1lzi2xr/ocrmypdf-5.4.1/.brew_home
GEM_OLD_PATH:
HOMEBREW_PREFIX:/usr/local
LOGNAME:joe
HOMEBREW_VERSION:1.3.5-16-gb4e1e39
HOMEBREW_CELLAR:/usr/local/Cellar
HOMEBREW_CURL:/usr/bin/curl
DISPLAY:/private/tmp/com.apple.launchd.xxZuRPUELO/org.macosforge.xquartz:0
SECURITYSESSIONID:1955c
HOMEBREW_SYSTEM:Macintosh
__CF_USER_TEXT_ENCODING:0x1F5:0x0:0x0
HOMEBREW_ERROR_PIPE:/tmp/homebrew20171015-27940-cf05fg/socket
OBJC:clang
CC:clang
HOMEBREW_CC:clang
OBJCXX:clang++
CXX:clang++
HOMEBREW_CXX:clang++
MAKEFLAGS:-j8
PKG_CONFIG_PATH:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/leptonica/lib/pkgconfig:/usr/local/opt/tesseract/lib/pkgconfig:/usr/local/opt/little-cms2/lib/pkgconfig:/usr/local/opt/x264/lib/pkgconfig:/usr/local/opt/ffmpeg/lib/pkgconfig:/usr/local/opt/qpdf/lib/pkgconfig:/usr/local/opt/openjpeg/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/webp/lib/pkgconfig:/usr/local/opt/python3/lib/pkgconfig
PKG_CONFIG_LIBDIR:/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.13:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
HOMEBREW_CCCFG:sa
HOMEBREW_OPTIMIZATION_LEVEL:Os
HOMEBREW_OPT:/usr/local/opt
HOMEBREW_TEMP:/tmp
HOMEBREW_OPTFLAGS:-march=native
HOMEBREW_ARCHFLAGS:
CMAKE_PREFIX_PATH:/usr/local/opt/libffi:/usr/local
CMAKE_FRAMEWORK_PATH:/usr/local/opt/python3/Frameworks:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks
CMAKE_INCLUDE_PATH:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/apache2:/opt/X11/include:/opt/X11/include/freetype2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH:/opt/X11/lib:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
ACLOCAL_PATH:/usr/local/share/aclocal:/opt/X11/share/aclocal
HOMEBREW_ISYSTEM_PATHS:/usr/local/include:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/apache2:/opt/X11/include:/opt/X11/include/freetype2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
HOMEBREW_LIBRARY_PATHS:/usr/local/opt/libffi/lib:/usr/local/lib:/opt/X11/lib:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
HOMEBREW_DEPENDENCIES:pkg-config,libffi,libpng,jpeg,libtiff,leptonica,tesseract,little-cms2,ghostscript,lame,x264,xvid,ffmpeg,unpaper,qpdf,openjpeg,freetype,jpeg,webp,python3
HOMEBREW_FORMULA_PREFIX:/usr/local/Cellar/ocrmypdf/5.4.1
HOMEBREW_SDKROOT:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
MACOSX_DEPLOYMENT_TARGET:10.13
SDKROOT:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
HOMEBREW_PREFER_CLT_PROXIES:1
TMPDIR:/tmp
TEMP:/tmp
TMP:/tmp
_JAVA_OPTIONS: -Duser.home=/Users/joe/Library/Caches/Homebrew/java_cache
CURL_HOME:/Users/joe
SETUPTOOLS_SCM_PRETEND_VERSION:v5.4.1
==> Downloading https://files.pythonhosted.org/packages/d4/0c/9840c08189e030873387a73b90ada981885010dd9aea134d6de30cd24cb8/virtualenv-15.1.0.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--homebrew-virtualenv-15.1.0.tar.gz
==> python3 -c import setuptools... --no-user-cfg install --prefix=/tmp/ocrmypdf--homebrew-virtualenv-20171015-28449-14o040e/target --single-version-externally-
==> python3 -s /tmp/ocrmypdf--homebrew-virtualenv-20171015-28449-14o040e/target/bin/virtualenv -p python3 /usr/local/Cellar/ocrmypdf/5.4.1/libexec
==> Downloading https://files.pythonhosted.org/packages/5b/b9/790f8eafcdab455bcd3bd908161f802c9ce5adbf702a83aa7712fcc345b7/cffi-1.10.0.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--cffi-1.10.0.tar.gz
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--cffi-20171015-28449-1ruqgp
==> Downloading https://files.pythonhosted.org/packages/b6/bc/e72a813265a5e7b7319c74130888c60bed441b4a13c2b8f76a33c19541bb/img2pdf-0.2.3.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--img2pdf-0.2.3.tar.gz
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--img2pdf-20171015-28449-19b
==> Downloading https://files.pythonhosted.org/packages/35/17/c15d41d5a8f8b98cc3df25eb00c5cee76193114c78e5674df6ef4ac92647/olefile-0.44.zip
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--olefile-0.44.zip
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--olefile-20171015-28449-lqu
==> Downloading https://files.pythonhosted.org/packages/93/73/66854f63b1941aad9af18a1de59f9cf95ad1a87c801540222e332f6688d7/Pillow-4.1.1.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--Pillow-4.1.1.tar.gz
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--Pillow-20171015-28449-14lo
Last 15 lines from /Users/joe/Library/Logs/Homebrew/ocrmypdf/06.pip:
  Removing source in /private/tmp/pip-wq6_6gsg-build
Command "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-wq6_6gsg-build/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-yapd8try-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/../include/site/python3.6/Pillow" failed with error code 1 in /private/tmp/pip-wq6_6gsg-build/
Exception information:
Traceback (most recent call last):
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/req/req_install.py", line 878, in install
    spinner=spinner,
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/utils/__init__.py", line 707, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-wq6_6gsg-build/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-yapd8try-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/../include/site/python3.6/Pillow" failed with error code 1 in /private/tmp/pip-wq6_6gsg-build/

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

These open issues may also help:
Error upgrading ocrmypdf to v5.4.1 https://github.com/jbarlow83/homebrew-ocrmypdf/issues/4
error installing https://github.com/jbarlow83/homebrew-ocrmypdf/issues/3
Error when installing https://github.com/jbarlow83/homebrew-ocrmypdf/issues/1
jbarlow83 commented 6 years ago

Even with the added debugging information these homebrew error messages are still maddening.

Could you please try installing Pillow manually ([sudo] pip3 install Pillow) into the homebrew environment? The install script is failing to install Pillow.

On Sun, 15 Oct 2017 at 20:33 Joe Wicentowski notifications@github.com wrote:

@jbarlow83 https://github.com/jbarlow83 Thanks for your reply and hints. I also found Homebrew/homebrew-core#11368 https://github.com/Homebrew/homebrew-core/issues/11368, which pointed out the conflict in Homebrew between ghostscript and mactex. To ensure I wasn't suffering from this problem, I uninstalled mactex. And brew doctor says my system is ready to brew. Nonetheless, installation of ocrmypdf is failing. Here's my console output. Unfortunately, a diff with the output pasted into my original two posts shows no significant differences, as far as I could tell. Is there any other info I can provide? Restoring ocrmypdf isn't urgent for me, but I'd be happy to continue troubleshooting if it would help.

choskimac-ii:~ joe$ brew install libtiff libjpeg webp little-cms2 Warning: libtiff 4.0.8_4 is already installed Warning: jpeg 9b is already installed Warning: webp 0.6.0_2 is already installed Warning: little-cms2 2.8_1 is already installed choskimac-ii:~ joe$ pip3 install Pillow Requirement already satisfied: Pillow in /usr/local/lib/python3.6/site-packages Requirement already satisfied: olefile in /usr/local/lib/python3.6/site-packages (from Pillow) choskimac-ii:~ joe$ brew uninstall ocrmypdf Error: No such keg: /usr/local/Cellar/ocrmypdf choskimac-ii:~ joe$ brew tap jbarlow83/ocrmypdf homebrew/core caskroom/drivers caskroom/fonts caskroom/versions caskroom/cask caskroom/eid vitorgalvao/tiny-scripts choskimac-ii:~ joe$ brew install ocrmypdf ==> Installing ocrmypdf from jbarlow83/ocrmypdf ==> Downloading https://files.pythonhosted.org/packages/2c/d5/9f2bb9651e2ab693e7556f0a5689f87f605d0eda078513cbc32925c50f45/ocrmypdf-5.4.1.tar.gz Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf-5.4.1.tar.gz HOMEBREW_PROCESSOR:Intel HOMEBREW_DEV_CMD_RUN:1 HOMEBREW_USER_AGENT:Homebrew/1.3.5-16-gb4e1e39 (Macintosh; Intel Mac OS X 10.13) GEM_OLD_HOME: TERM_PROGRAM:Apple_Terminal HOMEBREW_COMMAND_DEPTH:1 HOMEBREW_LIBRARY:/usr/local/Homebrew/Library SHELL:/bin/bash TERM:xterm-256color HOMEBREW_OS_VERSION:macOS 10.13 HOMEBREW_REPOSITORY:/usr/local/Homebrew Apple_PubSub_Socket_Render:/private/tmp/com.apple.launchd.z0UGRNeDUi/Render HOMEBREW_ENABLE_AUTO_UPDATE_MIGRATION:1 TERM_PROGRAM_VERSION:400 TERM_SESSION_ID:00D671DD-C62B-4E74-9BB9-449E5DCB97AA HOMEBREW_RUBY_PATH:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/current/bin/ruby HOMEBREW_GIT_CONFIG_FILE:/usr/local/Homebrew/.git/config USER:joe SSH_AUTH_SOCK:/private/tmp/com.apple.launchd.imRXwqswwy/Listeners HOMEBREW_NO_AUTO_UPDATE:1 HOMEBREW_ANALYTICS_USER_UUID:77B44086-E2DB-44A5-8161-72BB486F47C3 HOMEBREW_CACHE:/Users/joe/Library/Caches/Homebrew HOMEBREW_USER_AGENT_CURL:Homebrew/1.3.5-16-gb4e1e39 (Macintosh; Intel Mac OS X 10.13) curl/7.54.0 PATH:/usr/local/Homebrew/Library/Homebrew/shims/super:/usr/local/opt/pkg-config/bin:/usr/local/opt/libpng/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/libtiff/bin:/usr/local/opt/leptonica/bin:/usr/local/opt/tesseract/bin:/usr/local/opt/little-cms2/bin:/usr/local/opt/ghostscript/bin:/usr/local/opt/lame/bin:/usr/local/opt/x264/bin:/usr/local/opt/ffmpeg/bin:/usr/local/opt/unpaper/bin:/usr/local/opt/qpdf/bin:/usr/local/opt/openjpeg/bin:/usr/local/opt/freetype/bin:/usr/local/opt/webp/bin:/usr/local/opt/python3/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/bin HOMEBREW_EDITOR:nano HOMEBREW_BREW_FILE:/usr/local/bin/brew PWD:/Users/joe HOMEBREW_MACOS_VERSION:10.13 JAVA_HOME:/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home HOMEBREW_ANALYTICS_ID:UA-76679469-1 LANG:en_US.UTF-8 XPC_FLAGS:0x0 HOMEBREW_PRODUCT:Homebrew RBENV_SHELL:bash XPC_SERVICE_NAME:0 SHLVL:1 HOME:/private/tmp/ocrmypdf-20171015-28449-1lzi2xr/ocrmypdf-5.4.1/.brew_home GEM_OLD_PATH: HOMEBREW_PREFIX:/usr/local LOGNAME:joe HOMEBREW_VERSION:1.3.5-16-gb4e1e39 HOMEBREW_CELLAR:/usr/local/Cellar HOMEBREW_CURL:/usr/bin/curl DISPLAY:/private/tmp/com.apple.launchd.xxZuRPUELO/org.macosforge.xquartz:0 SECURITYSESSIONID:1955c HOMEBREW_SYSTEM:Macintosh CF_USER_TEXT_ENCODING:0x1F5:0x0:0x0 HOMEBREW_ERROR_PIPE:/tmp/homebrew20171015-27940-cf05fg/socket OBJC:clang CC:clang HOMEBREW_CC:clang OBJCXX:clang++ CXX:clang++ HOMEBREW_CXX:clang++ MAKEFLAGS:-j8 PKG_CONFIG_PATH:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/leptonica/lib/pkgconfig:/usr/local/opt/tesseract/lib/pkgconfig:/usr/local/opt/little-cms2/lib/pkgconfig:/usr/local/opt/x264/lib/pkgconfig:/usr/local/opt/ffmpeg/lib/pkgconfig:/usr/local/opt/qpdf/lib/pkgconfig:/usr/local/opt/openjpeg/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/webp/lib/pkgconfig:/usr/local/opt/python3/lib/pkgconfig PKG_CONFIG_LIBDIR:/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.13:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig HOMEBREW_CCCFG:sa HOMEBREW_OPTIMIZATION_LEVEL:Os HOMEBREW_OPT:/usr/local/opt HOMEBREW_TEMP:/tmp HOMEBREW_OPTFLAGS:-march=native HOMEBREW_ARCHFLAGS: CMAKE_PREFIX_PATH:/usr/local/opt/libffi:/usr/local CMAKE_FRAMEWORK_PATH:/usr/local/opt/python3/Frameworks:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks CMAKE_INCLUDE_PATH:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/apache2:/opt/X11/include:/opt/X11/include/freetype2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers CMAKE_LIBRARY_PATH:/opt/X11/lib:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries ACLOCAL_PATH:/usr/local/share/aclocal:/opt/X11/share/aclocal HOMEBREW_ISYSTEM_PATHS:/usr/local/include:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/apache2:/opt/X11/include:/opt/X11/include/freetype2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers HOMEBREW_LIBRARY_PATHS:/usr/local/opt/libffi/lib:/usr/local/lib:/opt/X11/lib:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries HOMEBREW_DEPENDENCIES:pkg-config,libffi,libpng,jpeg,libtiff,leptonica,tesseract,little-cms2,ghostscript,lame,x264,xvid,ffmpeg,unpaper,qpdf,openjpeg,freetype,jpeg,webp,python3 HOMEBREW_FORMULA_PREFIX:/usr/local/Cellar/ocrmypdf/5.4.1 HOMEBREW_SDKROOT:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk MACOSX_DEPLOYMENT_TARGET:10.13 SDKROOT:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk HOMEBREW_PREFER_CLT_PROXIES:1 TMPDIR:/tmp TEMP:/tmp TMP:/tmp _JAVA_OPTIONS: -Duser.home=/Users/joe/Library/Caches/Homebrew/java_cache CURL_HOME:/Users/joe SETUPTOOLS_SCM_PRETEND_VERSION:v5.4.1 ==> Downloading https://files.pythonhosted.org/packages/d4/0c/9840c08189e030873387a73b90ada981885010dd9aea134d6de30cd24cb8/virtualenv-15.1.0.tar.gz Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--homebrew-virtualenv-15.1.0.tar.gz ==> python3 -c import setuptools... --no-user-cfg install --prefix=/tmp/ocrmypdf--homebrew-virtualenv-20171015-28449-14o040e/target --single-version-externally- ==> python3 -s /tmp/ocrmypdf--homebrew-virtualenv-20171015-28449-14o040e/target/bin/virtualenv -p python3 /usr/local/Cellar/ocrmypdf/5.4.1/libexec ==> Downloading https://files.pythonhosted.org/packages/5b/b9/790f8eafcdab455bcd3bd908161f802c9ce5adbf702a83aa7712fcc345b7/cffi-1.10.0.tar.gz Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--cffi-1.10.0.tar.gz ==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--cffi-20171015-28449-1ruqgp ==> Downloading https://files.pythonhosted.org/packages/b6/bc/e72a813265a5e7b7319c74130888c60bed441b4a13c2b8f76a33c19541bb/img2pdf-0.2.3.tar.gz Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--img2pdf-0.2.3.tar.gz ==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--img2pdf-20171015-28449-19b ==> Downloading https://files.pythonhosted.org/packages/35/17/c15d41d5a8f8b98cc3df25eb00c5cee76193114c78e5674df6ef4ac92647/olefile-0.44.zip Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--olefile-0.44.zip ==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--olefile-20171015-28449-lqu ==> Downloading https://files.pythonhosted.org/packages/93/73/66854f63b1941aad9af18a1de59f9cf95ad1a87c801540222e332f6688d7/Pillow-4.1.1.tar.gz Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--Pillow-4.1.1.tar.gz ==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--Pillow-20171015-28449-14lo Last 15 lines from /Users/joe/Library/Logs/Homebrew/ocrmypdf/06.pip: Removing source in /private/tmp/pip-wq6_6gsg-build Command "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/python3.6 -u -c "import setuptools, tokenize;file='/private/tmp/pip-wq6_6gsg-build/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-yapd8try-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/../include/site/python3.6/Pillow" failed with error code 1 in /private/tmp/pip-wq6_6gsg-build/ Exception information: Traceback (most recent call last): File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/commands/install.py", line 342, in run prefix=options.prefix_path, File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/req/req_set.py", line 784, in install **kwargs File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/req/req_install.py", line 878, in install spinner=spinner, File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/utils/init.py", line 707, in call_subprocess % (command_desc, proc.returncode, cwd)) pip.exceptions.InstallationError: Command "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/python3.6 -u -c "import setuptools, tokenize;file='/private/tmp/pip-wq6_6gsg-build/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-yapd8try-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/../include/site/python3.6/Pillow" failed with error code 1 in /private/tmp/pip-wq6_6gsg-build/

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

These open issues may also help: Error upgrading ocrmypdf to v5.4.1 https://github.com/jbarlow83/homebrew-ocrmypdf/issues/4 error installing https://github.com/jbarlow83/homebrew-ocrmypdf/issues/3 Error when installing https://github.com/jbarlow83/homebrew-ocrmypdf/issues/1

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/jbarlow83/homebrew-ocrmypdf/issues/4#issuecomment-336772004, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvcM9tjIa6b70Lt82KmICT3Z3KWub4Xks5sss6VgaJpZM4P5F1i .

joewiz commented 6 years ago

@jbarlow83 Sorry, I could've sworn I replied, but apparently not! In my console output before, it showed the results of installing Pillow manually:

$ pip3 install Pillow
Requirement already satisfied: Pillow in /usr/local/lib/python3.6/site-packages
Requirement already satisfied: olefile in /usr/local/lib/python3.6/site-packages (from Pillow)

Prepending that command with sudo yields some kind of error:

$ sudo pip3 install Pillow
Password:
The directory '/Users/joe/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/joe/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: Pillow in /usr/local/lib/python3.6/site-packages
Requirement already satisfied: olefile in /usr/local/lib/python3.6/site-packages (from Pillow)

Other info:

$ which pip3
/usr/local/bin/pip3
$ ls -lA /usr/local/bin/pip3
lrwxr-xr-x  1 joe  admin  32 Oct  6 13:28 /usr/local/bin/pip3 -> ../Cellar/python3/3.6.3/bin/pip3
$ pip3 -V
pip 9.0.1 from /usr/local/lib/python3.6/site-packages (python 3.6)
$ brew info python3
python3: stable 3.6.3 (bottled), devel 3.7.0a1, HEAD
Interpreted, interactive, object-oriented programming language
https://www.python.org/
/usr/local/Cellar/python3/3.6.2 (3,703 files, 57.2MB)
  Poured from bottle on 2017-07-24 at 14:25:27
/usr/local/Cellar/python3/3.6.3 (7,973 files, 111MB) *
  Built from source on 2017-10-06 at 13:27:54
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/python3.rb
==> Dependencies
Build: pkg-config ✔, sphinx-doc ✘
Required: openssl ✔
Recommended: readline ✔, sqlite ✔, gdbm ✔, xz ✔
Optional: tcl-tk ✘, sphinx-doc ✘
==> Options
--with-quicktest
    Run `make quicktest` after the build
--with-sphinx-doc
    Build HTML documentation
--with-tcl-tk
    Use Homebrew's Tk instead of macOS Tk (has optional Cocoa and threads support)
--without-gdbm
    Build without gdbm support
--without-readline
    Build without readline support
--without-sqlite
    Build without sqlite support
--without-xz
    Build without xz support
--devel
    Install development version 3.7.0a1
--HEAD
    Install HEAD version
==> Caveats
Pip, setuptools, and wheel have been installed. To update them
  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.6/site-packages

See: https://docs.brew.sh/Homebrew-and-Python.html

After installing Pillow via the means above, reinstalling ocrmypdf fails with what I think is the same message as before. But for completeness' sake, here it is:

$ brew reinstall ocrmypdf
==> Reinstalling jbarlow83/ocrmypdf/ocrmypdf 
==> Downloading https://files.pythonhosted.org/packages/2c/d5/9f2bb9651e2ab693e7556f0a5689f87f605d0eda078513cbc32925c50f45/ocrmypdf-5.4.1.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf-5.4.1.tar.gz
HOMEBREW_PROCESSOR:Intel
HOMEBREW_DEV_CMD_RUN:1
HOMEBREW_USER_AGENT:Homebrew/1.3.6-37-g357b7bb (Macintosh; Intel Mac OS X 10.13)
GEM_OLD_HOME:
TERM_PROGRAM:Apple_Terminal
HOMEBREW_COMMAND_DEPTH:1
HOMEBREW_LIBRARY:/usr/local/Homebrew/Library
TERM:xterm-256color
SHELL:/bin/bash
HOMEBREW_OS_VERSION:macOS 10.13
HOMEBREW_REPOSITORY:/usr/local/Homebrew
Apple_PubSub_Socket_Render:/private/tmp/com.apple.launchd.iP5vgR0Dzn/Render
HOMEBREW_ENABLE_AUTO_UPDATE_MIGRATION:1
TERM_PROGRAM_VERSION:400
TERM_SESSION_ID:EB7442DD-2696-42A9-9BC3-2F3A486F9368
HOMEBREW_RUBY_PATH:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/current/bin/ruby
HOMEBREW_GIT_CONFIG_FILE:/usr/local/Homebrew/.git/config
SAXON_HOME:/usr/local/opt/saxon
USER:joe
SSH_AUTH_SOCK:/private/tmp/com.apple.launchd.nwwYAhKnjw/Listeners
HOMEBREW_NO_AUTO_UPDATE:1
HOMEBREW_ANALYTICS_USER_UUID:9E9F5121-92DF-46CF-B1AC-AF31D4F76E97
HOMEBREW_CACHE:/Users/joe/Library/Caches/Homebrew
HOMEBREW_USER_AGENT_CURL:Homebrew/1.3.6-37-g357b7bb (Macintosh; Intel Mac OS X 10.13) curl/7.54.0
PATH:/usr/local/Homebrew/Library/Homebrew/shims/super:/usr/local/opt/pkg-config/bin:/usr/local/opt/libpng/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/libtiff/bin:/usr/local/opt/leptonica/bin:/usr/local/opt/tesseract/bin:/usr/local/opt/little-cms2/bin:/usr/local/opt/ghostscript/bin:/usr/local/opt/lame/bin:/usr/local/opt/x264/bin:/usr/local/opt/ffmpeg/bin:/usr/local/opt/unpaper/bin:/usr/local/opt/qpdf/bin:/usr/local/opt/openjpeg/bin:/usr/local/opt/freetype/bin:/usr/local/opt/webp/bin:/usr/local/opt/python3/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/bin
HOMEBREW_EDITOR:nano
HOMEBREW_BREW_FILE:/usr/local/bin/brew
PWD:/Users/joe
HOMEBREW_MACOS_VERSION:10.13
JAVA_HOME:/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
EDITOR:nano
SAXON_CP:/usr/local/opt/saxon/libexec
HOMEBREW_ANALYTICS_ID:UA-76679469-1
LANG:en_US.UTF-8
XPC_FLAGS:0x0
HOMEBREW_PRODUCT:Homebrew
XPC_SERVICE_NAME:0
HOME:/private/tmp/ocrmypdf-20171023-71704-8iuhe2/ocrmypdf-5.4.1/.brew_home
SHLVL:1
GEM_OLD_PATH:
HOMEBREW_PREFIX:/usr/local
LOGNAME:joe
HOMEBREW_VERSION:1.3.6-37-g357b7bb
HOMEBREW_CELLAR:/usr/local/Cellar
HOMEBREW_CURL:/usr/bin/curl
DISPLAY:/private/tmp/com.apple.launchd.0trsapNwNP/org.macosforge.xquartz:0
HOMEBREW_SYSTEM:Macintosh
__CF_USER_TEXT_ENCODING:0x1F5:0x0:0x0
HOMEBREW_ERROR_PIPE:/tmp/homebrew20171023-71546-eyxpq7/socket
OBJC:clang
CC:clang
HOMEBREW_CC:clang
OBJCXX:clang++
CXX:clang++
HOMEBREW_CXX:clang++
MAKEFLAGS:-j8
PKG_CONFIG_PATH:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/leptonica/lib/pkgconfig:/usr/local/opt/tesseract/lib/pkgconfig:/usr/local/opt/little-cms2/lib/pkgconfig:/usr/local/opt/x264/lib/pkgconfig:/usr/local/opt/ffmpeg/lib/pkgconfig:/usr/local/opt/qpdf/lib/pkgconfig:/usr/local/opt/openjpeg/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/webp/lib/pkgconfig:/usr/local/opt/python3/lib/pkgconfig
PKG_CONFIG_LIBDIR:/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.13:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
HOMEBREW_CCCFG:sa
HOMEBREW_OPTIMIZATION_LEVEL:Os
HOMEBREW_OPT:/usr/local/opt
HOMEBREW_TEMP:/tmp
HOMEBREW_OPTFLAGS:-march=native
HOMEBREW_ARCHFLAGS:
CMAKE_PREFIX_PATH:/usr/local/opt/libffi:/usr/local
CMAKE_FRAMEWORK_PATH:/usr/local/opt/python3/Frameworks:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks
CMAKE_INCLUDE_PATH:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/apache2:/opt/X11/include:/opt/X11/include/freetype2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH:/opt/X11/lib:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
ACLOCAL_PATH:/usr/local/share/aclocal:/opt/X11/share/aclocal
HOMEBREW_ISYSTEM_PATHS:/usr/local/include:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/apache2:/opt/X11/include:/opt/X11/include/freetype2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
HOMEBREW_LIBRARY_PATHS:/usr/local/opt/libffi/lib:/usr/local/lib:/opt/X11/lib:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
HOMEBREW_DEPENDENCIES:pkg-config,libffi,libpng,jpeg,libtiff,leptonica,tesseract,little-cms2,ghostscript,lame,x264,xvid,ffmpeg,unpaper,qpdf,openjpeg,freetype,jpeg,webp,python3
HOMEBREW_FORMULA_PREFIX:/usr/local/Cellar/ocrmypdf/5.4.1
HOMEBREW_SDKROOT:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
MACOSX_DEPLOYMENT_TARGET:10.13
SDKROOT:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
HOMEBREW_PREFER_CLT_PROXIES:1
TMPDIR:/tmp
TEMP:/tmp
TMP:/tmp
_JAVA_OPTIONS: -Duser.home=/Users/joe/Library/Caches/Homebrew/java_cache
CURL_HOME:/Users/joe
SETUPTOOLS_SCM_PRETEND_VERSION:v5.4.1
==> Downloading https://files.pythonhosted.org/packages/d4/0c/9840c08189e030873387a73b90ada981885010dd9aea134d6de30cd24cb8/virtualenv-15.1.0.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--homebrew-virtualenv-15.1.0.tar.gz
==> python3 -c import setuptools... --no-user-cfg install --prefix=/tmp/ocrmypdf--homebrew-virtualenv-20171023-71704-1pdjq3j/target --single-version-externally-managed --record=installed.txt
==> python3 -s /tmp/ocrmypdf--homebrew-virtualenv-20171023-71704-1pdjq3j/target/bin/virtualenv -p python3 /usr/local/Cellar/ocrmypdf/5.4.1/libexec
==> Downloading https://files.pythonhosted.org/packages/5b/b9/790f8eafcdab455bcd3bd908161f802c9ce5adbf702a83aa7712fcc345b7/cffi-1.10.0.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--cffi-1.10.0.tar.gz
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--cffi-20171023-71704-1penvs4/cffi-1.10.0
==> Downloading https://files.pythonhosted.org/packages/b6/bc/e72a813265a5e7b7319c74130888c60bed441b4a13c2b8f76a33c19541bb/img2pdf-0.2.3.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--img2pdf-0.2.3.tar.gz
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--img2pdf-20171023-71704-1qemqni/img2pdf-0.2.3
==> Downloading https://files.pythonhosted.org/packages/35/17/c15d41d5a8f8b98cc3df25eb00c5cee76193114c78e5674df6ef4ac92647/olefile-0.44.zip
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--olefile-0.44.zip
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--olefile-20171023-71704-yqrbh7/olefile-0.44
==> Downloading https://files.pythonhosted.org/packages/93/73/66854f63b1941aad9af18a1de59f9cf95ad1a87c801540222e332f6688d7/Pillow-4.1.1.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--Pillow-4.1.1.tar.gz
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--Pillow-20171023-71704-yb0wvf/Pillow-4.1.1
Last 15 lines from /Users/joe/Library/Logs/Homebrew/ocrmypdf/06.pip:
  Removing source in /private/tmp/pip-_g5xah0z-build
Command "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-_g5xah0z-build/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-m23zgd62-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/../include/site/python3.6/Pillow" failed with error code 1 in /private/tmp/pip-_g5xah0z-build/
Exception information:
Traceback (most recent call last):
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/req/req_install.py", line 878, in install
    spinner=spinner,
  File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/pip/utils/__init__.py", line 707, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-_g5xah0z-build/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-m23zgd62-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/../include/site/python3.6/Pillow" failed with error code 1 in /private/tmp/pip-_g5xah0z-build/

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

These open issues may also help:
Error upgrading ocrmypdf to v5.4.1 https://github.com/jbarlow83/homebrew-ocrmypdf/issues/4
error installing https://github.com/jbarlow83/homebrew-ocrmypdf/issues/3
Error when installing https://github.com/jbarlow83/homebrew-ocrmypdf/issues/1

Again, I'd be happy to try other troubleshooting steps or provide any information that might be helpful.

jbarlow83 commented 6 years ago

I think there's a Homebrew core bug/missing feature that destroys the temporary debug files named things like /private/tmp/pip-_g5xah0z-build even when --keep-tmp is issued. That is frustrating, but perhaps they are retained in failures. (I can't replicate the failure on my machine or five different versions of macOS on Travis).

Could you send me the contents of ~/Library/Logs/Homebrew/ocrmypdf? Possibly 06.pip will be informative.

joewiz commented 6 years ago

Interesting. I'm seeing it on my 3 machines - Mac Mini, iMac, and MacBook Pro, all running current macOS. Here's a zip file containing my ~/Library/Logs/Homebrew/ocrmypdf: ocrmypdf.zip.

jbarlow83 commented 6 years ago

06.pip showed this error.

   running build_ext

    The headers or library files could not be found for zlib,
    a required dependency when compiling Pillow from source.

    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html

    Traceback (most recent call last):
      File "/private/tmp/pip-_g5xah0z-build/setup.py", line 744, in <module>
        zip_safe=not debug_build(), )
      File "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/local/Cellar/ocrmypdf/5.4.1/libexec/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build_ext.py", line 339, in run
        self.build_extensions()
      File "/private/tmp/pip-_g5xah0z-build/setup.py", line 545, in build_extensions
        raise RequiredDependencyException(f)
    __main__.RequiredDependencyException: zlib

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/tmp/pip-_g5xah0z-build/setup.py", line 756, in <module>
        raise RequiredDependencyException(msg)
    __main__.RequiredDependencyException:

    The headers or library files could not be found for zlib,
    a required dependency when compiling Pillow from source.

    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html

I updated ocrmypdf.rb to depend on zlib (even though libpng should pull it in). Give that a try.

jbarlow83 commented 6 years ago

@joewiz Another user reported that my most recent change fixed their issue. Let me know if it works for you.

joewiz commented 6 years ago

@jbarlow83 I think that did it! I did a brew update and then this, which looks like a fully successful installation!

$ brew reinstall ocrmypdf
==> Reinstalling jbarlow83/ocrmypdf/ocrmypdf 
==> Installing dependencies for jbarlow83/ocrmypdf/ocrmypdf: zlib
==> Installing jbarlow83/ocrmypdf/ocrmypdf dependency: zlib
==> Downloading https://homebrew.bintray.com/bottles/zlib-1.2.11.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring zlib-1.2.11.high_sierra.bottle.tar.gz
==> Caveats
This formula 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.

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/zlib/lib
    CPPFLAGS: -I/usr/local/opt/zlib/include
For pkg-config to find this software you may need to set:
    PKG_CONFIG_PATH: /usr/local/opt/zlib/lib/pkgconfig

==> Summary
🍺  /usr/local/Cellar/zlib/1.2.11: 12 files, 373.5KB
==> Installing jbarlow83/ocrmypdf/ocrmypdf
==> Downloading https://files.pythonhosted.org/packages/2c/d5/9f2bb9651e2ab693e7556f0a5689f87f605d0eda078513cbc32925c50f45/ocrmypdf-5.4.1.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf-5.4.1.tar.gz
HOMEBREW_PROCESSOR:Intel
HOMEBREW_DEV_CMD_RUN:1
HOMEBREW_USER_AGENT:Homebrew/1.3.6-107-g8be34a9 (Macintosh; Intel Mac OS X 10.13)
GEM_OLD_HOME:
TERM_PROGRAM:Apple_Terminal
HOMEBREW_COMMAND_DEPTH:1
HOMEBREW_LIBRARY:/usr/local/Homebrew/Library
SHELL:/bin/bash
TERM:xterm-256color
HOMEBREW_OS_VERSION:macOS 10.13
HOMEBREW_REPOSITORY:/usr/local/Homebrew
Apple_PubSub_Socket_Render:/private/tmp/com.apple.launchd.iP5vgR0Dzn/Render
HOMEBREW_ENABLE_AUTO_UPDATE_MIGRATION:1
TERM_PROGRAM_VERSION:400
TERM_SESSION_ID:85F3B80F-7ACF-4E78-91DC-23692BE89710
HOMEBREW_RUBY_PATH:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/current/bin/ruby
HOMEBREW_GIT_CONFIG_FILE:/usr/local/Homebrew/.git/config
SAXON_HOME:/usr/local/opt/saxon
USER:joe
SSH_AUTH_SOCK:/private/tmp/com.apple.launchd.nwwYAhKnjw/Listeners
HOMEBREW_NO_AUTO_UPDATE:1
HOMEBREW_ANALYTICS_USER_UUID:9E9F5121-92DF-46CF-B1AC-AF31D4F76E97
HOMEBREW_CACHE:/Users/joe/Library/Caches/Homebrew
HOMEBREW_USER_AGENT_CURL:Homebrew/1.3.6-107-g8be34a9 (Macintosh; Intel Mac OS X 10.13) curl/7.54.0
PATH:/usr/local/Homebrew/Library/Homebrew/shims/super:/usr/local/opt/pkg-config/bin:/usr/local/opt/libpng/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/libtiff/bin:/usr/local/opt/leptonica/bin:/usr/local/opt/tesseract/bin:/usr/local/opt/little-cms2/bin:/usr/local/opt/ghostscript/bin:/usr/local/opt/lame/bin:/usr/local/opt/x264/bin:/usr/local/opt/ffmpeg/bin:/usr/local/opt/unpaper/bin:/usr/local/opt/qpdf/bin:/usr/local/opt/openjpeg/bin:/usr/local/opt/freetype/bin:/usr/local/opt/webp/bin:/usr/local/opt/python3/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/python3/Frameworks/Python.framework/Versions/3.6/bin
HOMEBREW_EDITOR:nano
HOMEBREW_BREW_FILE:/usr/local/bin/brew
PWD:/Users/joe/workspace/exist
HOMEBREW_MACOS_VERSION:10.13
JAVA_HOME:/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
EDITOR:nano
SAXON_CP:/usr/local/opt/saxon/libexec
HOMEBREW_ANALYTICS_ID:UA-76679469-1
LANG:en_US.UTF-8
XPC_FLAGS:0x0
HOMEBREW_PRODUCT:Homebrew
XPC_SERVICE_NAME:0
SHLVL:1
HOME:/private/tmp/ocrmypdf-20171024-81010-85oemp/ocrmypdf-5.4.1/.brew_home
GEM_OLD_PATH:
HOMEBREW_PREFIX:/usr/local
LOGNAME:joe
HOMEBREW_VERSION:1.3.6-107-g8be34a9
PROMPT_COMMAND:echo -ne "\033]0;${PWD/$HOME/~}\007"
HOMEBREW_CELLAR:/usr/local/Cellar
HOMEBREW_CURL:/usr/bin/curl
DISPLAY:/private/tmp/com.apple.launchd.0trsapNwNP/org.macosforge.xquartz:0
HOMEBREW_SYSTEM:Macintosh
__CF_USER_TEXT_ENCODING:0x1F5:0x0:0x0
HOMEBREW_ERROR_PIPE:/tmp/homebrew20171024-80831-yv7hyo/socket
OBJC:clang
CC:clang
HOMEBREW_CC:clang
OBJCXX:clang++
CXX:clang++
HOMEBREW_CXX:clang++
MAKEFLAGS:-j8
PKG_CONFIG_PATH:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/leptonica/lib/pkgconfig:/usr/local/opt/tesseract/lib/pkgconfig:/usr/local/opt/little-cms2/lib/pkgconfig:/usr/local/opt/x264/lib/pkgconfig:/usr/local/opt/ffmpeg/lib/pkgconfig:/usr/local/opt/qpdf/lib/pkgconfig:/usr/local/opt/openjpeg/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/webp/lib/pkgconfig:/usr/local/opt/zlib/lib/pkgconfig:/usr/local/opt/python3/lib/pkgconfig
PKG_CONFIG_LIBDIR:/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.13:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
HOMEBREW_CCCFG:sa
HOMEBREW_OPTIMIZATION_LEVEL:Os
HOMEBREW_OPT:/usr/local/opt
HOMEBREW_TEMP:/tmp
HOMEBREW_OPTFLAGS:-march=native
HOMEBREW_ARCHFLAGS:
CMAKE_PREFIX_PATH:/usr/local/opt/libffi:/usr/local/opt/zlib:/usr/local
CMAKE_FRAMEWORK_PATH:/usr/local/opt/python3/Frameworks:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks
CMAKE_INCLUDE_PATH:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/apache2:/opt/X11/include:/opt/X11/include/freetype2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH:/opt/X11/lib:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
ACLOCAL_PATH:/usr/local/share/aclocal:/opt/X11/share/aclocal
HOMEBREW_ISYSTEM_PATHS:/usr/local/include:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/apache2:/opt/X11/include:/opt/X11/include/freetype2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
HOMEBREW_INCLUDE_PATHS:/usr/local/opt/zlib/include
HOMEBREW_LIBRARY_PATHS:/usr/local/opt/libffi/lib:/usr/local/opt/zlib/lib:/usr/local/lib:/opt/X11/lib:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
HOMEBREW_DEPENDENCIES:pkg-config,libffi,libpng,jpeg,libtiff,leptonica,tesseract,little-cms2,ghostscript,lame,x264,xvid,ffmpeg,unpaper,qpdf,openjpeg,freetype,jpeg,webp,zlib,python3
HOMEBREW_FORMULA_PREFIX:/usr/local/Cellar/ocrmypdf/5.4.1
HOMEBREW_SDKROOT:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
MACOSX_DEPLOYMENT_TARGET:10.13
SDKROOT:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
HOMEBREW_PREFER_CLT_PROXIES:1
TMPDIR:/tmp
TEMP:/tmp
TMP:/tmp
_JAVA_OPTIONS: -Duser.home=/Users/joe/Library/Caches/Homebrew/java_cache
CURL_HOME:/Users/joe
SETUPTOOLS_SCM_PRETEND_VERSION:v5.4.1
==> Downloading https://files.pythonhosted.org/packages/d4/0c/9840c08189e030873387a73b90ada981885010dd9aea134d6de30cd24cb8/virtualenv-15.1.0.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--homebrew-virtualenv-15.1.0.tar.gz
==> python3 -c import setuptools... --no-user-cfg install --prefix=/tmp/ocrmypdf--homebrew-virtualenv-20171024-81010-20ccvd/target --single-version-externally-managed --r
==> python3 -s /tmp/ocrmypdf--homebrew-virtualenv-20171024-81010-20ccvd/target/bin/virtualenv -p python3 /usr/local/Cellar/ocrmypdf/5.4.1/libexec
==> Downloading https://files.pythonhosted.org/packages/c9/70/89b68b6600d479034276fed316e14b9107d50a62f5627da37fafe083fde3/cffi-1.11.2.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--cffi-20171024-81010-7p03nc/cffi-1.11
brew upgrade==> Downloading https://files.pythonhosted.org/packages/7e/a2/4f06081f674920be757d894b4bab874e6a3b5227e730cb7618430b366e69/img2pdf-0.2.4.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--img2pdf-20171024-81010-1yki3v1/img2p
==> Downloading https://files.pythonhosted.org/packages/35/17/c15d41d5a8f8b98cc3df25eb00c5cee76193114c78e5674df6ef4ac92647/olefile-0.44.zip
Already downloaded: /Users/joe/Library/Caches/Homebrew/ocrmypdf--olefile-0.44.zip
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--olefile-20171024-81010-15xh38a/olefi
==> Downloading https://files.pythonhosted.org/packages/e0/82/ec499c78bfe4ecaa91c2f3000040451d187ed0a816d58b8543e29c48827f/Pillow-4.3.0.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--Pillow-20171024-81010-zszo4r/Pillow-
==> Downloading https://files.pythonhosted.org/packages/8c/2d/aad7f16146f4197a11f8e91fb81df177adcc2073d36a17b1491fd09df6ed/pycparser-2.18.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--pycparser-20171024-81010-1wed876/pyc
==> Downloading https://files.pythonhosted.org/packages/b4/01/68fcc0d43daf4c6bdbc6b33cc3f77bda531c86b174cac56ef0ffdb96faab/PyPDF2-1.26.0.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--PyPDF2-20171024-81010-sy48ir/PyPDF2-
==> Downloading https://files.pythonhosted.org/packages/87/f9/53b34c58d3735a6df7d5c542bf4de60d699cfa6035e113ca08b3ecdcca3f/reportlab-3.4.0.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--reportlab-20171024-81010-jgzt7u/repo
==> Downloading https://files.pythonhosted.org/packages/97/fe/12445c6793350ab5dbf76cb87a122b9e9aab9a9040a2801004806d985216/ruffus-2.6.3.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf--ruffus-20171024-81010-q5fxfi/ruffus-
==> /usr/local/Cellar/ocrmypdf/5.4.1/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/ocrmypdf-20171024-81010-85oemp/ocrmypdf-5.4.1
🍺  /usr/local/Cellar/ocrmypdf/5.4.1: 1,575 files, 20MB, built in 57 seconds
joewiz commented 6 years ago

Thank you so much!

joewiz commented 6 years ago

Should anyone come across this issue, homebrew caskroom now has a recipe for MacTeX without Ghostscript (https://github.com/caskroom/homebrew-cask/pull/38190), so now you can have your cake and eat it too:

brew install ghostscript && brew cask install mactex-no-ghostscript

jbarlow83 commented 6 years ago

Thanks. I'll update the formula to declare the conflict with mactex.