module 'dataiku' has no attribute 'dku_flow_variables'

PARTEEK
PARTEEK Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Registered Posts: 23 ✭✭✭✭

The following code was working fine in dataiku v11 but in v12 it throws an error.

partition_label = dataiku.dku_flow_variables["DKU_DST_partition_label"]

error:

module 'dataiku' has no attribute 'dku_flow_variables'

I am running it in a script, not in a notebook.


Operating system used: Linux

Answers

  • JuanE
    JuanE Dataiker, Registered Posts: 45 Dataiker

    If by "script" you mean a Python recipe inside of DSS, please share the corresponding job diagnosis in the Support ticket you already opened about this.

  • Turribeach
    Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,141 Neuron

    Works for me on version 12.2.2 but the error suggests you are running it outside of DSS or not inside a Python recipe.

Setup Info
    Tags
      Help me…