You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this pydantic.errors.PydanticImportError exception when started litexpore. Uninstalling 2.x.x version and installing v1.10.12 with pip install pydantic==1.10.12 worked.
Traceback (most recent call last):
File "/venv/bin/litexplore", line 5, in <module>
from litexplore import __main__
File "/venv/lib/python3.8/site-packages/litexplore/__main__.py", line 23, in <module>
uvicorn.run(
File "/venv/lib/python3.8/site-packages/uvicorn/main.py", line 587, in run
server.run()
File "/venv/lib/python3.8/site-packages/uvicorn/server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/venv/lib/python3.8/site-packages/uvicorn/server.py", line 68, in serve
config.load()
File "/venv/lib/python3.8/site-packages/uvicorn/config.py", line 467, in load
self.loaded_app = import_from_string(self.app)
File "/venv/lib/python3.8/site-packages/uvicorn/importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/venv/lib/python3.8/site-packages/litexplore/app.py", line 27, in <module>
from pydantic import (
File "/venv/lib/python3.8/site-packages/pydantic/__init__.py", line 210, in __getattr__
return _getattr_migration(attr_name)
File "/venv/lib/python3.8/site-packages/pydantic/_migration.py", line 289, in wrapper
raise PydanticImportError(
pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package. See https://docs.pydantic.dev/2.1.1/migration/#basesettings-has-moved-to-pydantic-settings for more details.
For further information visit https://errors.pydantic.dev/2.1.1/u/import-error
The text was updated successfully, but these errors were encountered:
I got this
pydantic.errors.PydanticImportError
exception when startedlitexpore
. Uninstalling 2.x.x version and installing v1.10.12 withpip install pydantic==1.10.12
worked.The text was updated successfully, but these errors were encountered: