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

Nan Qin

04/27/2023, 3:46 PM
A question about deck. When I click the
flyte deck
button in the console, instead of rendering the deck in browser, it downloads a html file which has the deck content. Any one knows how to solve the issue?
Screenshot 2023-04-27 at 10.47.11 AM.png
k

Kevin Su

04/27/2023, 11:52 PM
Which version of flytekit you are using
Cc @Eduardo Apolinario (eapolinario)
e

Eduardo Apolinario (eapolinario)

04/28/2023, 12:55 AM
Very interesting. Can you confirm which version flyteadmin you're running?
n

Nan Qin

04/28/2023, 2:19 AM
how to check the flyteadmin version? I deployed the flyte-binary helm chart v1.4.3
flytekit is 1.5.0
this seems to happen only for subworkflow within a dynamic workflow. the flytesnacks example works welll
running more tests on my end...
I did more tests. this is not because of dynamic or subworkflows. it is related to the docker image used for the task. If I use the official flyte image (eg
<http://cr.flyte.org/flyteorg/flytekit:py3.10-1.5.0|cr.flyte.org/flyteorg/flytekit:py3.10-1.5.0>
) then it renders well in the browser. If I use a custom image in which flytekit was pip installed. it downloads the html file instead of rendering. @Eduardo Apolinario (eapolinario) Any thoughts?
e

Eduardo Apolinario (eapolinario)

04/29/2023, 1:10 AM
Interesting. Can you share the list of installed packages in your image? Feel free to react any private package.
n

Nan Qin

