Accessing pptx file from dataiku managed folders through python-pptx
projjwaldas1
Registered Posts: 1 ✭
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?