DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to use numpy python module with DIAdem python data plugin.

Solved!
Go to solution

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?

0 Kudos
Message 1 of 5
(2,044 Views)
Solution
Accepted by topic author LDobbins

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

0 Kudos
Message 2 of 5
(2,012 Views)

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?

0 Kudos
Message 3 of 5
(1,994 Views)

No, currenly you must use the embedded Python 3.5 version.

0 Kudos
Message 4 of 5
(1,991 Views)

Ah, that is a shame. Thank you very much for your time!

0 Kudos
Message 5 of 5
(1,987 Views)