Traceback (most recent call last):
File "/home/vscode/.local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
exec(code, module.dict)
File "/workspaces/streamlit-gallery/streamlit_app.py", line 3, in
from streamlit_gallery import apps, components
File "/workspaces/streamlit-gallery/streamlit_gallery/components/init.py", line 5, in
from .pandas_profiling.streamlit_app import main as pandas_profiling
File "/workspaces/streamlit-gallery/streamlit_gallery/components/pandas_profiling/streamlit_app.py", line 2, in
import pandas_profiling
File "/home/vscode/.local/lib/python3.11/site-packages/pandas_profiling/init.py", line 6, in
from pandas_profiling.controller import pandas_decorator
File "/home/vscode/.local/lib/python3.11/site-packages/pandas_profiling/controller/pandas_decorator.py", line 4, in
from pandas_profiling.profile_report import ProfileReport
File "/home/vscode/.local/lib/python3.11/site-packages/pandas_profiling/profile_report.py", line 13, in
from pandas_profiling.config import Config, Settings
File "/home/vscode/.local/lib/python3.11/site-packages/pandas_profiling/config.py", line 5, in
from pydantic import BaseModel, BaseSettings, Field
File "/home/vscode/.local/lib/python3.11/site-packages/pydantic/init.py", line 363, in getattr
return _getattr_migration(attr_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vscode/.local/lib/python3.11/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.5/migration/#basesettings-has-moved-to-pydantic-settings for more details.
I think some components in requirements.txt Needs specific version you have been used before, because latest update of them not compatible with your following code
When i run it i get those errors
Output:
Traceback (most recent call last): File "/home/vscode/.local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script exec(code, module.dict) File "/workspaces/streamlit-gallery/streamlit_app.py", line 3, in
from streamlit_gallery import apps, components
File "/workspaces/streamlit-gallery/streamlit_gallery/components/init.py", line 5, in
from .pandas_profiling.streamlit_app import main as pandas_profiling
File "/workspaces/streamlit-gallery/streamlit_gallery/components/pandas_profiling/streamlit_app.py", line 2, in
import pandas_profiling
File "/home/vscode/.local/lib/python3.11/site-packages/pandas_profiling/init.py", line 6, in
from pandas_profiling.controller import pandas_decorator
File "/home/vscode/.local/lib/python3.11/site-packages/pandas_profiling/controller/pandas_decorator.py", line 4, in
from pandas_profiling.profile_report import ProfileReport
File "/home/vscode/.local/lib/python3.11/site-packages/pandas_profiling/profile_report.py", line 13, in
from pandas_profiling.config import Config, Settings
File "/home/vscode/.local/lib/python3.11/site-packages/pandas_profiling/config.py", line 5, in
from pydantic import BaseModel, BaseSettings, Field
File "/home/vscode/.local/lib/python3.11/site-packages/pydantic/init.py", line 363, in getattr
return _getattr_migration(attr_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vscode/.local/lib/python3.11/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.5/migration/#basesettings-has-moved-to-pydantic-settings for more details.For further information visit https://errors.pydantic.dev/2.5/u/import-error
I think some components in requirements.txt Needs specific version you have been used before, because latest update of them not compatible with your following code