Clon1998 / mobileraker_companion

Companion for mobileraker, enabling push notification.
MIT License
209 stars 12 forks source link

The container fails to run with an error #30

Closed Maeians closed 1 year ago

Maeians commented 1 year ago

#Traceback (most recent call last): ? File "/opt/mobileraker/mobileraker.py", line 14, in / from snapshot_client import SnapshotClient B File "/opt/mobileraker/snapshot_client.py", line 3, in  from PIL import Image T File "/opt/venv/lib/python3.11/site-packages/PIL/Image.py", line 103, in # from . import _imaging as core VImportError: libjpeg.so.62: cannot open shared object file: No such file or directory #Traceback (most recent call last): ? File "/opt/mobileraker/mobileraker.py", line 14, in / from snapshot_client import SnapshotClient B File "/opt/mobileraker/snapshot_client.py", line 3, in  from PIL import Image T File "/opt/venv/lib/python3.11/site-packages/PIL/Image.py", line 103, in # from . import _imaging as core VImportError: libjpeg.so.62: cannot open shared object file: No such file or directory

Clon1998 commented 1 year ago

@mkuf can you comment on that? I think there is a Linux package that is missing in the image?

mkuf commented 1 year ago

Yes, the libjpeg62-turbo is missing in the runtime image. I created a PR for this: https://github.com/Clon1998/mobileraker_companion/pull/31

@Clon1998 Do you have a list of dependencies to linux packages that we should add to the runtime image?
I used the install script for reference when I created the dockerfile, its probably a good idea to also add this dependency to it.

Clon1998 commented 1 year ago

I don't, I did not even know that the Pillow lib requires that! Do you mind adding the package to the install script as well in your PR?

mkuf commented 1 year ago

Sure, I just added a simple function that calls apt to install the same dependencies as the dockerfile does.
It might be necessary to expand the package list in the future, but it should be sufficient for now.

-Markus

Clon1998 commented 1 year ago

@Maeians a new image of the container should be available shortly.

Maeians commented 1 year ago

@Maeians容器的新图像应该很快就会可用。

ok thank you very much looking forward to happy printing