Accessing pptx file from dataiku managed folders through python-pptx

projjwaldas1
projjwaldas1 Registered Posts: 1
edited July 16 in Using Dataiku

Hi All, I'm trying to access a pptx file from a dataiku managed folder through python-pptx module within the python recipe. Below is the code I'm using -

import dataiku

from pptx import Presentation

handle = dataiku.Folder('folder_id')

paths = handle.list_paths_in_partition()

ppt = Presentation(paths[0])

However, I'm getting the below error in the last line -

PackageNotFoundError: Package not found at '/template.pptx'

How do I resolve this? What am I doing wrong here?

Setup Info
    Tags
      Help me…