Open Meteorfire7 opened 2 months ago
https://github.com/pydantic/pydantic/releases/tag/v2.9.0 Dropped 8 hours ago.
possibly related?
I have the same problem. Rolling back to an earlier release of pydantic didn't solve it :/
Having same issue with fresh install of Ubuntu 22.04.
Same issue with fresh install on Windows 11.
Same issue Ubuntu 22.04
I have the same issue. The problem still occurs even after reinstalling using the dev branch.
Also experiencing this issue on Ubuntu 24.04 LTS
Fresh install from git repo. RTX 4090
I'm having the same error
OS: Windows 10 Pro CPU: i7-13700 GPU: RTX 2060 (6 GB VRAM) RAM: 32GB
fresh install, exactly same issue.
+1
+1
I had the same issue. Downgrade to fastapi==0.112.4 and it works.
I had the same issue. Downgrade to fastapi==0.112.4 and it works.
I also had to downgrade pydantic and pydantic-core
pydantic==2.8.2 pydantic-core==2.20.1 fastapi==0.112.4
works for me.
I had the same issue. Downgrade to fastapi==0.112.4 and it works.
I also had to downgrade pydantic and pydantic-core
pydantic==2.8.2 pydantic-core==2.20.1 fastapi==0.112.4
works for me.
Hi, I tried this and the problem is still the same. Thank you for your help anyways :)
@Meteorfire7, how did you try? (Downgrading solved the problem for me, too)
How to downgrade libraries ?
@Meteorfire7, how did you try? (Downgrading solved the problem for me, too)
I uninstalled the versions I had using the Windows command console (pip uninstall ...) ad then I installed the right versions with the same methods (pip install).
Do I have to do it in another way?
I had the same issue. Downgrade to fastapi==0.112.4 and it works.
I also had to downgrade pydantic and pydantic-core pydantic==2.8.2 pydantic-core==2.20.1 fastapi==0.112.4 works for me.
Hi, I tried this and the problem is still the same. Thank you for your help anyways :)
I downgraded all of those too and still have this issue! for a little bit of context I am trying to run via cpu only.
@Meteorfire7, how did you try? (Downgrading solved the problem for me, too)
I uninstalled the versions I had using the Windows command console (pip uninstall ...) ad then I installed the right versions with the same methods (pip install).
Do I have to do it in another way?
Run these three commands first (the "upgrade" behaves as downgrade with the version stated) - pip install --upgrade pydantic==2.8.2 pip install --upgrade pydantic-core==2.20.1 pip install --upgrade fastapi==0.112.4
Then navigate to C:\Users\YOURUSERNAME\AppData\Local\Programs\Python\Python312\Lib\site-packages
if your python version is different change the version bits
You'll find in there the pydantic, pydantic core and fastapi folders alongside the .dist-info folders for each
Go to your folder where oobabooga is installed - go to the folders \installer_files\env\Lib\site-packages in there you'll find the higher version folders of pydantic, pydantic core and fastapi (and .dist-info folders) delete these and replace them with the lower versions from your appdata location
Reload and enjoy!
@Meteorfire7, how did you try? (Downgrading solved the problem for me, too)
I uninstalled the versions I had using the Windows command console (pip uninstall ...) ad then I installed the right versions with the same methods (pip install). Do I have to do it in another way?
Run these three commands first (the "upgrade" behaves as downgrade with the version stated) - pip install --upgrade pydantic==2.8.2 pip install --upgrade pydantic-core==2.20.1 pip install --upgrade fastapi==0.112.4
Then navigate to C:\Users\YOURUSERNAME\AppData\Local\Programs\Python\Python312\Lib\site-packages
if your python version is different change the version bits
You'll find in there the pydantic, pydantic core and fastapi folders alongside the .dist-info folders for each
Go to your folder where oobabooga is installed - go to the folders \installer_files\env\Lib\site-packages in there you'll find the higher version folders of pydantic, pydantic core and fastapi (and .dist-info folders) delete these and replace them with the lower versions from your appdata location
Reload and enjoy!
I tried that, and it didn't work. I'm going to reinstall and try the fix again again.
If you are reinstalling, add the versions you need to the requirements.txt
file. It will then install these, and you won't need to do anything else.
@Meteorfire7, how did you try? (Downgrading solved the problem for me, too)
I uninstalled the versions I had using the Windows command console (pip uninstall ...) ad then I installed the right versions with the same methods (pip install). Do I have to do it in another way?
Run these three commands first (the "upgrade" behaves as downgrade with the version stated) - pip install --upgrade pydantic==2.8.2 pip install --upgrade pydantic-core==2.20.1 pip install --upgrade fastapi==0.112.4 Then navigate to C:\Users\YOURUSERNAME\AppData\Local\Programs\Python\Python312\Lib\site-packages if your python version is different change the version bits You'll find in there the pydantic, pydantic core and fastapi folders alongside the .dist-info folders for each Go to your folder where oobabooga is installed - go to the folders \installer_files\env\Lib\site-packages in there you'll find the higher version folders of pydantic, pydantic core and fastapi (and .dist-info folders) delete these and replace them with the lower versions from your appdata location Reload and enjoy!
I tried that, and it didn't work. I'm going to reinstall and try the fix again again.
I only replace the fastapi and that worked for me. I didn't have to replace the pydantic parts.
Also hitting this on Ubuntu 22.04.4 LTS; I'll give the downgrading a try.
The issue has been reported here: https://github.com/fastapi/fastapi/issues/12133
Also hitting this on Ubuntu 22.04.4 LTS; I'll give the downgrading a try.
If you're able to get it to work, can you please tell us the steps? I'm on PoP-OS (Ubuntu 22.04).
@Meteorfire7, how did you try? (Downgrading solved the problem for me, too)
I uninstalled the versions I had using the Windows command console (pip uninstall ...) ad then I installed the right versions with the same methods (pip install). Do I have to do it in another way?
Run these three commands first (the "upgrade" behaves as downgrade with the version stated) - pip install --upgrade pydantic==2.8.2 pip install --upgrade pydantic-core==2.20.1 pip install --upgrade fastapi==0.112.4
Then navigate to C:\Users\YOURUSERNAME\AppData\Local\Programs\Python\Python312\Lib\site-packages
if your python version is different change the version bits
You'll find in there the pydantic, pydantic core and fastapi folders alongside the .dist-info folders for each
Go to your folder where oobabooga is installed - go to the folders \installer_files\env\Lib\site-packages in there you'll find the higher version folders of pydantic, pydantic core and fastapi (and .dist-info folders) delete these and replace them with the lower versions from your appdata location
Reload and enjoy!
So I tried that and got these result:
I didn't find any of the three (pydantic, pydantic_core and fastapi) in the Python312 BUT i did fin them in the Python310 folder so I used those (with their .dist-info folders). After I copy and pasted them after eliminating the old ones in the Oobabooga folder I run it and it gives me a bunch of errors of some kind:
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ C:\Users\Marco\Documents\Oobabooga\text-generation-webui-main\server.py:21 in
(At the end the last line it says "click any button to continue" in Italian, if I do that it closes itself)
What should I do? Is there a difference between the Python310 and the 312 folder?
This should be fixed on a fresh install after https://github.com/oobabooga/text-generation-webui/commit/ac30b004efd7b9e2511d0baf619e8025c745ba09 and https://github.com/oobabooga/text-generation-webui/commit/f98431c7448381bfa4e859ace70e0379f6431018.
You can just delete the installer_files folder and restart the webui.
You can just delete the installer_files folder and restart the webui.
Thanks, worked perfectly. Which one of the web browsing extensions is your favorite or works the best? I mostly use Llama 3.1 70B Instruct and Mistral V2 2407 Large Q6 quants.
And thank you for making and updating Oobabooga. I'm not a n00b but I'm far from an expert. I have tried almost all other LLM inferencing programs out there and I keep coming back to Oobabooga because it's easy to use and it works.
Is there any way to update the GUI? I have been using Oobabooga for almost a year now and the same old colors are getting boring after a while. I would like to have the ability to change up the colors every now and then.
Thanks!
Deleting the installer_files folder and restarting start_windows.bat doesn't solve the issue for me.
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "D:\Programme\Git\text-generation-webui\installer_files\env\Lib\site-packages\pydantic\type_adapter.py", line 279, in _init_core_attrs
self._core_schema = _getattr_no_parents(self._type, '__pydantic_core_schema__')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Programme\Git\text-generation-webui\installer_files\env\Lib\site-packages\pydantic\type_adapter.py", line 121, in _getattr_no_parents
raise AttributeError(attribute)
AttributeError: __pydantic_core_schema__
During handling of the above exception, another exception occurred:
[......................................]
I have the same hardware and issue as OP and also wanted to try the webui yesterday for the first time. Am I missing something?
You can just delete the installer_files folder and restart the webui.
Thank you so much. After a fresh install it finally works.
Deleting the installer_files folder and restarting start_windows.bat doesn't solve the issue for me.
ERROR: Exception in ASGI application Traceback (most recent call last): File "D:\Programme\Git\text-generation-webui\installer_files\env\Lib\site-packages\pydantic\type_adapter.py", line 279, in _init_core_attrs self._core_schema = _getattr_no_parents(self._type, '__pydantic_core_schema__') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Programme\Git\text-generation-webui\installer_files\env\Lib\site-packages\pydantic\type_adapter.py", line 121, in _getattr_no_parents raise AttributeError(attribute) AttributeError: __pydantic_core_schema__ During handling of the above exception, another exception occurred: [......................................]
I have the same hardware and issue as OP and also wanted to try the webui yesterday for the first time. Am I missing something?
I Installed the program from zero and it worked. Try that: download the .zip installer, unzip it, open the start file for your machine and follow the instructions.
I Installed the program from zero and it worked. Try that: download the .zip installer, unzip it, open the start file for your machine and follow the instructions.
Thanks! I deleted the whole installation and cloned it again. Now it seems to work without errors.
This error is caused by the conflict between fastapi
and pydantic
. It is useless to install the specified version package normally, because the program installs dependencies in the isolation environment of conda
.
Modify this file:
\RAG\trt-llm-rag-windows-main\app_launch.bat
Before the line python verify_install.py
, insert:
pip install --upgrade pydantic==2.8.2
pip install --upgrade pydantic-core==2.20.1
pip install --upgrade fastapi==0.112.4
This problem can be solved
Describe the bug
Hi, to start off I thank anyone who trie to help me in any way.
So, I was trying to open Oobabooga for the first time: I let it download and install everything, I put the right GPU (I have a RTX 2070 super so I put Nvidia and then I respond 'N'), Then downloads and installations and then it runs. I put the IP on my browser and the console gives me a bunch of errors and the WebUI too, basically I can't do anything because it says "Connection errored out." every time I click or type something.
I never used this type of things so sorry for any type of incorrect terms. You can find anything you need in the files (mind the names of them).
Every error that pops up on the console AFTER putting the IP in the browser.txt
Is there an existing issue for this?
Reproduction
Screenshot
Logs
System Info