Log says
MAIN PluginsManager.cpp:157] Sample worklist plugin is finalizing
E0307 15:44:13.817279 MAIN main.cpp:2106] Uncaught exception, stopping now: [Error while using a shared library (plugin)] (code 25)
W0307 15:44:13.817279 MAIN main.cpp:2137] Orthanc has stopped
Im not giving a single step forward once again, the whole morning trying to figure out whats wrong. Im new at this stuff, but I don’t seem to be forgetting anything.
What version of python did you install?
Python seems to be added to path.
Did you install python as administrator or user?
When Orthanc crashes while loading a script, two logs are generated; examine the Python error logs for insights. The problem may arise from Orthanc’s search for packages in the system site-packages folder. One resolution is to run Orthanc at the user level, though challenges may be encountered. To address the issue, a workaround involves importing global packages first, then specifying the user-level site-packages folder location and importing the remaining packages. The provided code snippet demonstrates this approach:
import sys
import orthanc
sys.path.append(r’C:\Users\user\AppData\Roaming\Python\Python311\site-packages’)
from PIL import Image
import imagehash
import numpy as np
I think it’s a behaviour of Ctrl+C/V here in the Community, my code is currently with \, but it’s the second time I’ve pasted her and it turned into one!
Ok, got a new clue, it’s the DLL that’s actually crashing.
0308 14:19:41.257927 MAIN PluginsManager.cpp:303] (plugins) Found a shared library: “C:\Program Files\Orthanc Server\Plugins\OrthancPython-Python3.11-mainline.dll”
E0308 14:19:41.289731 MAIN SharedLibrary.cpp:50] LoadLibrary(C:\Program Files\Orthanc Server\Plugins\OrthancPython-Python3.11-mainline.dll) failed: Error 193
E0308 14:19:41.289731 MAIN OrthancException.cpp:61] Error while using a shared library (plugin): You are most probably trying to load a 32bit plugin into a 64bit version of Orthanc
Ok, got a new clue, it’s the DLL that’s actually crashing.
0308 14:19:41.257927 MAIN PluginsManager.cpp:303] (plugins) Found a shared library: “C:\Program Files\Orthanc Server\Plugins\OrthancPython-Python3.11-mainline.dll”
E0308 14:19:41.289731 MAIN SharedLibrary.cpp:50] LoadLibrary(C:\Program Files\Orthanc Server\Plugins\OrthancPython-Python3.11-mainline.dll) failed: Error 193
E0308 14:19:41.289731 MAIN OrthancException.cpp:61] Error while using a shared library (plugin): You are most probably trying to load a 32bit plugin into a 64bit version of Orthanc