Managed Folder No such file or directory

David08 Registered Posts: 2

Hi, I've create a Python recipe with a Dataset and Managed Folder as output and a Dataset as input.

My code:

Model_ScikitLearn = dataiku.Folder("v9OdRBEN")
Model_ScikitLearn_path = Model_ScikitLearn.get_path()


and gets this error:

- FileNotFoundError Traceback (most recent call last) <ipython-input-9-08881e72cb40> in <cell line: 1>() ----> 1 os.listdir(Model_ScikitLearn_path) FileNotFoundError: [Errno 2] No such file or directory: '/data/dataiku/dss_data/managed_folders/COMPETIDORAS/v9OdRBEN'

My managed folder have:

{'path': '/data/dataiku/dss_data/managed_folders/COMPETIDORAS/v9OdRBEN', 'projectKey': 'COMPETIDORAS', 'directoryBasedPartitioning': False, 'name': 'Model_ScikitLearn', 'id': 'v9OdRBEN', 'accessInfo': {'root': '/data/dataiku/dss_data/managed_folders/COMPETIDORAS/v9OdRBEN'}, 'type': 'Filesystem'}

Best Answer

  • Turribeach
    Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 1,728 Neuron
    Answer ✓

    Dataiku's little dirty secret: it doesn't actually create the folder in the file system until you put a file in it. Go to your flow and add a dummy file to the folder manually. Then your code should work fine after that.


Setup Info
      Help me…