Skip to content

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

@silvacarl2

Description

@silvacarl2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions