Hello Everyone,
I have been using the Aspose.cells Python library and facing the below issue from Library version 22.1.0 to 23.7.0.
in my Local environemnt try 22.1.0 to 23.7.0, getting same issue. Java version configured in my system is C:\Program Files\Java\jdk1.8.0_341 (windows)
Linux ->
$ java -version
java version “1.8.0_251”
Python Source:
from asposecells.api import Workbook
workbook = Workbook("./excel_sample.xlsx")
workbook.save("./excel_sample.txt")
from asposecells.api import Workbook
workbook = Workbook("./excel_sample.xlsx")
Traceback (most recent call last):
File “com.aspose.cells.a.a.v5.java”, line -1, in com.aspose.cells.a.a.v5.
java.lang.NullPointerException: java.lang.NullPointerException
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “com.aspose.cells.Workbook.java”, line -1, in com.aspose.cells.Workbook.
File “com.aspose.cells.Workbook.java”, line -1, in com.aspose.cells.Workbook.a
File “com.aspose.cells.i0v.java”, line -1, in com.aspose.cells.i0v.a
File “com.aspose.cells.i0v.java”, line -1, in com.aspose.cells.i0v.a
File “com.aspose.cells.i0v.java”, line -1, in com.aspose.cells.i0v.a
File “com.aspose.cells.s9g.java”, line -1, in com.aspose.cells.s9g.
File “com.aspose.cells.s9g.java”, line -1, in com.aspose.cells.s9g.a
Exception: Java Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “”, line 1, in
java.lang.ExceptionInInitializerError: java.lang.ExceptionInInitializerError
@kathirmsc85,
import asposecells:
This line of code is used to import the bridge module.
Aspose.Cells for Python via Java implements Python through Java. We also have the Aspose.Cells for Python via NET library.
from asposecells.api import Workbook, CellsHelper:
This line of code is used to import specific content from the asposecells.api module.
I am glad that your issue has been resolved. If you have any questions, please feel free to contact us.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.