Hello all,
I’m still trying to use the Python plugin and thanks to the help provided by Sebastien Jodogne recently I can access the DICOM fields I want in Python.
Now, I’d like to use an external library that I have installed through Python pip (PyPi).
This command show that kafka-python is installed:
root@8c2ea060f3cc:~# pip install kafka-python
Requirement already satisfied: kafka-python in /usr/local/lib/python2.7/dist-packages (2.0.1)
But when I try to start Orthanc configured with a Python script it show this error:
E0622 16:47:38.144973 PluginsManager.cpp:164] Error during the installation of the Python script, traceback:
<class ‘ModuleNotFoundError’>
No module named ‘kafka’
File “/etc/orthanc/onStoredInstanceCallback.py”, line 7, in
from kafka import KafkaProducer
E0622 16:47:38.145017 PluginsManager.cpp:102] Error while initializing plugin /usr/local/share/orthanc/plugins/libOrthancPython.so (code -1)
In fact I do not even know which version (2 or 3) is used by Orthanc !
Would messing with the PYTHONPATH variable help me ?
Best regards
François