Python 3.12.2 not working with JMP 16.0 on Windows 11I am receiving an error when running:
Python Init();
Python Submit( "\[basket = ['apple', 'orange', 'pear']
print(basket)]\" );
Python Term();
As mention in: https://www.jmp.com/support/help/zh/15.2/index.shtml#page/jmp/troubleshooting-the-jmp-python-integration.shtml
The error message is:
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() /*###*/;
The documentation in: https://docs.python.org/3/whatsnew/3.12.html
Mentions that PyUnicode_AsUnicodeAndSize() as a API has been removed.
Is there a way to get python to work?
Automation and ScriptingData AccessWindowsRe: Python 3.12.2 not working with JMP 16.0 on Windows 11Sorry, not possible with JMP 16.0. JMP calls Python's Unicode APIs to convert between JMP's internal string representations and Python's strings. Python's unicode APIs have changed and PyUnicode_AsUnicodeAndSize is one of those that has been deprecated by Python for some time, and has finally been removed in Python 3.12.x. I did search JMP 17.2's code base to confirm JMP has been updated, utilizing newer APIs.
I am happy to hear that Python 3.12 is working for you in JMP 17. The testing focus for upcoming JMP 18 has been Python 3.11.x as Python 3.12 is fairly new.
Re: Python 3.12.2 not working with JMP 16.0 on Windows 11I now realize that JMP 16.0 only supports Python 3.7-3.9 in it's entirety, JMP 17.0 does not have the same issue.