Richard Li
06/19/2023, 9:00 AMfrom flytekit import task, workflow, ImageSpec
image_spec = ImageSpec(packages=["numpy", "tensorflow"], base_image="<http://container-image-registry.corp.linkedin.com:8083/lps-image/linkedin/mldev-workspace/mldev-base-image:0.0.16|container-image-registry.corp.linkedin.com:8083/lps-image/linkedin/mldev-workspace/mldev-base-image:0.0.16>", pip_index="<https://lerna.tools.corp.linkedin.com/pypi/simple/>", registry="localhost:30000")
@task(container_image=image_spec)
def t1() -> str:
import numpy as np
print("task 1")
print(np.array([1,2,3]))
import tensorflow as tf
print("task 2")
print(tf.constant(8))
return("blah1")
@workflow
def wf():
t1()
Then I run:
pyflyte run --remote example.py wf
Error:
Failed with Unknown Exception <class 'Exception'> Reason: failed to build the imageSpec at /var/folders/9v/3dl8rh2x0nx9ccbv3xkd708h002_42/T/flyte-mktmp10q/sandbox/local_flytekit/4e7f726c4f5a035e23addb662302e8e1/build.envd with error b'error: failed to do request: Head "<http://localhost:30000/v2/flytekit/blobs/sha256:a0e77e7122fc5edfccf28327cc28f2c15e34ee2ec76fa0c7486a6679c014a134>": dial tcp 127.0.0.1:30000: connect: connection refused\n'
Samhita Alla
Yee
Samhita Alla
pedro vendascosta
11/18/2023, 4:54 PM