Closed stf6 closed 5 months ago
i have the same bug, but can"t sovle it? how can i do this
Ok, found the isolation issue. There is an issue with another project - vispy - which fails to import. Regardless of this failure, it should not cascade to this project and break it, if you are not using inpainting (slow mesh thing). So I tweaked the code, now failing vispy should not cause issues for the rest of the functionality.
unable to install in sagemaker studio lab complete error message :
*** Error loading script: depthmap.py Traceback (most recent call last): File "/home/studio-lab-user/asd/modules/scripts.py", line 527, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/home/studio-lab-user/asd/modules/script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/studio-lab-user/asd/extensions/stable-diffusion-webui-depthmap-script/scripts/depthmap.py", line 8, in
from src import common_ui
File "/home/studio-lab-user/asd/extensions/stable-diffusion-webui-depthmap-script/src/common_ui.py", line 6, in
from src import backbone, video_mode
File "/home/studio-lab-user/asd/extensions/stable-diffusion-webui-depthmap-script/src/video_mode.py", line 8, in
from src import core
File "/home/studio-lab-user/asd/extensions/stable-diffusion-webui-depthmap-script/src/core.py", line 27, in
from inpaint.mesh import write_mesh, read_mesh, output_3d_photo
File "/home/studio-lab-user/asd/extensions/stable-diffusion-webui-depthmap-script/inpaint/mesh.py", line 12, in
from vispy import scene, io
File "/home/studio-lab-user/.conda/envs/default/lib/python3.10/site-packages/vispy/init.py", line 27, in
from .util import config, set_log_level, keys, sys_info # noqa
File "/home/studio-lab-user/.conda/envs/default/lib/python3.10/site-packages/vispy/util/init.py", line 14, in
from . import fonts # noqa
File "/home/studio-lab-user/.conda/envs/default/lib/python3.10/site-packages/vispy/util/fonts/init.py", line 13, in
from ._triage import _load_glyph, list_fonts # noqa, analysis:ignore
File "/home/studio-lab-user/.conda/envs/default/lib/python3.10/site-packages/vispy/util/fonts/_triage.py", line 11, in
from ._freetype import _load_glyph
File "/home/studio-lab-user/.conda/envs/default/lib/python3.10/site-packages/vispy/util/fonts/_freetype.py", line 16, in
from ...ext.fontconfig import find_font
File "/home/studio-lab-user/.conda/envs/default/lib/python3.10/site-packages/vispy/ext/fontconfig.py", line 12, in
raise ImportError('fontconfig not found')
ImportError: fontconfig not found
*** Error loading script: depthmap_api.py Traceback (most recent call last): File "/home/studio-lab-user/asd/modules/scripts.py", line 527, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/home/studio-lab-user/asd/modules/script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/studio-lab-user/asd/extensions/stable-diffusion-webui-depthmap-script/scripts/depthmap_api.py", line 16, in
from src.core import core_generation_funnel, run_makevideo
File "/home/studio-lab-user/asd/extensions/stable-diffusion-webui-depthmap-script/src/core.py", line 27, in
from inpaint.mesh import write_mesh, read_mesh, output_3d_photo
File "/home/studio-lab-user/asd/extensions/stable-diffusion-webui-depthmap-script/inpaint/mesh.py", line 12, in
from vispy import scene, io
File "/home/studio-lab-user/.conda/envs/default/lib/python3.10/site-packages/vispy/init.py", line 27, in
from .util import config, set_log_level, keys, sys_info # noqa
File "/home/studio-lab-user/.conda/envs/default/lib/python3.10/site-packages/vispy/util/init.py", line 14, in
from . import fonts # noqa
File "/home/studio-lab-user/.conda/envs/default/lib/python3.10/site-packages/vispy/util/fonts/init.py", line 13, in
from ._triage import _load_glyph, list_fonts # noqa, analysis:ignore
File "/home/studio-lab-user/.conda/envs/default/lib/python3.10/site-packages/vispy/util/fonts/_triage.py", line 11, in
from ._freetype import _load_glyph
File "/home/studio-lab-user/.conda/envs/default/lib/python3.10/site-packages/vispy/util/fonts/_freetype.py", line 16, in
from ...ext.fontconfig import find_font
File "/home/studio-lab-user/.conda/envs/default/lib/python3.10/site-packages/vispy/ext/fontconfig.py", line 12, in
raise ImportError('fontconfig not found')
ImportError: fontconfig not found