Coder Social home page Coder Social logo

Pydantic 2 about streamsync HOT 3 CLOSED

wilstrup avatar wilstrup commented on July 1, 2024 1
Pydantic 2

from streamsync.

Comments (3)

ramedina86 avatar ramedina86 commented on July 1, 2024 1

Pydantic 2 is used in v0.1.12, which was just released.

from streamsync.

ramedina86 avatar ramedina86 commented on July 1, 2024

Hey @wilstrup , that is unfortunate... I wanted to use Pydantic 2 but it broke the package and the fix was to pin the version, as discussed here #51 We weren't provided any descriptive error messages that could help us identify the issue, so I had to quickly revert to Pydantic 1.

I'll do more digging and attempt to migrate to Pydantic 2 in the next release.

from streamsync.

ramedina86 avatar ramedina86 commented on July 1, 2024

I've identified the issue, it's due to a regression in Pydantic 2 related to numpy.float64 values.

pydantic/pydantic#6963

I'll see how this evolves but I've already come up with a fix by converting numpy.float64 to built-in float during serialisation time.

There doesn't seem to be any other issues so migration to Pydantic 2 will be completed for the next release (in 1-2 weeks).

from streamsync.

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.