F

Flyte enables you to build & deploy data & ML pipelines, hassle-free. The infinitely scalable and flexible workflow orchestration platform that seamlessly unifies data, ML and analytics stacks. Explore and Join the Flyte Community!

Diabetes classification example issues

Summary

The user is trying to run a diabetes classification example but is facing issues with the split_traitest_dataset task failing due to the missing pandas module in the Flyte default image. They are asking if there are prebuilt images with pandas and other dependencies or if they need to create a custom image. Additionally, they mention encountering another error related to pulling a container, which they believe is connected to their M1 MacBook, referencing a potential exec format error. They also needed “registry=localhost:30000.” The user concludes that it works now.

Status
resolved
Tags
    Source
    #ask-the-community
      d

      david.espejo

      9/19/2024

      oh sorry for the struggles, feel free to contribute to the example by pointing to these missing pieces

      d

      denis.shvetsov

      9/17/2024

      Hi!

      I’m trying out <https://docs.flyte.org/en/latest/flytesnacks/examples/pima_diabetes/diabetes.html|diabates classification example>, but with remote execution the split_traitest_dataset task fails because there is no pandas module

      I think it is because flyte default image doesn’t contain this module. Is there any prebuilt images that I can use with pandas and other dependencies, or I have to build it myself?

      d

      denis.shvetsov

      9/19/2024

      Also I needed “registry=localhost:30000”

      It works now, thank you!

      d

      david.espejo

      9/18/2024

      sorry, try with platform = "linux/arm64"

      d

      denis.shvetsov

      9/18/2024

      Thank you, this doesn’t work me as well, now on a building step

      ERROR: failed to solve: <http://ghcr.io/astral-sh/uv:0.2.37|ghcr.io/astral-sh/uv:0.2.37>: failed to resolve source metadata for <http://ghcr.io/astral-sh/uv:0.2.37|ghcr.io/astral-sh/uv:0.2.37>: no match for platform in manifest: not found

      d

      david.espejo

      9/17/2024

      just in case you're getting the exec formaterror

      d

      david.espejo

      9/17/2024

      if you're running it locally, please add platform=darwin/arm64 to your ImageSpec config

      d

      denis.shvetsov

      9/17/2024

      Works, thank you!

      Or at least I’ve got another error with pulling a container. but I think it is connected with M1 macbook

      d

      david.espejo

      9/17/2024

      <@U0662JS8EV8> you should be able to use https://docs.flyte.org/en/latest/user_guide/customizing_dependencies/imagespec.html#image-spec-example|ImageSpec to declare the custom image with the required dependencies. In that way you don't have to write a Dockerfile