-
Notifications
You must be signed in to change notification settings - Fork 591
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
AssertionError: you must install and use OCRopus with Python version 2.7 or later, but not Python 3.x #334
Comments
The problem is that ocropy needs Python 2.7 but numpy and scipy newest versions dropped Python 2.7 support. Maybe you can add the needed changes for 3.6+ support from: |
@amitdo So now what I need to do is download older versions of numpy and scipy to work ? |
I don't know. I don't think it's a good idea to use Python 2.7 anymore. Let's wait for @zuphilip response. |
For anyone who stumbles upon this in the future, as @amitdo said My problem was mainly the global version of Python I have on my system (windows) is Followed this tutorial that shows how to install another version of python (2.7) and the problem was solved when I downloaded the following executable In order to use the
I will not close this issue now, will be waiting for @zuphilip to see if support will be added for newer python versions because its better off. Goodluck. |
or in ubuntu 18.04, install tesseract, then gImageReader with a nice gui. One day, when this works with Python 3.x I can retest this again, thanks, have fun reading. |
As for Python 3.x support: There have been a few efforts, including a PR from last year that wasn't ultimately merged. The best ocropy variant is currently @bertsky's fork that is part of @cisocrgroup's |
Thanks for the hint, what would be its advantages compared to tesseract + gImageReader for example? Do you have a few interesting cases? Thanks in advance. |
I have used Python 2.7 virtual environment for installing
requirements.txt
But I got the following:So I ended up using Pythn 3.6.
I was able with
python 3.6
to installrequirements.txt
but when I try now to installsetu.py
I get the following error:So how can I use
python 2.7
and I'm not able to install therequirements.txt
for it ?The text was updated successfully, but these errors were encountered: