Xonshiz / comic-dl

Comic-dl is a command line tool to download manga and comics from various comic and manga sites. Supported sites : readcomiconline.to, mangafox.me, comic naver and many more.
https://github.com/Xonshiz/comic-dl
MIT License
538 stars 68 forks source link

[BUG] docker armv7 libjpeg.so.62 No such file or directory #310

Closed Generator closed 2 years ago

Generator commented 2 years ago

Description

Running docker image on armv7 with recommended alias, on armv7 end with error ImportError: libjpeg.so.62: cannot open shared object file: No such file or directory

Tested on amd64, downloads the comics without issues.

output:

comic_dl -i "https://www.comicextra.com/comic/zero-hour-crisis-in-time" --convert cbz --verbose
Traceback (most recent call last):
  File "/opt/comic-dl/cli.py", line 2, in <module>
    from comic_dl.__main__ import main
  File "/opt/comic-dl/comic_dl/__main__.py", line 12, in <module>
    from comic_dl.manga_eden import *
  File "/opt/comic-dl/comic_dl/manga_eden/__init__.py", line 4, in <module>
    from . import mangaChapterDownload
  File "/opt/comic-dl/comic_dl/manga_eden/mangaChapterDownload.py", line 9, in <module>
    from comic_dl import globalFunctions
  File "/opt/comic-dl/comic_dl/globalFunctions.py", line 14, in <module>
    import img2pdf
  File "/usr/local/lib/python3.8/site-packages/img2pdf.py", line 25, in <module>
    from PIL import Image, TiffImagePlugin, GifImagePlugin
  File "/usr/local/lib/python3.8/site-packages/PIL/Image.py", line 132, in <module>
    from . import _imaging as core
ImportError: libjpeg.so.62: cannot open shared object file: No such file or directory

Possible fix

Missing dependency libjpeg62-turbo (Debian Buster)

Xonshiz commented 2 years ago

Gotta check that. @darodi any clue what might be happening here?

darodi commented 2 years ago

@Xonshiz

I fixed the dependency issue on the base docker image on arm*. https://github.com/darodi/docker-py3.8-slim-buster-pikepdf/pull/1 github is building the last image (version 2022.04.19 will be latest). It takes 2-3hours to build. https://github.com/darodi/docker-py3.8-slim-buster-pikepdf/pkgs/container/docker-py3.8-slim-buster-pikepdf

Once available, you can change https://github.com/Xonshiz/comic-dl/blob/master/comic_dl/__version__.py for example to trigger a new docker build and push of comic-dl

Xonshiz commented 2 years ago

Amazing. I'll push an update in a few hours with some new addition. Thanks man!

darodi commented 2 years ago

There was a timeout during a part of the build. The build has been relaunched. Let's wait and see.

darodi commented 2 years ago

It was long but the build is now finally done.

Xonshiz commented 2 years ago

I didn't get time to add something worth in the push. I'll create a push by tomorrow most probably along with this.

Xonshiz commented 2 years ago

I've triggered a build for this. @Generator , please do try again and let us know. Feel free to re-open if the issue still persists. Thanks.