Python 3.12.2 non funziona con JMP 16.0 su Windows 11Ricevo un errore durante l'esecuzione:
Python Init();
Python Submit( "\[basket = ['apple', 'orange', 'pear']
print(basket)]\" );
Python Term();
Come menzionato in: https://www.jmp.com/support/help/zh/15.2/index.shtml#page/jmp/troubleshooting-the-jmp-python-integration.shtml
Il messaggio di errore è:
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() /*###*/;
La documentazione in: https://docs.python.org/3/whatsnew/3.12.html
Mentions that PyUnicode_AsUnicodeAndSize() as a API has been removed.
C'è un modo per far funzionare Python?
Automazione e scriptingAccesso ai datifinestreRi: Python 3.12.2 non funziona con JMP 16.0 su Windows 11Ora mi rendo conto che JMP 16.0 supporta solo Python 3.7-3.9 nella sua interezza, JMP 17.0 non presenta lo stesso problema.
Ri: Python 3.12.2 non funziona con JMP 16.0 su Windows 11Spiacenti, non è possibile con JMP 16.0. JMP richiama le API Unicode di Python per effettuare la conversione tra le rappresentazioni di stringhe interne di JMP e le stringhe di Python. Le API unicode di Python sono cambiate e PyUnicode_AsUnicodeAndSize è una di quelle deprecate da Python per qualche tempo ed è stata finalmente rimossa in Python 3.12.x. Ho cercato nel codice base di JMP 17.2 per confermare che JMP è stato aggiornato, utilizzando le API più recenti.
Sono felice di sapere che Python 3.12 funziona per te in JMP 17. Il focus del test per il prossimo JMP 18 è stato Python 3.11.x poiché Python 3.12 è abbastanza nuovo.