Hello Flyte community I was testing flytedecks for...
# flyte-support
b
Hello Flyte community I was testing flytedecks for the first time. I found the online examples here https://docs.flyte.org/en/latest/user_guide/development_lifecycle/decks.html#decks do not work . There is a
scikit-learn
not mentioned and I get the error I will post in this thread. This page seems to be an older version since it uses the deprecated
disable_deck=False
but is not listed as such
This is with creating a custom container with the required dependencies
Copy code
Traceback (most recent call last):

      File "/usr/local/lib/python3.11/site-packages/flytekit/exceptions/scopes.py", line 183, in system_entry_point
        return wrapped(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.11/site-packages/flytekit/core/base_task.py", line 747, in dispatch_execute
        self._write_decks(native_inputs, native_outputs_as_map, ctx, new_user_params)
      File "/usr/local/lib/python3.11/site-packages/flytekit/core/python_function_task.py", line 369, in _write_decks
        python_dependencies_deck.append(renderer.to_html())
                                        ^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.11/site-packages/flytekit/deck/renderer.py", line 107, in to_html
        installed_packages = json.loads(
                             ^^^^^^^^^^^
      File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
        return _default_decoder.decode(s)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.11/json/decoder.py", line 340, in decode
        raise JSONDecodeError("Extra data", s, end)

Message:

    JSONDecodeError: Extra data: line 2 column 1 (char 6887)

SYSTEM ERROR! Contact platform administrators.
flytekit==1.12.3 flytectl 0.8.24
f
Why such an old version of flytekit
Yes we moved to change flag name to enable_decks
Cc @white-chef-57887 docs?
👀 1
w
i can update
b
Is it old? v1.12.3 is the latest https://github.com/flyteorg/flytekit/releases and 0.8.24 seems to be the latest stable version of flytectl
f
Oops my bad I read it as 1.2.3 haha
a
@boundless-lifeguard-61788 would you mind raising an issue to track this?
👍 1
b
@average-finland-92144 https://github.com/flyteorg/flyte/issues/5618 to be honest I have not tested it since this thread. I am still interested.