Aspose.Slides for .NET - No Usable Version of Libssl Found with Linux Server

Hello Team,

Facing issue while using the Aspose.slides using the python-via-.net package on linux server. Getting error as “No usable version of libssl found”.

We are also using the Aspose words and Aspose Cell using the python-via-.net package on linux server but no issue. Aspose.slides is having issue.

Kindly let me know, what could be reason the and how to fix it.

@rajeshguptasvim,
Thank you for contacting support.

Please check your results using the latest version of Aspose.Slides for .NET if possible. If the issue persists, please share a scenario on how to reproduce the error on our end and the following information:

  • code example (if you used it)
  • OS version on which the error occurred
  • Python version
  • Aspose.Slides version you used
  • full stacktrace of the error

Hi [andrey.potapov],

I am using the latest Aspose.slides version for Python via .NET

Please find the requested details

Code Example:

import aspose.slides as slides
pres = slides.Presentation("ppt.ppt")
pres.save("PPTtoPPTX_out.pptx", slides.export.SaveFormat.PPTX)

OS version on which the error occurred:

NAME=“Debian GNU/Linux”
VERSION_ID=“12”
VERSION=“12 (bookworm)”
VERSION_CODENAME=bookworm

Python version - 3.7

Aspose.Slides==23.8.0

full stacktrace of the error:

Process terminated. Couldn’t find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.

at System.Environment.FailFast(System.String)

at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()

at System.Globalization.GlobalizationMode…cctor()

at System.Globalization.CultureData.CreateCultureWithInvariantData()

at System.Globalization.CultureData.get_Invariant()

at System.Globalization.CultureInfo…cctor()

at System.StringComparer…cctor()

at System.StringComparer.get_OrdinalIgnoreCase()

at System.Text.EncodingTable…cctor()

at System.Text.EncodingTable.GetCodePageFromName(System.String)

at System.Text.CodePagesEncodingProvider.GetEncoding(System.String)

at System.Text.EncodingProvider.GetEncodingFromProvider(System.String)

at System.Text.Encoding.GetEncoding(System.String)

at Aspose.WrpGen.Interop.GenericMarshaler…cctor()

at Aspose.WrpGen.Interop.GenericMarshaler.ToString(Aspose.WrpGen.Interop.PyStringArg*)

at WrpNs_Aspose.WrpNs_Slides.WrpCs_Presenta_041D11ED.ctor_004_Presentation(Aspose.WrpGen.Interop.PyStringArg*)

after that in docker file i have added this line.

ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true

Then am getting like this,

No usable version of libssl was found

Kindly help on this to fix the PPT to PPTX conversion

@rajeshguptasvim,
Thank you for the information. Please also share the presentation file and dockerfile you used.

Hi [andrey.potapov],

Please find the attached PPT file and below is the Docker file code
ppt.zip (25.5 KB)

docker file code

#
FROM  python:3.7
#
RUN apt-get update && apt-get install -y libgl1-mesa-glx
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
RUN mkdir -p /code/
WORKDIR /code
RUN mkdir data

COPY . .

RUN pip install gevent==20.9.0
#
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
ENV USER user
ENV USER_ID 1001
RUN useradd -m ${USER} -u ${USER_ID}
#COPY ./app /code/app

#
EXPOSE 8533
RUN chown --silent  -R ${USER} /code
USER ${USER_ID}
#
CMD ["python", "/code/main.py", "run"]
1 Like

@rajeshguptasvim,
Thank you for the additional information.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESPYNET-119

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hi @andrey.potapov,

Thank you for your quick response.

We have Aspose Licence, Kindly let us know, Is there any timeline/SLA to fix this issue ?

@rajeshguptasvim,
I’ve requested plans for the issue from our development team. We will let you know soon.

Hi @andrey.potapov,

Thanks for your quick response.

Is there any update on the development plan to fix it ?

@rajeshguptasvim,
I am still waiting for a response from our developers. Thank you for your patience.

Hello,
Please I’m wondering if this issue has been resolved as I’m currently trying to solve it. Thank you.

@EphraimX,

No updates available yet. We will be looking into it and get back to you soon.

A post was split to a new topic: “No Usable Version of Libssl Found” Error

@rajeshguptasvim,
Our developers have investigated the case. If OpenSSL version 3 is installed on the target workstation, then you have two alternatives:
A) Install one of the versions of OpenSSL required by .NET Core 3.1;
B) Wait for .NET 6 to become a .NET runtime hosted in a Python session on all target platforms (estimated in Cs2Python versions 24.04–24.05).

Unfortunately, the default version of OpenSSL on Debian 12 is 3 while .NET Core 3.1 requires OpenSSL 1.x. On this page, you can find how to install OpenSSL 1.x on Debian 12. To install the library into the system folder, you should have root access.

Also, you should add the ‘libgdiplus’ package to the ‘apt-get install’ command in the Dockerfile.

After these two steps, we could run the code without any errors.