Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eror on pip install PythonMagick #26

Closed
liber145 opened this issue Feb 14, 2017 · 2 comments
Closed

Eror on pip install PythonMagick #26

liber145 opened this issue Feb 14, 2017 · 2 comments

Comments

@liber145
Copy link

PythonMagick is a required package for doc2text. I installed it through pip.

(doc2txt) ➜  Programs pip install PythonMagick
Collecting PythonMagick
  Could not find a version that satisfies the requirement PythonMagick (from versions: )
No matching distribution found for PythonMagick

Anyone knows what's wrong with it...thanks.

@liber145
Copy link
Author

liber145 commented Feb 14, 2017

Further, my system is OSX El Captian 10.11.6. And it could be installed successfully in an Ubuntu desktop by apt-get install python-pythonmagick.

@liber145
Copy link
Author

liber145 commented Feb 14, 2017

Oh, I missed the statement that this works on ubuntu16.04 in ReadMe. I will transfer work to ubuntu. More, I just test it on docs/assets/images/news-button.png.

>>> import doc2text
>>> doc = doc2text.Document(lang="eng")
>>> doc.read('./news-button.png')
>>> doc.process()
>>> doc.extract_text()
>>> text = doc.get_text()
>>> text
'Ivy-0n-'
>>> exit()

And I have executed apt-get install tesseract-ocr-eng to install language package. Could you show what I have missed.

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

No branches or pull requests

1 participant