‎11-09-2022 03:50 PM
I am unable to use a python data plugin that makes use of the numpy python module. When attempting to "Load Data" from the desired file, I am met with an error "Module cannot be loaded from compiled python script:" I have pip installed numpy but it is still unable to load the appropriate module. Has anyone figured a workaround for this? Or is it not possible to use the numpy module?
Solved! Go to Solution.
‎11-10-2022 12:54 AM
Hello LDobbins,
The pip included modules are problematic when running in parallel in an embedded environment and the distribution of a DataPlugin via *.uri file is limited to only 1 file. Python DataPlugins consist of only one Python file that contains all the logic.
​We recommend creating your Python DataPlugins with ONLY the functionality available in the plain Python 3.5 execution engine.
Greetings
Walter
‎11-10-2022 08:04 AM
When you say that it is problematic whilst running in an embedded environment, does this mean that should I point DIAdem to a different installation of python rather than its embedded version, numpy and other python modules would be useable?
‎11-10-2022 08:10 AM
No, currenly you must use the embedded Python 3.5 version.
‎11-10-2022 08:16 AM
Ah, that is a shame. Thank you very much for your time!