Aspose.Diagram import not working post Aspose.Pdf installation

Hello team,

I am using Aspose.TotalProductFamily for Python via .Net with a temporary license.
Initially, I installed aspose-diagram-python==26.1 to read vsdx file and export it to pdf which worked fine.
Later, I installed aspose-pdf==26.1.0 to read the exported pdf. However, post that the import statement for aspose.diagram is giving below error:

from aspose.diagram import *
AttributeError: module ‘aspose.pydrawing’ has no attribute ‘_C_APITV1_PointF’

The above exception was the direct cause of the following exception:

ImportError: can’t import capsule ‘aspose.pydrawing._C_APITV1_PointF’

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “”, line 1, in
ImportError: One or more errors occurred while loading the module ‘aspose.diagram’ (-1009)

Can you please assist with this?

@Ak78808,

This error seems to occur because of a conflict between the shared underlying dependencies (aspose.pydrawing ) of aspose-diagram-python and aspose-pdf , which may arise when multiple Aspose packages are installed in the same environment using different wrapper versions. The error specifically highlights that aspose.pydrawing is missing a required attribute needed by aspose.diagram after aspose-pdf was installed.

Could you please try uninstalling both packages and then reinstall them together:
e.g.,

pip uninstall aspose-diagram-python aspose-pdf aspose-pyreflection
pip install aspose-diagram-python==26.1 aspose-pdf==26.1.0

Alternatively, you may reinstall in reverse Order. Sometimes the installation order matters because the last package installed sets the version for the shared aspose.pydrawing module. Try uninstalling aspose-diagram-python and reinstalling it after aspose-pdf library.

Thank you.
Let me try this

@Ak78808,

Sure, please take your time to try the suggestions and let us know your feedback.