Hi, I use a Macbook PRO M2 to work and I’m having issues running python3 demo.py on MacOS Sonoma 14.2.1. I’m getting this error:
libc++abi: terminating due to uncaught exception of type HostException: coreclr_initialize failed - status:0x80004005
code is
import aspose.words as aw
# Create a blank document.
doc = aw.Document()
# Use a document builder to add content to the document.
builder = aw.DocumentBuilder(doc)
# Write a new paragraph in the document with the text "Hello World!".
builder.writeln("Hello, World!")
# Save the document in DOCX format. Save format is automatically determined from the file extension.
doc.save("output.docx")
# Test Conversion
doc = aw.Document("output.docx")
doc.save("output.pdf")
@shruthi_annappa Could you please provide full stack trace of the exception here for our reference? Also, please provide brew list and dotnet --info outputs. Unfortunately, currently it is not clear what causes the problem.
@shruthi_annappa Thank you for additional information. As I can see you are using Aspose.Email, not Aspose.Words. Do you have only Aspose.Email package installed on your side? Could you please try to uninstall all Aspose for Python products and install only one of them (Aspose.Words or Aspose.Email) for testing? Is the problem still reproducible if only one Aspose product is installed?
@shruthi_annappa@festinalente Could you please try running the code outside venv? Is the problem reproducible in this case? What IDE do you use for testing?
Also, please provide us configuration of your venv, for this run the following command in your venv:
pip freeze > requirements.txt.
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.