MartinPacker / md2pptx

Markdown To PowerPoint converter
MIT License
226 stars 36 forks source link

Error: Slide Object has no slideInfo attribute #162

Closed MiuMiuMiue closed 3 months ago

MiuMiuMiue commented 3 months ago

Hi, I run the cmd cat .\test\cardTest.md | python md2pptx output.pptx to generate a pptx file according to the given markdown file.

However, I got the following error: File "D:\md2pptx\md2pptx", line 5870, in <module> slide.slideInfo = None AttributeError: 'Slide' object has no attribute 'slideInfo'

I am using python 3.9.13 and my python-pptx version is 0.6.19. Is it a version problem here?

MiuMiuMiue commented 3 months ago

I switched to python version 3.12.3 and python-pptx version 0.6.23, and it works. Should be a version problem?

MartinPacker commented 3 months ago

First, thank you for the report.

I don't know which change - of the two you made - caused the repair. And possibly not worth it to try again with only one of the changes applied.

I will say there is nothing in md2pptx that requires 3.12. I suspect it's the python-pptx change - which I would've recommended anyway. (It's quite likely that Slide - which is a python-pptx thing - got enhanced.)

Anyhow glad you are back working.

I will also say I never contemplated cat piping as an input technique. I've been using < stdin redirection myself. But you can input via stdin any way you like.