aspose-words / Aspose.Words-for-Python-via-.NET

Aspose.Words for Python via .NET examples and showcases
MIT License
104 stars 22 forks source link

Cannot run sample program, Process killed #65

Open sotocgeorge opened 1 month ago

sotocgeorge commented 1 month ago

Hello,

I am trying to test the python library, I am using macOS-arm64, using the preinstalled python version on the system which has as version: Python 3.9.6.

I just installed the library pip3 install aspose.words

running a sample program

import aspose.words as aw

doc = aw.Document()
builder = aw.DocumentBuilder(doc)

builder.write("Hello world!")

doc.save("./output.docx")

process almost instantly killed: python3 test.py [1] 2714 killed python3 test.py

any ideas why this might be?

Thank you!

falleretic commented 1 month ago

@sotocgeorge It looks like your environment is not configured correctly. Please try configuring https://docs.python.org/3/library/venv.html and installing Aspose.Words on that venv.

You can also try to check installed libs by running the following commands: 'python3 -m pip list' 'python3.9 -m pip list'

and install it directly to 3.9 with pip 3.9.

sotocgeorge commented 1 month ago

It is installed, it is something else, I do not have any issues with python-docx as an example python3 -m pip list Package Version


altgraph 0.17.2 aspose-words 24.6.0 future 0.18.2 lxml 5.2.2 macholib 1.15.2 memory-profiler 0.61.0 pip 24.1.2 psutil 6.0.0 python-docx 1.1.2 setuptools 58.0.4 six 1.15.0 typing_extensions 4.12.2 wheel 0.37.0

falleretic commented 1 month ago

@sotocgeorge python3.9 -m pip list also has the same list?

sotocgeorge commented 1 month ago

python3.9 is not recognised as a command