Windows 11 上の JMP 16.0 で Python 3.12.2 が動作しない実行時にエラーが発生します:
Python Init();
Python Submit( "\[basket = ['apple', 'orange', 'pear']
print(basket)]\" );
Python Term();
以下に記載されています: https://www.jmp.com/support/help/zh/15.2/index.shtml#page/jmp/troubleshooting-the-jmp-python-integration.shtml
エラーメッセージは次のとおりです:
Python entry point "PyUnicode_AsUnicodeAndSize" not found. in access or evaluation of 'Glue' , Python Init( Init Trace( "True" ) ); /*###*/
Python Submit( "basket = ['apple', 'orange', 'pear']
print(basket)" ); /*###*/
Python Term() /*###*/;
In the following script, error marked by /*###*/
Python Init( Init Trace( "True" ) ); /*###*/
Python Submit( "basket = ['apple', 'orange', 'pear']
print(basket)" ); /*###*/
Python Term() /*###*/;
ドキュメント: https://docs.python.org/3/whatsnew/3.12.html
Mentions that PyUnicode_AsUnicodeAndSize() as a API has been removed.
Python を動作させる方法はありますか?
自動化とスクリプトデータアクセスウィンドウズRe: Windows 11 上の JMP 16.0 で Python 3.12.2 が動作しない申し訳ありませんが、JMP 16.0 では不可能です。JMP は、JMP の内部文字列表現と Python の文字列を変換するために Python の Unicode API を呼び出します。Python の Unicode API は変更されており、PyUnicode_AsUnicodeAndSize は Python でしばらく前から非推奨とされていたものの 1 つで、最終的に Python 3.12.x で削除されました。JMP 17.2 のコード ベースを検索して、JMP が更新され、新しい API が使用されていることを確認しました。
JMP 17 で Python 3.12 が動作していると聞いてうれしく思います。Python 3.12 はかなり新しいため、今後の JMP 18 のテストでは Python 3.11.x に重点が置かれています。
Re: Windows 11 上の JMP 16.0 で Python 3.12.2 が動作しないJMP 16.0 は Python 3.7-3.9 のみを完全にサポートしており、JMP 17.0 には同じ問題はないことがわかりました。