Spaces:
Paused

Reverb commited on
Commit
5693ff7
·
1 Parent(s): 313ffe0

Fix: evict pip-installed trellis2 stub from sys.modules before loading vendored copy

Browse files

o_voxel's wheel METADATA lists trellis2 as a dependency, so pip installs a
PyPI trellis2 package that ends up in sys.modules with the wrong __path__.
importlib.import_module('.models', 'trellis2') then fails with ModuleNotFoundError
because it searches the PyPI package path, not our TRELLIS.2/trellis2/.

Fix: clear all trellis2/* entries from sys.modules after sys.path.insert so
the subsequent 'import trellis2' loads from our vendored directory.

1 file changed +6 -1
app.py+6-1