ImportError aspose.pydrawing module

I get this very descriptive error when running:

import aspose.words as aw
aw.Document(file_path + extension)

‘ImportError: Unable to import module dependencies. Cannot import the aspose.pydrawing module. The aspose.pydrawing module found has a version (‘22.9.0.0’) that is lower than the referenced version of that module (‘22.9.1.0’).’

I have tried updating the pydrawing module independently in my env but without success. Do you have an idea on how to solve this?

@RAEN121997 Please try using the latest 22.10 version of Aspose.Words for Python. Unfortunately, I am unable to reproduce the problem on my side. Could you please describe your environment where the problem occurs?

Hi Alexey,
thanks for your reply.

I literally just created a conda environment with this yml:

name: resumeParser

channels:
  - conda-forge
dependencies:
  - python =3.10
  - pip>=21.0
  - pip:
    - aspose-words==22.10.0
    - aspose.slides==22.10.0

This is the environment list:

Name Version Build Channel

aspose-slides 22.10.0 pypi_0 pypi
aspose-words 22.10.0 pypi_0 pypi
bzip2 1.0.8 he774522_0
ca-certificates 2022.9.24 h5b45459_0 conda-forge
certifi 2022.9.24 pyhd8ed1ab_0 conda-forge
libffi 3.4.2 hd77b12b_4
openssl 1.1.1q h8ffe710_0 conda-forge
pip 22.3 pyhd8ed1ab_0 conda-forge
python 3.10.6 hbb2ffb3_1
setuptools 63.4.1 py310haa95532_0
sqlite 3.39.3 h2bbff1b_0
tk 8.6.12 h2bbff1b_0
tzdata 2022e h04d1e81_0
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
wheel 0.37.1 pyhd3eb1b0_0
wincertstore 0.2 py310haa95532_2
xz 5.2.6 h8cc25b3_0
zlib 1.2.13 h8cc25b3_0

Thanks for you help!
Kind regards,
Niklas

@RAEN121997 Thank you for additional information. The problem occurs because Aspose.Words is produced by newer version of Python wrapper generator and that is why uses newer version of aspose.pydrawing module. As a temporary workaround, you can switch the order of installing the packages like this:

- pip install aspose.slides==22.10.0
- pip install aspose-words==22.10.0