1

I'm utilising aspose.slides for Python successfully on Windows, recently they've added MacOS support. When I try to run ANY aspose.slides script on MacOS I get an error that it can't find libpython dylib in /usr/lib or /usr/local/lib

Simple example

import aspose.slides as slides

# Instantiate a Presentation object that represents a presentation file
with slides.Presentation() as presentation:
    slide = presentation.slides[0]
    slide.shapes.add_auto_shape(slides.ShapeType.LINE, 50, 150, 300, 0)
    presentation.save("NewPresentation_out.pptx", slides.export.SaveFormat.PPTX)

I've added a symbolic link from /usr/lib or /usr/local/lib directory to the libpython file but now I get the error “zsh segmentation fault”

I've googled and tried so many things but always the same result. Can anyone shed any light on where I maybe going wrong please?

3
  • Hey Luke, any update on this? Having the same segmentation fault on my end too.
    – A. Debugne
    Jan 26 at 16:45
  • @A.Debugne Unfortunately not. I have left it for now and got done what I can with python-pptx
    – Luke Bowes
    Jan 27 at 2:04
  • OK, thanks for the reply. This seems to be an open issue with Aspose.Slides on MacOS: forum.aspose.com/t/….
    – A. Debugne
    Jan 31 at 21:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.