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
I installed hydroshare_on_jupyter 0.1.5 from pip and run the configure command, but got the following error:
Traceback (most recent call last):
File "/opt/conda/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/opt/conda/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/opt/conda/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/opt/conda/lib/python3.9/site-packages/hydroshare_on_jupyter/__init__.py", line 10, in <module>
from .config_setup import ConfigFile
File "/opt/conda/lib/python3.9/site-packages/hydroshare_on_jupyter/config_setup.py", line 1, in <module>
from pydantic import BaseSettings, Field, root_validator, validator
File "/opt/conda/lib/python3.9/site-packages/pydantic/__init__.py", line 374, in __getattr__
return _getattr_migration(attr_name)
File "/opt/conda/lib/python3.9/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
Everything worked when following the instructions in the migration link to peg pydantic to 1.*, but pip did take a while solving.
I installed hydroshare_on_jupyter 0.1.5 from pip and run the configure command, but got the following error:
Everything worked when following the instructions in the migration link to peg pydantic to 1.*, but pip did take a while solving.
It might be useful to either update to work with Pydantic 2 or change the setup.py to require pydantic 1.*. Thanks!
The text was updated successfully, but these errors were encountered: