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

make all fails due to tensorflow #219

Closed
wlbocr opened this issue Nov 18, 2020 · 10 comments · Fixed by #289
Closed

make all fails due to tensorflow #219

wlbocr opened this issue Nov 18, 2020 · 10 comments · Fixed by #289

Comments

@wlbocr
Copy link

wlbocr commented Nov 18, 2020

I am trying to install OCR-D Software. The installation fails during the "make all"-step because tensorflow is not compatible with python 3.8. :
ERROR: Could not find a version that satisfies the requirement tensorflow-gpu==1.15.* (from ocrd-cor-asv-ann==0.1.6) (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.4.0rc0, 2.4.0rc1)
ERROR: No matching distribution found for tensorflow-gpu==1.15.* (from ocrd-cor-asv-ann==0.1.6)

Python version will be updated on the step before "sudo make deps-ubuntu":
python3 is already the newest version (3.8.2-0ubuntu2).

How to fix this problem?

@kba
Copy link
Member

kba commented Nov 18, 2020

tensorflow does not provide packages of tensorflow < 2.2 for Python 3.8. That is why we're recommending deployment on Ubuntu 18.04 because Python is still at 3.7 for which packages are available of all relevant tensorflow versions.

So, I recommend either downgrading Python, downgrading Ubuntu from 20.04 to 18.04 or using the docker deployment option.

See the wiki article on Ubuntu installation for a recipe to downgrade Python.

@wlbocr
Copy link
Author

wlbocr commented Nov 18, 2020

OCD-D installation via Docker gives the following error message:

sudo snap install docker
docker pull ocrd/all:maximum
Got permission denied while trying to connect to the Docker daemon socket at uni
x:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/cr eate?fromImage=ocrd%2Fall&tag=maximum: dial unix /var/run/docker.sock: connect:
permission denied

@kba
Copy link
Member

kba commented Nov 18, 2020

OCD-D installation via Docker gives the following error message:

sudo snap install docker
docker pull ocrd/all:maximum
Got permission denied while trying to connect to the Docker daemon socket at uni
x:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/cr eate?fromImage=ocrd%2Fall&tag=maximum: dial unix /var/run/docker.sock: connect:
permission denied

Are you in the docker group? sudo usermod -a -G docker YOURUSERNAME, log out/log in and try again? If you need more support debugging, feel free to drop by the chat.

@kba
Copy link
Member

kba commented Dec 2, 2020

Did you manage to solve this @wlbocr?

@wlbocr
Copy link
Author

wlbocr commented Dec 2, 2020

The docker installation actually worked so far. The installation is not yet complete. On the last step I got the massage:
open /var/snap/docker/common/var-lib-docker/tmp/GetImageBlob642383193: no such file or directory

@bertsky
Copy link
Collaborator

bertsky commented Dec 28, 2020

This looks like the snap method did not install Docker properly. I have no experience with snap. The recommended way for Docker installation on Ubuntu is via 3rd-party apt source.

@kba
Copy link
Member

kba commented Dec 29, 2020

The docker installation actually worked so far. The installation is not yet complete. On the last step I got the massage:
open /var/snap/docker/common/var-lib-docker/tmp/GetImageBlob642383193: no such file or directory

Does the problem persist after a reboot or sudo systemctl restart docker?

@Aysoltan
Copy link

I tryed different ways to solve the problem and only one helped: the new installation of Ubuntu Bionic 18.04 (LTS) -> manualy installation ocr-d

@stweil
Copy link
Collaborator

stweil commented Mar 24, 2021

@Aysoltan, a manual installation of Python 3.7 would also help. You can then build OCR-D using Python 3.7 for which the required versions of Tensorflow exist.

@bertsky
Copy link
Collaborator

bertsky commented Jun 16, 2021

Duplicate of #235 (but discussions are complementary so far).

@bertsky bertsky linked a pull request Feb 22, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

5 participants