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 相当新。