Python package import prevents other import

1 Ansicht (letzte 30 Tage)
Paul Bareil
Paul Bareil am 8 Mär. 2018
Kommentiert: Stephen Schmugge am 27 Nov. 2020
Hi, I build my own Python package with the Mathlab compiler.
I can import in into Python and run it ok.
For example I follow the instruction here to build a simple Python package. If I run it, it works.
However, I cannot import another package such as numpy. I get an ImportError error on loading numpy.
The same happens when I load h5py first and I try to load the Matlab Compiled package afterwads. In this case, I get a
Can't load 'C:\Program Files\MATLAB\R2017b\bin\win64\wkspintrospect.dll': The specified procedure could not be
found.
Error in ctfroot (line 15)
Error in checkRequiredMCRProducts (line 14)
  2 Kommentare
Stephen Schmugge
Stephen Schmugge am 25 Nov. 2020
I'm getting this same error. But I'm using the runtime. It seems that when I "import tensorflow", it causes this problem. Did you ever find a fix?
Can't load 'C:\Program Files\MATLAB\MATLAB Runtime\v93\bin\win64\wkspintrospect.dll': The specified procedure could not be found.
Error in ctfroot (line 15)
Error in checkRequiredMCRProducts (line 14)
Stephen Schmugge
Stephen Schmugge am 27 Nov. 2020
I think I found the fix. I needed to downgrade my h5py python library from 2.10.0 to 2.7.0. It works now without crashing.
This discussion helped on this github forum. ( https://github.com/soltanianzadeh/STNeuroNet/issues/11 )

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by