Coder Social home page Coder Social logo

Comments (2)

probonopd avatar probonopd commented on August 27, 2024 1

Hello @jeanslack. Thanks for making an AppImage.

This seems to be an issue with the contents of the AppImage, not with appimage.github.io which this repository is about.

It appears that the Python inside the AppImage can't find the libtiff.so.5 library.

Inspecting the AppImage, that library seems not to be bundled at all. The only libtiff library that is bundled seems to be version 6.

~/Downloads/Videomass-4.0.10-x86_64.AppImage --appimage-extract

find squashfs-root | grep libtiff
squashfs-root/opt/python3.9/lib/python3.9/site-packages/Pillow.libs/libtiff-b9364ff1.so.6.0.0

ls -lh squashfs-root/opt/python3.9/lib/python3.9/site-packages/Pillow.libs/libtiff-b9364ff1.so.6.0.0
-rwxr-xr-x  1 user  user   677K Mar 25 13:29 squashfs-root/opt/python3.9/lib/python3.9/site-packages/Pillow.libs/libtiff-b9364ff1.so.6.0.0

So it seems like something in the AppImage is requiring libtiff.so.5, and for that reason libtiff.so.5 also needs to be put inside the AppImage, into a location from where the binary or library that needs it can find it.

Let's see what needs libtiff.so.5:

grep -r libtiff.so.5 squashfs-root 
Binary file squashfs-root/opt/python3.9/lib/python3.9/site-packages/wx/libwx_gtk3u_core-3.1.so.5 matches

So it is libwx_gtk3u_core-3.1.so.5 that needs libtiff.so.5.

Let's see what else this library needs:

strings squashfs-root/opt/python3.9/lib/python3.9/site-packages/wx/libwx_gtk3u_core-3.1.so.5 | grep "\.so."
libgtk-3.so.0
libgdk-3.so.0
libpangocairo-1.0.so.0
libpango-1.0.so.0
libcairo.so.2
libgdk_pixbuf-2.0.so.0
libgio-2.0.so.0
libgobject-2.0.so.0
libglib-2.0.so.0
libX11.so.6
libXxf86vm.so.1
libSM.so.6
libnotify.so.4
libXtst.so.6
libpangoft2-1.0.so.0
libfontconfig.so.1
libSDL2-2.0.so.0
libpng16.so.16
libjpeg.so.8
libtiff.so.5
libwx_baseu-3.1.so.5
libm.so.6
libstdc++.so.6
libgcc_s.so.1
libpthread.so.0
libc.so.6
libwx_gtk3u_core-3.1.so.5

All of those need to be bundled inside the AppImage, unless one can safely assume that all target systems (Linux distributions) ship them by default.

It seems like the AppImage is missing some libraries from which one cannot assume that all target systems (Linux distributions) ship them by default.

The overall conceptual issue here is that https://github.com/jeanslack/Videomass/blob/master/develop/tools/AppImage_build.sh takes https://github.com/niess/python-appimage/ (good, as it comes with the dependency libraries that it needs) but then uses pip install to install wxPython4. I am not sure whether and how this is suppose to install the non-Python dependencies of wxPython4. Maybe it would be best to ask https://github.com/niess/ who is much more knowledgable about these things.

Also, there are specific deployment tools for Python applications which can maybe take the manual work out of this.

Hope this helps.

Closing here, since not an appimage.github.io issue. For general discussions, please visit https://github.com/AppImage/AppImageKit/discussions.

from appimage.github.io.

jeanslack avatar jeanslack commented on August 27, 2024

Thank you very much @probonopd
Surely your information will be really useful for me to solve this issue.
Sorry if I posted the problem on the wrong page.

from appimage.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.