https://flyte.org logo
#ask-the-community
Title
# ask-the-community
h

Hank Huang

07/21/2023, 3:25 PM
Hi community, Anyone familiar with this? thanks for the responding
k

Kevin Su

07/21/2023, 3:38 PM
are you using demo cluster?
y

Yicheng Lu

07/21/2023, 3:45 PM
FYI, I once encountered this problem when using VSCode and SSH for the remote server. The MinIO port might not be automatically forwarded in this case. You may need to use
kubectl get svc
to see the port number and manually add that port to VSCode.
h

Hank Huang

07/21/2023, 4:11 PM
Hi @Kevin Su yes
@Yicheng Lu Thanks for the reply. Can you be more specify for how to do it? My dev env is GCP, and I use
ssh -L 30080:localhost:30080 gcp
to project it to my localhost.
FYU, I am able to access the minio locally
k

Kevin Su

07/21/2023, 4:18 PM
did you port forward minio?
Copy code
ssh -L 30084:localhost:30084 gcp
h

Hank Huang

07/21/2023, 4:19 PM
I didn't
HI @Kevin Su, just port forward, but it still the same
k

Kevin Su

07/21/2023, 4:40 PM
could you turn on developer tool with F12 to see if there is any error
h

Hank Huang

07/21/2023, 4:40 PM
yes
same like yours
k

Kevin Su

07/21/2023, 4:42 PM
click the network tab
y

Yicheng Lu

07/21/2023, 4:44 PM
I am able to see the deck by forwarding 30002.
k

Kevin Su

07/21/2023, 5:05 PM
yes, forwarding 30002 works for us, thanks
h

Hank Huang

07/21/2023, 5:40 PM
Hi @Kevin Su, @Yicheng Lu If I want to install
flytekit-deck-standard
in my image, I should follow (
pip install flytekitplugins-deck-standard
) this right?
k

Kevin Su

07/21/2023, 5:41 PM
correct
h

Hank Huang

07/21/2023, 5:53 PM
still gets this Plugin ‘flytekit-deck-standard’ is not installed. To display time line, install the plugin in the image.
even though I remove the existing image and rebuild a new one
y

Yicheng Lu

07/21/2023, 5:54 PM
One trick might be you need to first install flytekit-deck-standard then the flytekit
h

Hank Huang

07/21/2023, 5:56 PM
you mean in the docker image?
y

Yicheng Lu

07/21/2023, 5:56 PM
Yes~
h

Hank Huang

07/21/2023, 5:56 PM
Copy code
FROM python:3.9-slim-buster
USER root
WORKDIR /root
ENV PYTHONPATH /root
RUN apt-get update && apt-get install build-essential -y
RUN apt-get install git -y
RUN pip install -U git+<https://github.com/hhcs9527/flytekit.git@>"mashumaro-serialize-dataclass#egg=flytekitplugins-deck-standard&subdirectory=plugins/flytekit-deck-standard"
ENV FLYTE_INTERNAL_IMAGE "localhost:30000/flytekit:mashumaro-serialize-dataclass"
here is current my docker file
Are you suggesting I change it into the following?
Copy code
FROM python:3.9-slim-buster
USER root
WORKDIR /root
ENV PYTHONPATH /root
RUN apt-get update && apt-get install build-essential -y
RUN apt-get install git -y
RUN pip install -U 
RUN pip install flytekitplugins-deck-standard
git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
ENV FLYTE_INTERNAL_IMAGE "localhost:30000/flytekit:mashumaro-serialize-dataclass"
y

Yicheng Lu

07/21/2023, 5:58 PM
Yes
h

Hank Huang

07/21/2023, 6:04 PM
Hi @Yicheng Lu, still the same
y

Yicheng Lu

