Vetchems/sd-civitai-browser

suddenly stop working

gmorks opened this issue · 26 comments

Traceback (most recent call last): File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict output = await app.get_blocks().process_api( File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1015, in process_api result = await self.call_function( File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 833, in call_function prediction = await anyio.to_thread.run_sync( File "D:\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "D:\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "D:\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run result = context.run(func, *args) File "D:\stable-diffusion-webui\extensions\sd-civitai-browser\scripts\civitai-api.py", line 150, in download_file_thread path_to_new_file = os.path.join(model_folder, file_name) File "C:\Users\Alex\.conda\envs\sd\lib\ntpath.py", line 143, in join genericpath._check_arg_types('join', path, *paths) File "C:\Users\Alex\.conda\envs\sd\lib\genericpath.py", line 152, in _check_arg_types raise TypeError(f'{funcname}() argument must be str, bytes, or ' TypeError: join() argument must be str, bytes, or os.PathLike object, not 'list'

I'm not sure if is something with all the recent updates to Automatic1111, but yesterday was working fine and today it give me that error

this should be fixed with the latest PR

this should be fixed with the latest PR

Hmm... I'm having this issue right now. Am I missing something?

You need to kindly implore the maintainer to merge my PR or use my repository. Google will walk you through it if you’re a dev.

I am using your repository. I get the same error. I am using A1111 WebUi. I installed your repository as an extension. Am I doing it wrong?

I’ll check it out today. Maybe a recent update broke it again

Thanks so much! I appreciate it.

Okay, so update to the lastest Automatic1111. It "works" but it throws a silly error that i'll need to track down.

Step 1: search by term, or not, you do you
Step 2: click search again, check the models dropdown and click every 10 seconds until it populates
Step 3: select a model, and then select the version of the model you want
Step 4: click 1st get model info
Step 5: click 2nd, 3rd, and 4th if you like it

As soon as i can figure out what the promise stuff isn't working. Gradio sucks and i'm sad the site is built on it.

I can also see that some models are not loading properly like "verisimilitude" which probably means the download url or something is malformed. I'll figure it out. With the OG author of the repo would merge these :) @Vetchems please?

Thanks for the response! Some of the model are working, some only have a V1 (thus I cannot download, because I need to change the version), and some don't even show up. And @Vetchems, a merge would be nice!

so i went to take a look at it this morning and it's working as expected. I also noticed that CivitAI was having API issues yesterday and was down briefly. It may have been that the API calls were not coming back consistently and that's why we were seeing the errors.
Either way it should error more gracefully. Just downloaded three more models though. Wish there was a way to have it manage updates better.

Yes, it's working great now, besides the fact that it can't download models with only one version. Hopefully that will be fixed soon. But other than that, it works good.

That works for me if you use my version of the repo. I just did it several times. The UI fills in the model download link when you hit “get info” instead of making you have to select a version from the list.

On Feb 22, 2023 at 1:06:42 PM, GavRon703 @.> wrote: Yes, it's working great now, besides the fact that it can't download models with only one version. Hopefully that will be fixed soon. But other than that, it works good. — Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACKV5STUMSCLH4FEKQXFZTWYZITFANCNFSM6AAAAAAUAPPGPI . You are receiving this because you commented.Message ID: @.>

2023-02-22
I can't seem to find where it says "Get Info". (So sorry to keep bothering you)

yeah, you're using the version from this repo.
You'll need to update the checkout from this repo instead: https://github.com/thetrebor/sd-civitai-browser
or @Vetchems will need to merge the pull requests

So just to clarify:

I go to SD-WebUi / Extensions / delete all extensions that have to do with CivitAi (sd-civitai-browser)
Then, I close Web Ui and restart PC.
I then open up Web Ui, and go to the extensions tab.
I open your (thetrebor) repositories, go to the CivitAi browser, and copy the link.
I past this into the "Instal from Url > URL for extension's git repository".
It installs, and I restart Web Ui.

I still get the same problem.

Odd. I don't know why this is happening. I'll ask around on Discord.
(Also, if you attempted to post a screenshot above, it didn't work on my screen)

Screenshot 2023-02-23 at 9 22 34 AM
This is what it should look like. if you're not seeing this then you're not using my repo or you're in caching heck.

the output of get text and save images is formatted to work with the "model previews" plugin

Lemme try to reinstall it again. I have no idea why this wouldn't install your version.

the output of get text and save images is formatted to work with the "model previews" plugin

Plugin or extension? I don't seem to have it, could you point me in the right direction of downloading that too?

Okay, so I figured it out.
I was installing from the main branch, so I changed it to "add-download-images".
I copied that URL, but it kept getting an error.
Then I went to "add-download-images" civitai-api.py, and copied all the text, installed Vetchem's version, and pasted the code into Vetchem's civitai-api.py.
It's now working great! Thank you for this extension and help!

No prob, thank you.

Can lora be found in this page?