Saving pptx from python-pptx in Databricsk in DBFS
12:42 05 Nov 2021

I'm trying to save a .pptx file to DBFS in my Databricks environment using the python-pptx package but receiving the following error:

[Errno 95] Operation not supported

When I just run prs.save('test.pptx') it runs without error but I don't understand where it's going.

Any guidance would be appreciated. Here's an example that returns the above error:


prs = Presentation()
title_slide_layout = prs.slide_layouts[0]
slide = prs.slides.add_slide(title_slide_layout)
title = slide.shapes.title
subtitle = slide.placeholders[1]

title.text = "Hello, World!"
subtitle.text = "python-pptx was here!"

prs.save('/dbfs/test.pptx')
python databricks python-pptx