ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(3,127 Views)
Solution
Accepted by 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
(3,095 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
(3,077 Views)

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

0 Kudos
Message 4 of 5
(3,074 Views)

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

0 Kudos
Message 5 of 5
(3,070 Views)