MATLAB Answers

Translated by

このページのコンテンツは英語から自動翻訳されています。自動翻訳をオフにする場合は「<a class="turn_off_mt" href="#">ここ</a>」をクリックしてください。

Mi Re
0

'std::exception' when calling python function to open GUI from MATLAB

Mi Re
さんによって質問されました 2019 年 2 月 6 日
最新アクティビティ Mi Re
さんによって コメントされました 2019 年 2 月 13 日
This 'std::exception' does not happen when I call the python script from, say, the terminal. I've isolated the problem to be with a GUI I launch. I am using tkinter to open a GUI window to display some information about progress and time remaining. I thought that MATLAB would call a python function in much the same way the terminal might, but it seems that MATLAB is somehow managing the output/permissions of that python program.
Is there some permission I need to give MATLAB to permit my GUI to open and the program to continue?
I am on macOS 10.13

  0 件のコメント

サインイン to comment.

タグ

製品


リリース

R2018b

1 件の回答

回答者: Rik
2019 年 2 月 6 日
 採用された回答

I haven't used python from Matlab myself, but Tkinter is mentioned in this doc page, which seems to suggest it isn't supported at all.
What you can do instead is using the system function to actually run it from the terminal, which should allow it to work normally as far as I can tell.

  1 件のコメント

Good point. That does seem to be the way to go.

サインイン to comment.



Translated by