cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
neelsrejan
Level III

Python 3.12.2 not working with JMP 16.0 on Windows 11

I 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-integra...

 

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?

1 ACCEPTED SOLUTION

Accepted Solutions
neelsrejan
Level III

Re: Python 3.12.2 not working with JMP 16.0 on Windows 11

I 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.

View solution in original post

2 REPLIES 2
neelsrejan
Level III

Re: Python 3.12.2 not working with JMP 16.0 on Windows 11

I 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.

Re: Python 3.12.2 not working with JMP 16.0 on Windows 11

Sorry, 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.