Python 3.12.2 が Windows 11 上の JMP 16.0 で動作しない実行中にエラーが発生します:
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 は完全に Python 3.7 ~ 3.9 のみをサポートしており、JMP 17.0 には同じ問題がないことがわかりました。
Re: Windows 11 上の JMP 16.0 で Python 3.12.2 が動作しない申し訳ありませんが、JMP 16.0 では使用できません。 JMP は、Python の Unicode API を呼び出して、JMP の内部文字列表現と Python の文字列の間で変換を行います。 Python の Unicode API は変更されており、PyUnicode_AsUnicodeAndSize は Python でしばらくの間非推奨になっていた API の 1 つであり、最終的に Python 3.12.x で削除されました。 JMP 17.2 のコード ベースを検索して、新しい API を利用して JMP が更新されていることを確認しました。
Python 3.12 が JMP 17 で機能すると聞いてうれしく思います。Python 3.12 はかなり新しいため、次期 JMP 18 のテストの焦点は Python 3.11.x です。