취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

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

해결 완료!
솔루션으로 이동

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 포인트
1/5 메시지
2,451 조회수
솔루션
승인자 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 포인트
2/5 메시지
2,419 조회수

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 포인트
3/5 메시지
2,401 조회수

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

0 포인트
4/5 메시지
2,398 조회수

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

0 포인트
5/5 메시지
2,394 조회수