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
root@ubuntu:~/projects/SightlessGuide2# python test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
from pydantic_settings import BaseSettings
File "/usr/local/lib/python3.8/dist-packages/pydantic_settings/__init__.py", line 1, in <module>
from .main import BaseSettings, CliApp, SettingsConfigDict
File "/usr/local/lib/python3.8/dist-packages/pydantic_settings/main.py", line 14, in <module>
from .sources import (
File "/usr/local/lib/python3.8/dist-packages/pydantic_settings/sources.py", line 40, in <module>
from pydantic import AliasChoices, AliasPath, BaseModel, Json, RootModel, TypeAdapter
File "<frozen importlib._bootstrap>", line 1039, in _handle_fromlist
File "/usr/local/lib/python3.8/dist-packages/pydantic/__init__.py", line 421, in __getattr__
module = import_module(module_name, package=package)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/local/lib/python3.8/dist-packages/pydantic/root_model.py", line 35, in <module>
class RootModel(BaseModel, typing.Generic[RootModelRootType], metaclass=_RootModelMetaclass):
File "/usr/local/lib/python3.8/dist-packages/pydantic/_internal/_model_construction.py", line 224, in __new__
complete_model_class(
File "/usr/local/lib/python3.8/dist-packages/pydantic/_internal/_model_construction.py", line 620, in complete_model_class
cls.__pydantic_validator__ = create_schema_validator(
File "/usr/local/lib/python3.8/dist-packages/pydantic/plugin/_schema_validator.py", line 38, in create_schema_validator
plugins = get_plugins()
File "/usr/local/lib/python3.8/dist-packages/pydantic/plugin/_loader.py", line 39, in get_plugins
for entry_point in dist.entry_points:
File "/usr/lib/python3.8/importlib/metadata.py", line 240, in entry_points
return EntryPoint._from_text(self.read_text('entry_points.txt'))
File "/usr/lib/python3.8/importlib/metadata.py", line 100, in _from_text
config.read_string(text)
File "/usr/lib/python3.8/configparser.py", line 723, in read_string
self.read_file(sfile, source)
File "/usr/lib/python3.8/configparser.py", line 718, in read_file
self._read(f, source)
File "/usr/lib/python3.8/configparser.py", line 1082, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
I wanted to look from the bottom to find out which f caused it and what it was. when I added print and reran it, the code was correct.
The text was updated successfully, but these errors were encountered:
I encountered a very strange problem. I just used the following code to import pydantic_settings.
But the following error was displayed:
I wanted to look from the bottom to find out which f caused it and what it was. when I added print and reran it, the code was correct.
The text was updated successfully, but these errors were encountered: