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 无法实现。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 相当新。
回复:Python 3.12.2 无法与 Windows 11 上的 JMP 16.0 配合使用我现在意识到 JMP 16.0 仅完全支持 Python 3.7-3.9,而 JMP 17.0 没有同样的问题。