Trellis2 GGUF not installing properly
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
- copy basic workflow https://github.com/lightningpixel/modly-trellis2-gguf-extension#basic-workflow
- From Generate page I get the error attached.
- Per descructions in the error log I try the "Click Repair", the repair "runs" to finish but there is not progress reported.
- 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
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.
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
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:
Have fun. Deleted my install and will try some other approach.
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.
Trellis.2 GGUF setup now reports which wheel failed (since 1.0.9). Reopen with the Repair log if it still fails.