07/21/2023, 6:06 PM
Copy code
FROM python:3.9-slim-buster
USER root
WORKDIR /root
ENV PYTHONPATH /root
RUN apt-get update && apt-get install build-essential -y
RUN apt-get install git -y
# The following line is an example of how to install your modified plugins. In this case, it demonstrates how to install the 'deck' plugin.
RUN pip install -U git+<https://github.com/Yicheng-Lu-llll/flytekit.git@>"demo#egg=flytekitplugins-deck-standard&subdirectory=plugins/flytekit-deck-standard" # replace with your own repo and branch
RUN pip install -U git+<https://github.com/Yicheng-Lu-llll/flytekit.git@demo> # replace with your own repo and branch
ENV FLYTE_INTERNAL_IMAGE "localhost:30000/flytekit:demo" # replace with your own image name and tag
Would you mind try this one? just replace with your repo and branch
h

Hank Huang

07/21/2023, 6:06 PM
k
still the same
y

Yicheng Lu

07/21/2023, 6:22 PM
Can you see the deck with the default image? maybe try to build the image start from
FROM
ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0 in this case
h

Hank Huang

07/21/2023, 6:26 PM
do you mean add this in docker file?
y

Yicheng Lu

07/21/2023, 6:28 PM
like
Copy code
FROM <http://ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0|ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0>
RUN pip install -U git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
h

Hank Huang

07/21/2023, 6:36 PM
Copy code
FROM <http://ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0|ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0>
git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
USER root
WORKDIR /root
ENV PYTHONPATH /root
RUN apt-get update && apt-get install build-essential -y
RUN apt-get install git -y
RUN pip install flytekitplugins-deck-standard
RUN pip install -U git+<https://github.com/hhcs9527/flytekit.git@>"mashumaro-serialize-dataclass#egg=flytekitplugins-deck-standard&subdirectory=plugins/flytekit-deck-standard"
RUN pip install -U git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
ENV FLYTE_INTERNAL_IMAGE "localhost:30000/flytekit:mashumaro-serialize-dataclass"
the above is my latest docker file, but still not. working…
I will tried it tomorrow
k

Kevin Su

07/21/2023, 6:39 PM
this is incorrect
Copy code
git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
should be ?
Copy code
pip install git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
second line
h

Hank Huang

07/21/2023, 7:02 PM
should I change it to ?
Copy code
FROM <http://ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0|ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0>
RUN pip install git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
USER root
WORKDIR /root
ENV PYTHONPATH /root
RUN apt-get update && apt-get install build-essential -y
RUN apt-get install git -y
RUN pip install flytekitplugins-deck-standard
RUN pip install -U git+<https://github.com/hhcs9527/flytekit.git@>"mashumaro-serialize-dataclass#egg=flytekitplugins-deck-standard&subdirectory=plugins/flytekit-deck-standard"
RUN pip install -U git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
ENV FLYTE_INTERNAL_IMAGE "localhost:30000/flytekit:mashumaro-serialize-dataclass"
k

Kevin Su

07/21/2023, 7:06 PM
Copy code
FROM <http://ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0|ghcr.io/flyteorg/flytekit:py3.9-sqlalchemy-1.9.0a0>
USER root
WORKDIR /root
ENV PYTHONPATH /root
RUN apt-get update && apt-get install build-essential -y
RUN apt-get install git -y
RUN pip install git+<https://github.com/hhcs9527/flytekit.git@>"mashumaro-serialize-dataclass#egg=flytekitplugins-deck-standard&subdirectory=plugins/flytekit-deck-standard"
RUN pip install git+<https://github.com/hhcs9527/flytekit.git@mashumaro-serialize-dataclass>
h

Hank Huang

07/22/2023, 1:08 AM
hmm.. still the same
y

Yicheng Lu

07/22/2023, 1:09 AM
Maybe change the image tag and try again 😞
I am guessing the image you are actually using is not the one you just built(if tag remains unchanged)
h

Hank Huang

07/22/2023, 1:19 AM
yeah…
but the weird thing is I did call
rmi before it push
but I may not stop the service first, that’s why we meet such problem
y

Yicheng Lu

07/22/2023, 1:20 AM
Also building the image with --no-cache may help
h

Hank Huang

07/22/2023, 1:20 AM
I see
thanks for your time and response @Yicheng Lu !
5 Views