Error initializing Python plugin

Hi,

I am trying to use the Python plugin for Orthanc in Windows 11.

I downloaded the OrthancPython-Win64-Python3.10-4.1.dll in C:\Program Files\Orthanc Server\Plugins. When I start the Orthanc server, I get the following error.

Error while initializing plugin C:\Program Files\Orthanc Server\Plugins\OrthancPython-Win64-Python3.10-4.1.dll (code -1)

Uncaught exception, stopping now: [Error while using a shared library (plugin)] (code 25)

I am using Python 3.10.0 and Orthanc version: 1.11.2, both 64bit. I have made sure to install Python for All Users and to select the Add Python to Path option.

Without the Python plugin, the Orthanc server is working just fine.

Your help would be much appreciated. Thank you.

Hi,

You should probably first analyse the logs in verbose mode.

Best regards,

Alain

Hi @priyanshgangwar

You should actually make sure that there is only one python DLL in your plugins folder.

If you have installed the Windows Installer 24.1.0, you could have ended up with 2 python DLL.

HTH,

Alain