oughtinc / ice

Interactive Composition Explorer: a debugger for compositional language model programs
https://ice.ought.org
MIT License
529 stars 66 forks source link

hello world program not running #315

Closed dhruv5995 closed 1 year ago

dhruv5995 commented 1 year ago

Hello.

I followed the instructions from the ReadME and the primer to run the hello world program and I am facing some issues.

I get the following when I try to run a simple program:

from ice.recipe import recipe
  File "/opt/homebrew/lib/python3.10/site-packages/ice/recipe.py", line 24, in <module>
    from pydantic import BaseSettings
  File "/opt/homebrew/lib/python3.10/site-packages/pydantic/__init__.py", line 210, in __getattr__
    return _getattr_migration(attr_name)
  File "/opt/homebrew/lib/python3.10/site-packages/pydantic/_migration.py", line 289, in wrapper
    raise PydanticImportError(
pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package. See https://docs.pydantic.dev/2.1.1/migration/#basesettings-has-moved-to-pydantic-settings for more details.

Which version of pydantic should I use?

stuhlmueller commented 1 year ago

< 2. Fix in this PR.