ImportError: DLL load failed while importing ovito_bindings

Hello.
I’m using the Windows 10 operating system with Python version 3.10.5.
I installed ovito using the command pip install ovito, and the default installation is ovito 3.9.1.

Collecting ovito
  Obtaining dependency information for ovito from https://files.pythonhosted.org/packages/f7/25/732c36c3ab1373c83a176dc8084a66a94fd741bdf2f7a3fe7c46e07ec5da/ovito-3.9.1-cp310-cp310-win_amd64.whl.metadata
  Using cached ovito-3.9.1-cp310-cp310-win_amd64.whl.metadata (2.4 kB)
Requirement already satisfied: numpy in d:\python\python310\lib\site-packages (from ovito) (1.23.4)
Requirement already satisfied: traits>=6.3 in d:\python\python310\lib\site-packages (from ovito) (6.4.1)
Requirement already satisfied: PySide6-Essentials>=6.4 in d:\python\python310\lib\site-packages (from ovito) (6.4.0.1)
Requirement already satisfied: shiboken6==6.4.0.1 in d:\python\python310\lib\site-packages (from PySide6-Essentials>=6.4->ovito) (6.4.0.1)
Using cached ovito-3.9.1-cp310-cp310-win_amd64.whl (74.1 MB)
Installing collected packages: ovito
Successfully installed ovito-3.9.1

Here is the error I encountered when trying to use it:

import ovito
  File "D:\python\python310\lib\site-packages\ovito\__init__.py", line 21, in <module>
    import ovito._extensions
  File "D:\python\python310\lib\site-packages\ovito\_extensions\__init__.py", line 6, in <module>
    importlib.import_module(modinfo.name)
  File "D:\python\python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "D:\python\python310\lib\site-packages\ovito\_extensions\averaging.py", line 2, in <module>
    import ovito._extensions.pyscript
  File "D:\python\python310\lib\site-packages\ovito\_extensions\pyscript.py", line 2, in <module>
    import ovito.plugins.PyScript
  File "D:\python\python310\lib\site-packages\ovito\plugins\__init__.py", line 57, in <module>
    import ovito.plugins.ovito_bindings
ImportError: DLL load failed while importing ovito_bindings: The specified module could not be found.

I couldn’t find any information about ovito’s dependencies or other required Python packages in the ovito manual.
Could you please advise on how to resolve this error? Thank you in advance.

Apparently, the ovito package is not fully backward-compatible with the slightly outdated PySide6 package you have installed. Please upgrade PySide6 by running pip install -U PySide6-Essentials. This should fix the problem. We’ll update the requirements of the ovito package to ensure that this happens automatically in the future.