Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Tue Apr 16, 2024 1:12 pm

I run into the following problem opening a pptx file on Linux on 9.3.0:

spire.presentation.common.SpireException: Microsoft PowerPoint 2007 file is corrpt

when the same code on the same file works fine on Windows 10/11.

Is Spire.Presentation Python really linux compatible? In the requirements on the website it states:

Environment Support
100% Written in Python
Supports 64-bit OS
No Need to Install Additional Software

Riccardo

rtartari
 
Posts: 2
Joined: Tue Apr 16, 2024 1:01 pm

Wed Apr 17, 2024 2:04 am

Hi,

Thanks for your inquiry.
Are you using the linux version of Spire.Presentation in linux system? You can download the Spire.Presenation for python through the following link in our website, then unzip it and use the linux version, as shown in the following screenshot

Code: Select all
https://www.e-iceblue.com/Download/Spire-Presentation-Python.html


33.png


If you have used the linux version, but the issue still exists, please offer the following messages to help us do further investigation.

1) The code that can reproduce your issue.
2) The input PPt file, you can attach here or send it via email(support@e-iceblue.com)
3) The linux version, such as Ubuntu 20.04.


Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Tue Apr 23, 2024 12:45 pm

I reinstalled the whole solution to make sure I used the correct file and I can reproduce the problem 100% of the time.

I cannot attach the presentation because it contains privileged information. The solution is running on Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-105-generic x86_64). Python is 3.10.12. The code is :

for x in os.listdir("."):
if x.endswith(".pptx"):
spire_pres = sp.Presentation()
spire_pres.LoadFromFile(x)

The same code works perfectly on Windows so I doubt that's to blame.

Best,
R

rtartari
 
Posts: 2
Joined: Tue Apr 16, 2024 1:01 pm

Wed Apr 24, 2024 1:37 am

Hi,

Thanks for your feedback.
I do need the input ppt file to reproduce your issue, then report it to our Dev team. If you don’t hope other user to check your ppt file, you can send it via email (support@e-iceblue.com). Meanwhile, you can remove the privileged information and only make sure that your issue can be reproduced when testing the modified ppt file.

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Mon Apr 29, 2024 3:07 am

rtartari wrote:I reinstalled the whole solution to make sure I used the correct file and I can reproduce the problem 100% of the time.

I cannot attach the presentation because it contains privileged information. The solution is running on Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-105-generic x86_64). Python is 3.10.12. The code is :

for x in os.listdir("."):
if x.endswith(".pptx"):
spire_pres = sp.Presentation()
spire_pres.LoadFromFile(x)

The same code works perfectly on Windows so I doubt that's to blame.

Best,
R


Hello, I meet the same problem as yours. Have you solved it ?

zhunt2024hh
 
Posts: 1
Joined: Mon Apr 29, 2024 2:44 am

Mon Apr 29, 2024 6:38 am

zhunt2024hh wrote:
rtartari wrote:I reinstalled the whole solution to make sure I used the correct file and I can reproduce the problem 100% of the time.

I cannot attach the presentation because it contains privileged information. The solution is running on Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-105-generic x86_64). Python is 3.10.12. The code is :

for x in os.listdir("."):
if x.endswith(".pptx"):
spire_pres = sp.Presentation()
spire_pres.LoadFromFile(x)

The same code works perfectly on Windows so I doubt that's to blame.

Best,
R


Hello, I meet the same problem as yours. Have you solved it ?



Hi,

To help us to reproduce your issue, please offer the following messages:

1) The code that can reproduce your issue.
2) The screenshot of exception in the linux system.
3) The input ppt file, you can attach here or send it via email(support@e-iceblue.com)

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Return to Spire.Presentation