-
Notifications
You must be signed in to change notification settings - Fork 30
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
Eynollah on Python 3.8 #24
Comments
Hi Ignacio! Yes this is quite painful. See also OCR-D/ocrd_all#219, OCR-D/ocrd_all#235 - these are getting more. A problem with migrating to TF2 is that besides API changes, it appears models will need to be re-trained (takes weeks for some models in our case), then tested for regressions etc. So it is on our agenda, but don't expect a very quick solution. Sorry :/ |
If you want to try out more OCR-D tools, then you're really best of with a dedicated Python 3.7 environment for that because there are other processors that will not work with 3.8. And since tensorflow decided not to build tensorflow 1.15 packages for python 3.8, we're pretty much stuck at 3.7 until we find the time and resources to retrain&upgrade all the tools, which as @cneud noted, might be a long while. |
https://github.com/OCR-D/ocrd-website/wiki/OCR-D-on-Debian-and-Ubuntu#installation-of-python-37 has instructions for installing Python 3.7. |
I'm trying to install it with Ubuntu 18.04 (fresh schroot, native) with python 3.6, python 3.7 - no combination works:
|
@jbarth-ubhd Which version of pip are you using - or can you update pip and try again? tensorflow-gpu 1.15.5 is available on pypi: https://pypi.org/project/tensorflow-gpu/1.15.5/ |
|
That's a bit too old ;-) Can you try to update pip? I think a version of pip >19 is needed to find/fetch tensorflow-gpu 1.15.5. |
That's |
|
Thanks! |
could something like |
It could but then you still have to run it twice because the first time round you're still using the old pip. It's a good idea in general to do |
I'd like to note that when creating a Python virtualenv, you can specify the Python interpreter to use, i.e.:
or, using mkvirtualenv (if you happen to prefer virtualenvwrapper, like me):
My Linux system (Fedora Linux 32) offers to install older Python interpreters like Python 3.7 in addition to the default version (3.8), so this method is easily available to me. |
I agree with @kba. I would consider upgrading pip a best practice to do before anything else and the addition to |
Could you maybe add a note to the README about supported Python version(s)? And perhaps update the setup.py file too? I spent some time trying to install and run eynollah, only to now find out that the errors may have come from using Python 3.8 and newer through this issue. Or is this no longer an issue? |
Hi @bencomp! I'll make a note to update the README and setup.py - but actually the current master branch should in principle also work with Python 3.8, since we upgraded the tensorflow 1.x dependency that was mainly causing this. Can you share more details on the issues you encountered and perhaps make a new issue for that? |
Thanks, @cneud! Indeed installing went fine on Python 3.10 and 3.8, so my issue has nothing to do with the Python version. I'll look into opening a new issue. |
Since the original problem was solved by the upgrade to tf2, this has not been an issue anymore. The supported Python version has also been added to the readme. We will deal with Python >3.8 asap, but I will close here. |
Hi,
Eynollah's requirements include Tensorflow < 2. This option is not suppored on Python 3.8+. It will work on 3.7, but I'd prefer not install a dedicated environment for this. Will it break with a newer version? Do you have plans for upgrading it to TF 2.0+?
Thank you.
The text was updated successfully, but these errors were encountered: