Closed niko-zvt closed 1 week ago
- Why is pymeshlab dependent on libGL.so.1 even when running in headless mode without any graphical user interface requirements?
Because pymeshlab is based on meshlab, which has a codebase that is not as modular as it could be. A huge refactoring (or rewriting) is required to remove this dependency. Moreover, some pymeshlab functions (or meshlab filters) use opengl to perform their computations (it would be easy to make these plugins 'optional', but it would be pointless since pymeshlab itself needs opengl).
- Is there a way to configure or compile pymeshlab to work in an environment without OpenGL and the X-windows system, or is this library inherently dependent on these components?
Not at the moment, unfortunately.
@alemuntoni , Thanks for your reply. Yes, indeed, I was able to assemble a container that has all the required dependencies and everything worked.
I am giving a list of packages that I use. The list may be too extensive, perhaps some of this is not necessary. I'll leave it here if someone needs to run pymeshlab
in a container without a GUI.
software-properties-common
gcc
make
mesa-common-dev
libglu1-mesa-dev
ninja-build
patchelf
libgmp-dev
libmpfr-dev
libxerces-c-dev
libtbb-dev
Hi,
I've encountered an issue when trying to use
pymeshlab
in apython:3.10
container that does not include OpenGL or the X-windows system. Here's the error message:This error does not occur when running the container with the X-windows system, and
pymeshlab
works fine in that setup.Questions:
pymeshlab
dependent onlibGL.so.1
even when running in headless mode without any graphical user interface requirements?pymeshlab
to work in an environment without OpenGL and the X-windows system, or is this library inherently dependent on these components?Context:
pymeshlab
for processing tasks that do not require rendering or GUI.I appreciate any insights into why this dependency is required and possible solutions for running
pymeshlab
in a headless container environment.I also found a script to initialize the environment: PyMeshLab > scripts > Linux > 0_setup_env.sh
Thanks!