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 運作?
自動化和腳本編寫資料存取視窗回覆:Python 3.12.2 無法在 Windows 11 上與 JMP 16.0 配合使用我現在意識到 JMP 16.0 僅完全支援 Python 3.7-3.9,JMP 17.0 沒有相同的問題。
回覆:Python 3.12.2 無法在 Windows 11 上與 JMP 16.0 配合使用抱歉,JMP 16.0 無法實作。 JMP 呼叫 Python 的 Unicode API 在 JMP 的內部字串表示形式和 Python 的字串之間進行轉換。 Python 的 unicode API 已發生變化,PyUnicode_AsUnicodeAndSize 是 Python 已棄用一段時間的 API 之一,最終在 Python 3.12.x 中刪除。我確實搜尋了 JMP 17.2 的程式碼庫,以確認 JMP 已使用更新的 API 進行更新。
我很高興聽到 Python 3.12 在 JMP 17 中為您工作。即將推出的 JMP 18 的測試重點是 Python 3.11.x,因為 Python 3.12 相當新。