slides.Presentation() - Runtime Error - It Is Being Used by Another Process

Encounter the following error, after the new PPTX file was created and running the following command:

Command Used:

presentation = slides.Presentation("HSR_Incident_Msg_Template-updated.pptx")

Error Message:

RuntimeError: Proxy error(IOException): The process cannot access the file ‘C:\Users\aufat\Desktop___HSR\HSR_Incident_Msg_Template-updated.pptx’ because it is being used by another process.

@aufatsee,
It looks like the “HSR_Incident_Msg_Template-updated.pptx” file is blocked by another process or application when you try to create the Presentation instance and the issue is not related to Aspose.Slides. Please check this carefully.