Thanks @dolaf for the advice! I realized it was the wrong executable, but I still have issues and I really appreciate your help!
When running:
$ ./snappy-conf /Library/Frameworks/Python.framework/Versions/3.10/bin/python3
I still get:
OpenJDK 64-Bit Server VM warning: Option AggressiveOpts was deprecated in version 11.0 and will likely be removed in a future release.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/Applications/esa-snap/platform/lib/boot.jar) to field java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Configuring ESA SNAP-Python interface...
Configuration failed!
Error: Python configuration error
Full stack trace:
The new error in .snap’s log says:
java.lang.Exception: Python configuration error
at eu.esa.snap.snappy.Configurator.doConfig(Configurator.java:37)
at eu.esa.snap.snappy.EsaSnappyArgsProcessor.applyConfiguration(EsaSnappyArgsProcessor.java:39)
at eu.esa.snap.snappy.EsaSnappyArgsProcessor.process(EsaSnappyArgsProcessor.java:20)
at org.netbeans.modules.sendopts.DefaultProcessor.process(DefaultProcessor.java:192)
at org.netbeans.spi.sendopts.Option$1.process(Option.java:362)
at org.netbeans.api.sendopts.CommandLine.process(CommandLine.java:336)
at org.netbeans.modules.sendopts.HandlerImpl.execute(HandlerImpl.java:37)
at org.netbeans.modules.sendopts.Handler.cli(Handler.java:44)
at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:209)
at org.netbeans.core.startup.CLICoreBridge.cli(CLICoreBridge.java:57)
at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:209)
at org.netbeans.CLIHandler$1.exec(CLIHandler.java:243)
at org.netbeans.CLIHandler.finishInitialization(CLIHandler.java:422)
at org.netbeans.MainImpl.finishInitialization(MainImpl.java:231)
at org.netbeans.Main.finishInitialization(Main.java:67)
at org.netbeans.core.startup.Main.start(Main.java:291)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.io.IOException: Python configuration failed.
Command [/Library/Frameworks/Python.framework/Versions/3.10/bin/python3 ./snappyutil.py --snap_home /Applications/esa-snap --java_module /Applications/esa-snap/snap/modules/eu-esa-snap-esa-snappy.jar --force --log_file ./snappyutil.log --jvm_max_mem 5G --java_home /Applications/esa-snap/.install4j/jre.bundle/Contents/Home --req_arch x86_64]
failed with return code 10.
Please check the log file '/Users/myname/.snap/snap-python/esa_snappy/snappyutil.log'.
at eu.esa.snap.snappy.PyBridge.configureJpy(PyBridge.java:275)
at eu.esa.snap.snappy.PyBridge.installPythonModule(PyBridge.java:164)
at eu.esa.snap.snappy.Configurator.doConfig(Configurator.java:32)
... 17 more
INFO [org.openide.awt.Toolbar]: Too long AWTTask: 1,192 ms for org.openide.awt.Toolbar$Folder@258f6844(FolderList{MultiFileObject@4177cba8[Toolbars/Tool Windows]})
snappyutil.log says:
INFO: Installing from Java module '/Applications/esa-snap/snap/modules/eu-esa-snap-esa-snappy.jar'
INFO: Installing jpy...
ERROR: The module 'jpy' is required to run snappy, but no binary 'jpy' wheel matching the pattern
'jpy-{version}-cp310-{abi_tag}-macosx_10_9_universal2.whl' could be found.
You can try to build a 'jpy' wheel yourself, then copy it into
"/Users/myname/.snap/snap-python/esa_snappy", and then run the configuration again.
Unzip the jpy sources in /Users/myname/.snap/snap-python/esa_snappy/jpy-<version>.zip, then
$ cd jpy-<version>
$ python setup.py bdist_wheel
$ cp dist/*.whl "/Users/myname/.snap/snap-python/esa_snappy"
Or get the source code from https://github.com/bcdev/jpy and follow the build instructions:
$ git clone https://github.com/bcdev/jpy.git
$ cd jpy
ERROR: Configuration failed with exit code 10
Which is odd because I thought I had read in the instructions that jpy is no longer needed. Either way, after I git cloned and attempted to run:
python3.10 setup.py bdist_wheel
I got 40 warnings in the output ending with the below error. If you would like to see the entire output of warnings, I’ve included that too, at the bottom.
error: command '/usr/bin/clang' failed with exit code 1
Entirety of output:
src/main/c/jni/org_jpy_PyLib.c:167:31: warning: passing 'const wchar_t *' (aka 'const int *') to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
PyMem_RawFree(pythonHome);
^~~~~~~~~~
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/cpython/pymem.h:8:38: note: passing argument to parameter 'ptr' here
PyAPI_FUNC(void) PyMem_RawFree(void *ptr);
^
src/main/c/jni/org_jpy_PyLib.c:184:27: warning: passing 'const wchar_t *' (aka 'const int *') to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
PyMem_RawFree(pythonHome);
^~~~~~~~~~
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/cpython/pymem.h:8:38: note: passing argument to parameter 'ptr' here
PyAPI_FUNC(void) PyMem_RawFree(void *ptr);
^
src/main/c/jni/org_jpy_PyLib.c:252:17: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:283:13: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:331:9: error: call to undeclared function 'JPy_free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
JPy_free();
^
src/main/c/jni/org_jpy_PyLib.c:329:26: warning: unused variable 'state' [-Wunused-variable]
PyGILState_STATE state = PyGILState_Ensure();
^
src/main/c/jni/org_jpy_PyLib.c:371:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:437:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:664:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:791:16: warning: incompatible pointer to integer conversion returning 'void *' from a function with result type 'jlong' (aka 'long') [-Wint-conversion]
return NULL;
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
# define NULL ((void*)0)
^~~~~~~~~~
src/main/c/jni/org_jpy_PyLib.c:796:101: warning: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
result = executeInternal(jenv, jLibClass, jStart, jGlobals, jLocals, (DoRun)pyRunStringWrapper, codeChars);
^~~~~~~~~
src/main/c/jni/org_jpy_PyLib.c:657:128: note: passing argument to parameter 'runArg' here
jlong executeInternal(JNIEnv* jenv, jclass jLibClass, jint jStart, jobject jGlobals, jobject jLocals, DoRun runFunction, void *runArg) {
^
src/main/c/jni/org_jpy_PyLib.c:874:9: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:900:9: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:928:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:948:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:973:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:994:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1020:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1051:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1074:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1076:14: warning: incompatible pointer types assigning to 'PyObject *' (aka 'struct _object *') from 'PyTypeObject *' (aka 'struct _typeobject *') [-Wincompatible-pointer-types]
pyObject = ((PyObject*) objId)->ob_type;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main/c/jni/org_jpy_PyLib.c:1096:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1122:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1148:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1174:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1200:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1226:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1252:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1278:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1304:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1331:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1364:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1393:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1456:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1497:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1519:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1555:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1612:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1656:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1691:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
src/main/c/jni/org_jpy_PyLib.c:1714:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
JPy_BEGIN_GIL_STATE
^
src/main/c/jni/org_jpy_PyLib.c:58:107: note: expanded from macro 'JPy_BEGIN_GIL_STATE'
#define JPy_BEGIN_GIL_STATE { PyGILState_STATE gilState; if (!JPy_InitThreads) {JPy_InitThreads = 1; PyEval_InitThreads(); PyEval_SaveThread(); } gilState = PyGILState_Ensure();
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/ceval.h:122:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyport.h:513:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
40 warnings and 1 error generated.
error: command '/usr/bin/clang' failed with exit code 1