doctr icon indicating copy to clipboard operation
doctr copied to clipboard

Cannot run doctr with Docker

Open fharper opened this issue 3 years ago • 3 comments

🐛 Bug

I cannot build the doctr Docker image. I get an error (see attached video) when the requirements are being installed.

To Reproduce

Steps to reproduce the behaviour:

  1. Build the Docker image
  2. Profit!

Expected behavior

Being able to use doctr with the Dockerfile provided

Environment

OS: Mac OSX 11.5.2 on a M1 chip (it shouldn't change anything since the pip install runs inside the container) Docker: 20.10.8, build 3967b7

https://user-images.githubusercontent.com/1170989/133692402-e949aa2f-6338-4d30-a2df-85accb62ccdb.mp4

d

fharper avatar Sep 16 '21 20:09 fharper

Hi @fharper,

Thanks for reporting this! To make sure I get the root problem correctly here, can you confirm that you are able to install DocTR outside of Docker with the same setup?

While it's true your setup is generally not the limiting factor for OS compatibility via Docker, there are cases, I have personally experienced, where it's not possible (trying to build an image for an ARM chip while yours isn't). So my guess is that the base installation outside of Docker isn't working because you would need the ARM wheels for all dependencies.

If that's the case, I'll investigate this in #430 shortly!

fg-mindee avatar Sep 17 '21 10:09 fg-mindee

You are right, I cannot even install the requirements on my M1 MacBook. I created another issue (#480) for it as #430 is focussing on arm for low powered devices, while the M1 processor is arm64: AFAIK, it will be two different built, and does not need the same requirements/versions.

fharper avatar Sep 17 '21 13:09 fharper

Let's first address #480, I'm rather confident that if it gets fixed, then resolving this issue will be casual :)

fg-mindee avatar Sep 17 '21 14:09 fg-mindee

Hi @fharper can we close this ? :)

felixdittrich92 avatar Sep 10 '22 18:09 felixdittrich92

Closing this as #480 is the root cause :+1:

frgfm avatar Sep 16 '22 10:09 frgfm