jbarlow83 / homebrew-ocrmypdf

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

Cannot install `ocrmypdf` for the following reasons #6

Closed atanasj closed 6 years ago

atanasj commented 6 years ago

When trying to install ocrmypdf, I get an error. Please see below for the extract.

atanass-mbp:~ atanas___$ brew install ocrmypdf
==> Installing ocrmypdf from jbarlow83/ocrmypdf
==> Downloading https://files.pythonhosted.org/packages/c2/69/d250b73cab334a0760
Already downloaded: /Users/atanas___/Library/Caches/Homebrew/ocrmypdf-5.5.tar.gz
==> Downloading https://files.pythonhosted.org/packages/d4/0c/9840c08189e0308733
Already downloaded: /Users/atanas___/Library/Caches/Homebrew/ocrmypdf--homebrew-virtualenv-15.1.0.tar.gz
==> python3 -c import setuptools... --no-user-cfg install --prefix=/tmp/ocrmypdf
Last 15 lines from /Users/atanas___/Library/Logs/Homebrew/ocrmypdf/01.python3:
python3
-c
import setuptools, tokenize
__file__ = 'setup.py'
exec(compile(getattr(tokenize, 'open', open)(__file__).read()
  .replace('\r\n', '\n'), __file__, 'exec'))
--no-user-cfg
install
--prefix=/tmp/ocrmypdf--homebrew-virtualenv-20180118-29983-4vfasj/target
--single-version-externally-managed
--record=installed.txt

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'setuptools'

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

Is there something I'm doing wrong?

jbarlow83 commented 6 years ago

Do you have homebrew python 3 and does pip3 say that setuptools is installed?

On Jan 17, 2018 18:17, "atanasj" notifications@github.com wrote:

When trying to install ocrmypdf, I get an error. Please see below for the extract.

atanass-mbp:~ atanas$ brew install ocrmypdf ==> Installing ocrmypdf from jbarlow83/ocrmypdf ==> Downloading https://files.pythonhosted.org/packages/c2/69/d250b73cab334a0760 Already downloaded: /Users/atanas/Library/Caches/Homebrew/ocrmypdf-5.5.tar.gz ==> Downloading https://files.pythonhosted.org/packages/d4/0c/9840c08189e0308733 Already downloaded: /Users/atanas/Library/Caches/Homebrew/ocrmypdf--homebrew-virtualenv-15.1.0.tar.gz ==> python3 -c import setuptools... --no-user-cfg install --prefix=/tmp/ocrmypdf Last 15 lines from /Users/atanas/Library/Logs/Homebrew/ocrmypdf/01.python3: python3 -c import setuptools, tokenize file = 'setup.py' exec(compile(getattr(tokenize, 'open', open)(file).read() .replace('\r\n', '\n'), file, 'exec')) --no-user-cfg install --prefix=/tmp/ocrmypdf--homebrew-virtualenv-20180118-29983-4vfasj/target --single-version-externally-managed --record=installed.txt

Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'setuptools'

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

Is there something I'm doing wrong?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jbarlow83/homebrew-ocrmypdf/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvcMy2FxloV63ZokYutVAArmERSGVNAks5tLqnDgaJpZM4RiSLf .

atanasj commented 6 years ago

There was some problem with python 3 and and pip3. I ran the command brew postinstall python that I found here: https://github.com/Homebrew/legacy-homebrew/issues/33897. This is resolved now, thanks for your help... and a great package!!

freddey commented 6 years ago

I had the same mistake what helped:

  1. Deinstall python and python 3 brew remove python // brew remove python3
  2. Neuinstallation von python 3 brew install python3
  3. install ocrmypdf brew install ocrmypdf

And it work! Greets Fred