Orthanc Compatibility Issues with Python Plugin
Budget: $50 – $0 USD
Title: Orthanc Hangs When Enabling Python Plugin on Windows
Issue Description:
I am encountering an issue where Orthanc hangs upon startup when the Python plugin is enabled. The Orthanc service does not continue to load beyond the point where it attempts to initialize the Python plugin. The issue only occurs when the Python plugin is activated in the configuration file. Without the Python plugin, Orthanc loads successfully.
System Configuration:
• Orthanc Version: 1.12.4
• Operating System: Windows Server (64-bit)
• Python Version: Python 3.11 (installed in
C:\Users\Administrator\AppData\Local\Programs\Python\Python311\)
• Configuration File: The Python plugin is enabled as follows:
"PythonEnabled": true,
"PythonScript": "C:\\Program Files\\Orthanc Server\\python\\sanitize.py",
"Plugins": ["C:\\Program Files\\Orthanc Server\\Plugins"]
9:04
• Orthanc Logs: The logs show that Orthanc begins the startup process and registers several plugins successfully. However, when it reaches the point where it attempts to initialize the Python plugin, it appears to hang indefinitely.
Example log output:
W0820 18:29:50.614868 MAIN PluginsManager.cpp:274] Registering plugin 'python' (version 4.3)
W0820 18:29:50.614868 MAIN PluginsManager.cpp:158] Python plugin is initializing
W0820 18:29:50.615580 MAIN PluginsManager.cpp:158] Using Python script "sanitize.py" from directory: C:\Program Files\Orthanc Server\python
W0820 18:29:50.615580 MAIN PluginsManager.cpp:158] Program name: C:\Program Files\Orthanc Server\Orthanc.exe
Observations:
• When the Python plugin is disabled, Orthanc loads normally and fully initializes.
• The script file sanitize.py exists in the specified directory.
• There are no error messages in the log; it simply stops logging after the Python plugin initialization.
Steps Taken:
• Verified that Python is installed and accessible via the PATH environment variable.
• Checked that the Python script sanitize.py is correctly located in the directory specified in the
configuration.
• Ensured that Orthanc works without the Python plugin enabled.
Request for Help:
I’m looking for insights into what might be causing Orthanc to hang during the Python plugin initialization. Has anyone experienced similar issues, particularly on Windows, with the Python plugin? Any suggestions on debugging or resolving this issue would be greatly appreciated.
Issue Description:
I am encountering an issue where Orthanc hangs upon startup when the Python plugin is enabled. The Orthanc service does not continue to load beyond the point where it attempts to initialize the Python plugin. The issue only occurs when the Python plugin is activated in the configuration file. Without the Python plugin, Orthanc loads successfully.
System Configuration:
• Orthanc Version: 1.12.4
• Operating System: Windows Server (64-bit)
• Python Version: Python 3.11 (installed in
C:\Users\Administrator\AppData\Local\Programs\Python\Python311\)
• Configuration File: The Python plugin is enabled as follows:
"PythonEnabled": true,
"PythonScript": "C:\\Program Files\\Orthanc Server\\python\\sanitize.py",
"Plugins": ["C:\\Program Files\\Orthanc Server\\Plugins"]
9:04
• Orthanc Logs: The logs show that Orthanc begins the startup process and registers several plugins successfully. However, when it reaches the point where it attempts to initialize the Python plugin, it appears to hang indefinitely.
Example log output:
W0820 18:29:50.614868 MAIN PluginsManager.cpp:274] Registering plugin 'python' (version 4.3)
W0820 18:29:50.614868 MAIN PluginsManager.cpp:158] Python plugin is initializing
W0820 18:29:50.615580 MAIN PluginsManager.cpp:158] Using Python script "sanitize.py" from directory: C:\Program Files\Orthanc Server\python
W0820 18:29:50.615580 MAIN PluginsManager.cpp:158] Program name: C:\Program Files\Orthanc Server\Orthanc.exe
Observations:
• When the Python plugin is disabled, Orthanc loads normally and fully initializes.
• The script file sanitize.py exists in the specified directory.
• There are no error messages in the log; it simply stops logging after the Python plugin initialization.
Steps Taken:
• Verified that Python is installed and accessible via the PATH environment variable.
• Checked that the Python script sanitize.py is correctly located in the directory specified in the
configuration.
• Ensured that Orthanc works without the Python plugin enabled.
Request for Help:
I’m looking for insights into what might be causing Orthanc to hang during the Python plugin initialization. Has anyone experienced similar issues, particularly on Windows, with the Python plugin? Any suggestions on debugging or resolving this issue would be greatly appreciated.