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

python -m whisper_cpp_python.server --model models/ggml-tiny.bin causes error #19

Open
silvacarl2 opened this issue Mar 6, 2024 · 0 comments

Comments

@silvacarl2
Copy link

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 the pydantic-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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant