Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Symlynks breaks update model info #312

Open
jakerdy opened this issue Jul 26, 2024 · 0 comments
Open

[Bug]: Symlynks breaks update model info #312

jakerdy opened this issue Jul 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jakerdy
Copy link

jakerdy commented Jul 26, 2024

Describe the bug.

Hi, I ve been using your extension, at some point, iv'e moved all of my models to bigger ssd, and symliked all model dirs to other drive.

And right after that I got error ValueError: path is on mount 'F:', start on mount 'E:'

Steps to reproduce the problem.

  1. Go to Civit AI Browser + -> Update Models
  2. Check Checkpoints, Loras, ...
  3. Press Update
  4. ...
  5. Got error in console and UI of browser won't respond after that

Expected behavior

Symlinks should be respected.

System info

  • Extension version: 0b97a48 | 2024-06-02 03:41:22
  • OS: Windows 10
  • SD-WebUI version: SD Forge @ 29be1da7cf2b
  • Python: 3.10.11

0b97a482 2024-06-02 03:41:22

Console logs

Traceback (most recent call last):
  File "E:\AI\stable-diffusion-forge\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "E:\AI\stable-diffusion-forge\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
    result = await self.call_function(
  File "E:\AI\stable-diffusion-forge\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "E:\AI\stable-diffusion-forge\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "E:\AI\stable-diffusion-forge\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "E:\AI\stable-diffusion-forge\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "E:\AI\stable-diffusion-forge\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
    response = f(*args, **kwargs)
  File "E:\AI\stable-diffusion-forge\extensions\sd-civitai-browser-plus\scripts\civitai_file_manage.py", line 1055, in file_scan
    save_path, name = get_save_path_and_name(install_path, file_name, api_response)
  File "E:\AI\stable-diffusion-forge\extensions\sd-civitai-browser-plus\scripts\civitai_file_manage.py", line 819, in get_save_path_and_name
    sub_folder = os.path.normpath(os.path.relpath(install_path, gl.main_folder))
  File "C:\Program Files\Python310\lib\ntpath.py", line 747, in relpath
    raise ValueError("path is on mount %r, start on mount %r" % (
ValueError: path is on mount 'F:', start on mount 'E:'

Additional information

Also it won't work if I pass path to models via command line keys. SD could use models with symlinks and passed by args, but Civit AI Browser breaks...

@jakerdy jakerdy added the bug Something isn't working label Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant