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
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/silvacarl/.local/lib/python3.10/site-packages/whisper_cpp_python/server/main.py", line 23, in
from whisper_cpp_python.server.app import create_app, Settings
File "/home/silvacarl/.local/lib/python3.10/site-packages/whisper_cpp_python/server/app.py", line 12, in
from pydantic import BaseModel, BaseSettings, Field
File "/home/silvacarl/.local/lib/python3.10/site-packages/pydantic/init.py", line 374, in getattr
return _getattr_migration(attr_name)
File "/home/silvacarl/.local/lib/python3.10/site-packages/pydantic/_migration.py", line 296, in wrapper
raise PydanticImportError(
pydantic.errors.PydanticImportError: BaseSettings has been moved to the pydantic-settings package. See https://docs.pydantic.dev/2.6/migration/#basesettings-has-moved-to-pydantic-settings for more details.
running this:
python -m whisper_cpp_python.server --model models/ggml-tiny.bin
causes this:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/silvacarl/.local/lib/python3.10/site-packages/whisper_cpp_python/server/main.py", line 23, in
from whisper_cpp_python.server.app import create_app, Settings
File "/home/silvacarl/.local/lib/python3.10/site-packages/whisper_cpp_python/server/app.py", line 12, in
from pydantic import BaseModel, BaseSettings, Field
File "/home/silvacarl/.local/lib/python3.10/site-packages/pydantic/init.py", line 374, in getattr
return _getattr_migration(attr_name)
File "/home/silvacarl/.local/lib/python3.10/site-packages/pydantic/_migration.py", line 296, in wrapper
raise PydanticImportError(
pydantic.errors.PydanticImportError:
BaseSettings
has been moved to thepydantic-settings
package. See https://docs.pydantic.dev/2.6/migration/#basesettings-has-moved-to-pydantic-settings for more details.For further information visit https://errors.pydantic.dev/2.6/u/import-error
on ubuntu 22, Python 3.10.12
The text was updated successfully, but these errors were encountered: