modly icon indicating copy to clipboard operation
modly copied to clipboard

Trellis2 GGUF not installing properly

Open Bazmundi opened this issue 3 months ago • 5 comments

Which official extension?

Trellis2 GGUF from Modly page

Describe the bug

Seems aking to https://github.com/lightningpixel/modly/issues/129

But there's been multiple stabs at fixing https://github.com/lightningpixel/modly/issues/129 and that is aqainst an older version of modly

Seems the extension is missing cumesh module.

Steps to reproduce

  1. copy basic workflow https://github.com/lightningpixel/modly-trellis2-gguf-extension#basic-workflow
  2. From Generate page I get the error attached.
  3. Per descructions in the error log I try the "Click Repair", the repair "runs" to finish but there is not progress reported.
  4. Try generating again but get the error again.

Modly version

0.4.1

Operating system

Ubuntu

GPU

RTX4080

Screenshots & logs

Error: Traceback (most recent call last): File "/tmp/.mount_Modly-cISyU3/resources/api/routers/generation.py", line 154, in _run_generation gen = await loop.run_in_executor(None, generator_registry.get_active) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/asterion/.config/Modly/python-embed/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.mount_Modly-cISyU3/resources/api/services/generator_registry.py", line 253, in get_active gen.load() File "/tmp/.mount_Modly-cISyU3/resources/api/services/extension_process.py", line 263, in load raise RuntimeError(msg.get("traceback") or msg.get("message")) RuntimeError: Traceback (most recent call last): File "/home/asterion/Documents/Modly/extensions/trellis2/generator.py", line 1338, in _ensure_trellis2_gguf from trellis2_gguf.pipelines import Trellis2ImageTo3DPipeline # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/asterion/Documents/Modly/extensions/trellis2/venv/lib/python3.11/site-packages/trellis2_gguf/pipelines/init.py", line 16, in getattr module = importlib.import_module(f".{module_name}", name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.mount_Modly-cISyU3/resources/python-embed/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/asterion/Documents/Modly/extensions/trellis2/venv/lib/python3.11/site-packages/trellis2_gguf/pipelines/trellis2_image_to_3d.py", line 10, in from ..representations import Mesh, MeshWithVoxel File "/home/asterion/Documents/Modly/extensions/trellis2/venv/lib/python3.11/site-packages/trellis2_gguf/representations/init.py", line 18, in getattr module = importlib.import_module(f".{module_name}", name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.mount_Modly-cISyU3/resources/python-embed/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/asterion/Documents/Modly/extensions/trellis2/venv/lib/python3.11/site-packages/trellis2_gguf/representations/mesh/init.py", line 1, in from .base import Mesh, MeshWithVoxel, MeshWithPbrMaterial, TextureFilterMode, TextureWrapMode, AlphaMode, PbrMaterial, Texture File "/home/asterion/Documents/Modly/extensions/trellis2/venv/lib/python3.11/site-packages/trellis2_gguf/representations/mesh/base.py", line 4, in import cumesh ModuleNotFoundError: No module named 'cumesh'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/tmp/.mount_Modly-cISyU3/resources/api/runner.py", line 153, in main gen.load() File "/home/asterion/Documents/Modly/extensions/trellis2/generator.py", line 160, in load self._ensure_trellis2_gguf() File "/home/asterion/Documents/Modly/extensions/trellis2/generator.py", line 1340, in _ensure_trellis2_gguf raise RuntimeError( RuntimeError: [Trellis2GGUFGenerator] trellis2_gguf not found. Click Repair on the Models page to re-run setup.py.

Confirmation

  • [x] I have searched existing issues and this has not been reported yet.
  • [x] I can reproduce this on the latest version of Modly.

Bazmundi avatar Aug 18 '26 03:08 Bazmundi

So, I decided to use TripoSG instead. The generation wizarded reported TripoSG removing background then went into the mesh generation then a few moment later it raised an exception, then reported what I had above (so still reporting Trellis exception). So you've go some problems tidying up in the code post exceptions. I tried running again, same problem. I repaired the TripoSG node, the hit refres on the workflow canvas. Still got the TripoSG exception but reported this time as:

Error: Error: Error: Something went wrong installing the "sharp" module

Module did not self-register: '/home/asterion/.config/Modly/builtin-extensions/mesh-optimizer/node_modules/sharp/build/Release/sharp-linux-x64.node'.

Possible solutions:

  • Using worker threads? See https://sharp.pixelplumbing.com/install#worker-threads
  • Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"
  • Install for the current linux-x64 runtime: "npm install --platform=linux --arch=x64 sharp"
  • Consult the installation documentation: https://sharp.pixelplumbing.com/install

Bazmundi avatar Aug 18 '26 03:08 Bazmundi

Closed Modly and reopened, reran and got: AxiosError: Request failed with status code 400

Tried repairing the TripoSG node got the following in the TriposSG config panel:

Image

Bazmundi avatar Aug 18 '26 03:08 Bazmundi

Have fun. Deleted my install and will try some other approach.

Bazmundi avatar Aug 18 '26 03:08 Bazmundi

The Linux CUDA wheels are built for glibc 2.35 or newer (Ubuntu 22.04+). Until now, a wheel pip refused was only logged and setup still reported success. Since 1.0.9, setup fails and names the wheel that could not be installed, with a hint when the system glibc is too old.

Could you click Repair on Trellis.2 GGUF and paste the setup log if it still fails? Also, which Ubuntu version are you on (lsb_release -a)?

The "sharp" / TripoSG errors in your follow-up are a separate problem in the mesh-optimizer extension.

Lorchie avatar Oct 18 '26 14:10 Lorchie

Trellis.2 GGUF setup now reports which wheel failed (since 1.0.9). Reopen with the Repair log if it still fails.

lightningpixel avatar Nov 14 '26 19:11 lightningpixel