S

SiftZendeskTest

Hi Flyte Community, I'm building a Docker image using bazel that includes workflows, tasks, and launch plans. I'm registering to Flyte using pyflyte with the following command: ```pyflyte register --copy none --image "${FLYTE_WORKFLOW_IMAGE}" --version "${VERSION}" "${FLYTE_WORKFLOW_DIR}"``` The workflow in the image imports a package that, in turn, imports other pip packages like Pydantic, k8s. However, when I register with the above command, I encounter the error like below: ```ModuleNotFoundError: No module named 'pydantic'``` Can someone help me resolve this issue? Due to this error, I'm also unable to register the ContainerTasks with PodSpec, which requires the kubernetes package. `pyflyte register` is also unable to find the kubernetes package even though it's present locally and in bazel. Oddly enough, this error doesn't occur when registering with Flytekit which just looks for r<https://github.com/flyteorg/flytekit/blob/750e4fbdc2035c4bf12365473f04292655fdf04b/flytekit/tools/repo.py#L49|egistrable entities>.

Summary

Hi Flyte Community,

I'm building a Docker image using bazel that includes workflows, tasks, and launch plans. I'm registering to Flyte using pyflyte with the following command:

pyflyte register --copy none --image "${FLYTE_WORKFLOW_IMAGE}" --version "${VERSION}" "${FLYTE_WORKFLOW_DIR}" The workflow in the image imports a package that, in turn, imports other pip packages like Pydantic, k8s. However, when I register with the above command, I encounter the error like below:

ModuleNotFoundError: No module named 'pydantic' Can someone help me resolve this issue?

Due to this error, I'm also unable to register the ContainerTasks with PodSpec, which requires the kubernetes package. pyflyte register is also unable to find the kubernetes package even though it's present locally and in bazel. Oddly enough, this error doesn't occur when registering with Flytekit which just looks for r<https://github.com/flyteorg/flytekit/blob/750e4fbdc2035c4bf12365473f04292655fdf04b/flytekit/tools/repo.py#L49|egistrable entities>.

Status
resolved
Tags
    Source
    #ask-the-community