GithubHelp home page GithubHelp logo

raise PydanticImportError( pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package. about ice HOT 3 OPEN

oughtinc avatar oughtinc commented on September 27, 2024
raise PydanticImportError( pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package.

from ice.

Comments (3)

8igMac avatar 8igMac commented on September 27, 2024

Same here. I think pydantic has moved BaseSettings to a seperate package, pydantic-settings (accroding to official doc). So a migration is needed here.

Specifically, this line of code should be modified to the following:

from pydantic_settings import BaseSettings

from ice.

hueykwik avatar hueykwik commented on September 27, 2024

I'm trying to get Hello World working, but I am stuck because I'm getting this error. Should I get the development version and then make the change @8igMac is referencing to get unstuck?

from ice.

amosjyng avatar amosjyng commented on September 27, 2024

@hueykwik you can manually install pydantic v1 like I did to avoid the error. That is, if the packages you're using supports that

If the ICE maintainers see this: Out of curiosity as another user of Poetry, why was project setup via poetry removed here? The pydantic = "^1.9.1" line in Poetry would've prevented this problem, whereas the new setup.cfg does not declare any version constraints on pydantic. Were there major problems with using poetry?

from ice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.