フィルターのクリア

License Manager Error -1 when call python module which includes multiprocessing

6 ビュー (過去 30 日間)
Yun Lu
Yun Lu 2018 年 3 月 5 日
回答済み: Alok Nimrani 2018 年 3 月 16 日
The python module I invoked from Matlab uses Pool (multiprocessing) locally. In this case, Matlab always returns License Manager Error -1, the license.dat file cannot be found.

採用された回答

Alok Nimrani
Alok Nimrani 2018 年 3 月 16 日
Hello Yun Lu,
You are experiencing this error because using the ‘multiprocessing’ Python module from MATLAB is not a supported workflow, as indicated in the following link: http://www.mathworks.com/help/matlab/matlab_external/limitations-to-python-support.html
However, as a workaround, try setting Python executable as the executable to be used by the ‘multiprocessing’ Python module before invoking Python. To do so, try executing the following commands in the MATLAB command window before your call to ‘multiprocessing’ Python module:
>> [v, exe] = pyversion;
>> py.multiprocessing.spawn.set_executable(exe)
Hope this helps.
Thanks

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeManage Products についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by