04/29/2023, 1:16 AM
base image is pytorch/pytorch:1.13.1-cuda11.6-cudnn8-runtime pip list outputs:
Copy code
Package                        Version
------------------------------ -----------
absl-py                        1.4.0
adal                           1.2.7
adlfs                          2023.1.0
aiohttp                        3.8.4
aiosignal                      1.3.1
arrow                          1.2.3
asttokens                      2.0.5
astunparse                     1.6.3
async-timeout                  4.0.2
attrs                          22.1.0
awscli                         1.27.120
azure-core                     1.26.4
azure-datalake-store           0.0.52
azure-identity                 1.12.0
azure-storage-blob             12.16.0
backcall                       0.2.0
beautifulsoup4                 4.11.1
binaryornot                    0.4.4
boto3                          1.26.120
boto3-stubs                    1.26.21
botocore                       1.29.120
botocore-stubs                 1.29.119
brotlipy                       0.7.0
cachetools                     5.3.0
certifi                        2022.9.24
cffi                           1.15.1
chardet                        4.0.0
charset-normalizer             2.0.4
click                          8.1.3
cloudpathlib                   0.13.0
cloudpickle                    2.2.1
colorama                       0.4.4
conda                          22.11.1
conda-build                    3.23.3
conda-package-handling         1.9.0
contourpy                      1.0.7
cookiecutter                   2.1.1
croniter                       1.3.14
cryptography                   38.0.1
cycler                         0.11.0
dataclasses-json               0.5.7
decorator                      5.1.1
Deprecated                     1.2.13
diskcache                      5.6.1
dnspython                      2.2.1
docker                         6.0.1
docker-image-py                0.1.12
docstring-parser               0.15
docutils                       0.16
exceptiongroup                 1.0.4
executing                      0.8.3
expecttest                     0.1.4
faiss-gpu                      1.7.2
filelock                       3.6.0
flit_core                      3.6.0
flyteidl                       1.3.19
flytekit                       1.5.0
fonttools                      4.39.3
frozenlist                     1.3.3
fsspec                         2023.4.0
fugashi                        1.2.1
future                         0.18.2
gcsfs                          2023.4.0
gitdb                          4.0.10
GitPython                      3.1.31
glob2                          0.7
google-api-core                2.11.0
google-auth                    2.17.3
google-auth-oauthlib           1.0.0
google-cloud-core              2.3.2
google-cloud-storage           2.8.0
google-crc32c                  1.5.0
google-resumable-media         2.5.0
googleapis-common-protos       1.59.0
grpcio                         1.54.0
grpcio-status                  1.54.0
huggingface-hub                0.14.1
hypothesis                     6.61.0
idna                           3.4
importlib-metadata             6.6.0
ipython                        8.12.0
isodate                        0.6.1
jaraco.classes                 3.2.3
jedi                           0.18.1
jeepney                        0.8.0
Jinja2                         3.1.2
jinja2-time                    0.2.0
jmespath                       1.0.1
joblib                         1.2.0
keyring                        23.13.1
kiwisolver                     1.4.4
kubernetes                     26.1.0
libarchive-c                   2.9
lockfile                       0.12.2
luigi                          3.2.1
Markdown                       3.4.3
MarkupSafe                     2.1.2
marshmallow                    3.19.0
marshmallow-enum               1.5.1
marshmallow-jsonschema         0.13.0
matplotlib                     3.7.1
matplotlib-inline              0.1.6
mkl-fft                        1.3.1
mkl-random                     1.2.2
mkl-service                    2.4.0
mock                           5.0.2
more-itertools                 9.1.0
mpmath                         1.2.1
msal                           1.22.0
msal-extensions                1.0.0
multidict                      6.0.4
mypy-boto3-s3                  1.26.116
mypy-extensions                1.0.0
natsort                        8.3.1
numpy                          1.22.3
oauthlib                       3.2.2
packaging                      23.1
pandas                         1.5.3
parso                          0.8.3
pexpect                        4.8.0
pickleshare                    0.7.5
Pillow                         9.3.0
pip                            22.3.1
pkginfo                        1.8.3
pluggy                         1.0.0
portalocker                    2.7.0
prompt-toolkit                 3.0.38
protobuf                       4.22.3
protoc-gen-swagger             0.1.0
psutil                         5.9.0
ptyprocess                     0.7.0
pure-eval                      0.2.2
pyarrow                        10.0.1
pyasn1                         0.5.0
pyasn1-modules                 0.3.0
pycosat                        0.6.4
pycparser                      2.21
pydantic                       1.10.7
Pygments                       2.11.2
PyJWT                          2.6.0
pymongo                        4.3.3
pyOpenSSL                      22.0.0
pyparsing                      3.0.9
PySocks                        1.7.1
python-daemon                  3.0.1
python-dateutil                2.8.2
python-etcd                    0.4.5
python-json-logger             2.0.7
python-slugify                 8.0.1
pytimeparse                    1.1.8
pytz                           2022.1
PyYAML                         5.4.1
regex                          2023.3.23
requests                       2.28.1
requests-oauthlib              1.3.1
responses                      0.23.1
rsa                            4.7.2
ruamel.yaml                    0.17.21
ruamel.yaml.clib               0.2.6
s3fs                           0.4.2
s3transfer                     0.6.0
scikit-learn                   1.2.2
scipy                          1.10.1
SecretStorage                  3.3.3
setuptools                     65.5.0
six                            1.16.0
smmap                          5.0.0
sortedcontainers               2.4.0
soupsieve                      2.3.2.post1
stack-data                     0.2.0
statsd                         3.3.0
sympy                          1.11.1
tenacity                       8.2.2
tensorboard                    2.12.2
tensorboard-data-server        0.7.0
tensorboard-plugin-wit         1.8.1
text-unidecode                 1.3
threadpoolctl                  3.1.0
tokenizers                     0.13.3
toml                           0.10.2
toolz                          0.12.0
torch                          1.13.1
torchdata                      0.5.1
torchelastic                   0.2.2
torchjpeg                      0.9.29
torchmetrics                   0.11.4
torchtext                      0.14.1
torchvision                    0.14.1
tornado                        6.3.1
tqdm                           4.65.0
traitlets                      5.7.1
transformers                   4.28.1
types-awscrt                   0.16.16
types-dataclasses              0.6.6
types-PyYAML                   6.0.12.9
types-s3transfer               0.6.0.post7
typing_extensions              4.4.0
typing-inspect                 0.8.0
unidic-lite                    1.0.8
urllib3                        1.26.13
wcwidth                        0.2.5
websocket-client               1.5.1
Werkzeug                       2.3.0
wheel                          0.37.1
wrapt                          1.15.0
yarl                           1.9.2
zipp                           3.15.0
@Eduardo Apolinario (eapolinario) I checked the metadata of
deck.html
object in s3. The one downloading itself has
Content-Type binary/octet-stream
, and the normal one which renders in browser has
Content-Type text/html
94 Views