You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I need to install javabridge for MacOS Sonoma but keep getting the below error, any help would be much appreciated:
Collecting javabridge
Using cached javabridge-1.0.19.tar.gz (1.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in ./Py3.9env/lib/python3.9/site-packages (from javabridge) (1.26.4)
Building wheels for collected packages: javabridge
Building wheel for javabridge (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for javabridge (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [258 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-14-arm64-cpython-39
creating build/lib.macosx-14-arm64-cpython-39/javabridge
copying javabridge/_version.py -> build/lib.macosx-14-arm64-cpython-39/javabridge
copying javabridge/jutil.py -> build/lib.macosx-14-arm64-cpython-39/javabridge
copying javabridge/locate.py -> build/lib.macosx-14-arm64-cpython-39/javabridge
copying javabridge/init.py -> build/lib.macosx-14-arm64-cpython-39/javabridge
copying javabridge/wrappers.py -> build/lib.macosx-14-arm64-cpython-39/javabridge
copying javabridge/noseplugin.py -> build/lib.macosx-14-arm64-cpython-39/javabridge
creating build/lib.macosx-14-arm64-cpython-39/javabridge/tests
copying javabridge/tests/init.py -> build/lib.macosx-14-arm64-cpython-39/javabridge/tests
copying javabridge/tests/test_cpython.py -> build/lib.macosx-14-arm64-cpython-39/javabridge/tests
copying javabridge/tests/test_javabridge.py -> build/lib.macosx-14-arm64-cpython-39/javabridge/tests
copying javabridge/tests/test_jutil.py -> build/lib.macosx-14-arm64-cpython-39/javabridge/tests
copying javabridge/tests/test_wrappers.py -> build/lib.macosx-14-arm64-cpython-39/javabridge/tests
creating build/lib.macosx-14-arm64-cpython-39/javabridge/jars
copying javabridge/jars/rhino-1.7R4.jar -> build/lib.macosx-14-arm64-cpython-39/javabridge/jars
copying javabridge/jars/runnablequeue.jar -> build/lib.macosx-14-arm64-cpython-39/javabridge/jars
copying javabridge/jars/cpython.jar -> build/lib.macosx-14-arm64-cpython-39/javabridge/jars
copying javabridge/jars/test.jar -> build/lib.macosx-14-arm64-cpython-39/javabridge/jars
running build_ext
javac /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-install-lrxn40q3/javabridge_e6fb09b11e8148c2b7aa4e59eed59020/java/org/cellprofiler/runnablequeue/RunnableQueue.java
javac /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-install-lrxn40q3/javabridge_e6fb09b11e8148c2b7aa4e59eed59020/java/org/cellprofiler/javabridge/test/RealRect.java
javac /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-install-lrxn40q3/javabridge_e6fb09b11e8148c2b7aa4e59eed59020/java/org/cellprofiler/javabridge/CPython.java /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-install-lrxn40q3/javabridge_e6fb09b11e8148c2b7aa4e59eed59020/java/org/cellprofiler/javabridge/CPythonInvocationHandler.java
Note: /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-install-lrxn40q3/javabridge_e6fb09b11e8148c2b7aa4e59eed59020/java/org/cellprofiler/javabridge/CPythonInvocationHandler.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
building 'javabridge._javabridge' extension
creating build/temp.macosx-14-arm64-cpython-39
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/opt/homebrew/opt/openjdk/include -I/opt/homebrew/Cellar/openjdk/21.0.3/libexec/openjdk.jdk/Contents/Home/include -I/opt/homebrew/Cellar/openjdk/21.0.3/libexec/openjdk.jdk/Contents/Home/include/darwin -I/private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-build-env-r0ijq55s/normal/lib/python3.9/site-packages/numpy/core/include -I/Users/sh2717/Py3.9env/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c _javabridge.c -o build/temp.macosx-14-arm64-cpython-39/_javabridge.o
In file included from _javabridge.c:598:
In file included from /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-build-env-r0ijq55s/normal/lib/python3.9/site-packages/numpy/core/include/numpy/arrayobject.h:5:
In file included from /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-build-env-r0ijq55s/normal/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-build-env-r0ijq55s/normal/lib/python3.9/site-packages/numpy/core/include/numpy/ndarraytypes.h:1929:
/private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-build-env-r0ijq55s/normal/lib/python3.9/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with "
^
_javabridge.c:5159:37: warning: cast to smaller integer type 'int' from 'jobject' (aka 'struct _jobject *') [-Wpointer-to-int-cast]
__pyx_t_1 = __Pyx_PyInt_From_int(((int)__pyx_v_self->o)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 475, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~
_javabridge.c:5444:37: warning: cast to smaller integer type 'int' from 'jobject' (aka 'struct _jobject *') [-Wpointer-to-int-cast]
__pyx_t_1 = __Pyx_PyInt_From_int(((int)__pyx_v_self->o)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 493, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~
_javabridge.c:5668:37: warning: cast to smaller integer type 'int' from 'jclass' (aka 'struct _jobject *') [-Wpointer-to-int-cast]
__pyx_t_1 = __Pyx_PyInt_From_int(((int)__pyx_v_self->c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 502, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~
_javabridge.c:6022:41: warning: cast to smaller integer type 'int' from 'jmethodID' (aka 'struct _jmethodID *') [-Wpointer-to-int-cast]
__pyx_t_4 = __Pyx_PyUnicode_From_int(((int)__pyx_v_self->id), 0, ' ', 'x'); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 521, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~~
_javabridge.c:6301:41: warning: cast to smaller integer type 'int' from 'jfieldID' (aka 'struct _jfieldID *') [-Wpointer-to-int-cast]
__pyx_t_4 = __Pyx_PyUnicode_From_int(((int)__pyx_v_self->id), 0, ' ', 'x'); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 535, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~~
_javabridge.c:8122:36: error: call to undeclared function 'CreateJavaVM'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
__pyx_t_3 = __Pyx_PyInt_From_int(CreateJavaVM((&__pyx_v_self->vm), ((void **)(&__pyx_v_env)), (&__pyx_v_args))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 651, __pyx_L1_error)
^
_javabridge.c:8122:36: note: did you mean 'JNI_CreateJavaVM'?
/opt/homebrew/opt/openjdk/include/jni.h:1974:1: note: 'JNI_CreateJavaVM' declared here
JNI_CreateJavaVM(JavaVM **pvm, void **penv, void *args);
^
_javabridge.c:9199:5: error: call to undeclared function 'StopVM'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
StopVM(__pyx_v_self->vm);
^
_javabridge.c:20700:18: warning: cast to smaller integer type 'int' from 'jobject' (aka 'struct _jobject *') [-Wpointer-to-int-cast]
__pyx_t_1 = ((((int)__pyx_v_s->o) == 0) != 0);
^~~~~~~~~~~~~~~~~
_javabridge.c:20828:18: warning: cast to smaller integer type 'int' from 'jobject' (aka 'struct _jobject *') [-Wpointer-to-int-cast]
__pyx_t_1 = ((((int)__pyx_v_s->o) == 0) != 0);
^~~~~~~~~~~~~~~~~
_javabridge.c:29747:3: error: incompatible pointer to integer conversion returning 'void ' from a function with result type 'int' [-Wint-conversion]
import_array();
^~~~~~~~~~~~~~
/private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-build-env-r0ijq55s/normal/lib/python3.9/site-packages/numpy/core/include/numpy/__multiarray_api.h:1558:151: note: expanded from macro 'import_array'
#define import_array() {if (_import_array() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.multiarray failed to import"); return NULL; } }
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
# define NULL ((void)0)
^~~~~~~~~~
_javabridge.c:30479:22: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op) :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30479:22: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30479:22: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op)))
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30479:52: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op) :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30479:52: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30479:52: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op)))
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30495:26: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op) :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30495:26: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30495:26: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op)))
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30495:59: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op) :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30495:59: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30495:59: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op)))
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:32461:16: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
return PyUnicode_FromUnicode(NULL, 0);
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:551:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject) PyUnicode_FromUnicode(
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
21 warnings and 3 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for javabridge
Failed to build javabridge
ERROR: Could not build wheels for javabridge, which is required to install pyproject.toml-based projects
The text was updated successfully, but these errors were encountered:
Hello! I was having trouble to install javabridge as well, so I did this fork as a temporary fix and I could finally download and import javabridge. It worked in my google colab!
Hi I need to install javabridge for MacOS Sonoma but keep getting the below error, any help would be much appreciated:
Collecting javabridge
Using cached javabridge-1.0.19.tar.gz (1.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in ./Py3.9env/lib/python3.9/site-packages (from javabridge) (1.26.4)
Building wheels for collected packages: javabridge
Building wheel for javabridge (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for javabridge (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [258 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-14-arm64-cpython-39
creating build/lib.macosx-14-arm64-cpython-39/javabridge
copying javabridge/_version.py -> build/lib.macosx-14-arm64-cpython-39/javabridge
copying javabridge/jutil.py -> build/lib.macosx-14-arm64-cpython-39/javabridge
copying javabridge/locate.py -> build/lib.macosx-14-arm64-cpython-39/javabridge
copying javabridge/init.py -> build/lib.macosx-14-arm64-cpython-39/javabridge
copying javabridge/wrappers.py -> build/lib.macosx-14-arm64-cpython-39/javabridge
copying javabridge/noseplugin.py -> build/lib.macosx-14-arm64-cpython-39/javabridge
creating build/lib.macosx-14-arm64-cpython-39/javabridge/tests
copying javabridge/tests/init.py -> build/lib.macosx-14-arm64-cpython-39/javabridge/tests
copying javabridge/tests/test_cpython.py -> build/lib.macosx-14-arm64-cpython-39/javabridge/tests
copying javabridge/tests/test_javabridge.py -> build/lib.macosx-14-arm64-cpython-39/javabridge/tests
copying javabridge/tests/test_jutil.py -> build/lib.macosx-14-arm64-cpython-39/javabridge/tests
copying javabridge/tests/test_wrappers.py -> build/lib.macosx-14-arm64-cpython-39/javabridge/tests
creating build/lib.macosx-14-arm64-cpython-39/javabridge/jars
copying javabridge/jars/rhino-1.7R4.jar -> build/lib.macosx-14-arm64-cpython-39/javabridge/jars
copying javabridge/jars/runnablequeue.jar -> build/lib.macosx-14-arm64-cpython-39/javabridge/jars
copying javabridge/jars/cpython.jar -> build/lib.macosx-14-arm64-cpython-39/javabridge/jars
copying javabridge/jars/test.jar -> build/lib.macosx-14-arm64-cpython-39/javabridge/jars
running build_ext
javac /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-install-lrxn40q3/javabridge_e6fb09b11e8148c2b7aa4e59eed59020/java/org/cellprofiler/runnablequeue/RunnableQueue.java
javac /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-install-lrxn40q3/javabridge_e6fb09b11e8148c2b7aa4e59eed59020/java/org/cellprofiler/javabridge/test/RealRect.java
javac /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-install-lrxn40q3/javabridge_e6fb09b11e8148c2b7aa4e59eed59020/java/org/cellprofiler/javabridge/CPython.java /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-install-lrxn40q3/javabridge_e6fb09b11e8148c2b7aa4e59eed59020/java/org/cellprofiler/javabridge/CPythonInvocationHandler.java
Note: /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-install-lrxn40q3/javabridge_e6fb09b11e8148c2b7aa4e59eed59020/java/org/cellprofiler/javabridge/CPythonInvocationHandler.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
building 'javabridge._javabridge' extension
creating build/temp.macosx-14-arm64-cpython-39
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/opt/homebrew/opt/openjdk/include -I/opt/homebrew/Cellar/openjdk/21.0.3/libexec/openjdk.jdk/Contents/Home/include -I/opt/homebrew/Cellar/openjdk/21.0.3/libexec/openjdk.jdk/Contents/Home/include/darwin -I/private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-build-env-r0ijq55s/normal/lib/python3.9/site-packages/numpy/core/include -I/Users/sh2717/Py3.9env/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c _javabridge.c -o build/temp.macosx-14-arm64-cpython-39/_javabridge.o
In file included from _javabridge.c:598:
In file included from /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-build-env-r0ijq55s/normal/lib/python3.9/site-packages/numpy/core/include/numpy/arrayobject.h:5:
In file included from /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-build-env-r0ijq55s/normal/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-build-env-r0ijq55s/normal/lib/python3.9/site-packages/numpy/core/include/numpy/ndarraytypes.h:1929:
/private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-build-env-r0ijq55s/normal/lib/python3.9/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with "
^
_javabridge.c:5159:37: warning: cast to smaller integer type 'int' from 'jobject' (aka 'struct _jobject *') [-Wpointer-to-int-cast]
__pyx_t_1 = __Pyx_PyInt_From_int(((int)__pyx_v_self->o)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 475, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~
_javabridge.c:5444:37: warning: cast to smaller integer type 'int' from 'jobject' (aka 'struct _jobject *') [-Wpointer-to-int-cast]
__pyx_t_1 = __Pyx_PyInt_From_int(((int)__pyx_v_self->o)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 493, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~
_javabridge.c:5668:37: warning: cast to smaller integer type 'int' from 'jclass' (aka 'struct _jobject *') [-Wpointer-to-int-cast]
__pyx_t_1 = __Pyx_PyInt_From_int(((int)__pyx_v_self->c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 502, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~
_javabridge.c:6022:41: warning: cast to smaller integer type 'int' from 'jmethodID' (aka 'struct _jmethodID *') [-Wpointer-to-int-cast]
__pyx_t_4 = __Pyx_PyUnicode_From_int(((int)__pyx_v_self->id), 0, ' ', 'x'); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 521, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~~
_javabridge.c:6301:41: warning: cast to smaller integer type 'int' from 'jfieldID' (aka 'struct _jfieldID *') [-Wpointer-to-int-cast]
__pyx_t_4 = __Pyx_PyUnicode_From_int(((int)__pyx_v_self->id), 0, ' ', 'x'); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 535, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~~
_javabridge.c:8122:36: error: call to undeclared function 'CreateJavaVM'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
__pyx_t_3 = __Pyx_PyInt_From_int(CreateJavaVM((&__pyx_v_self->vm), ((void **)(&__pyx_v_env)), (&__pyx_v_args))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 651, __pyx_L1_error)
^
_javabridge.c:8122:36: note: did you mean 'JNI_CreateJavaVM'?
/opt/homebrew/opt/openjdk/include/jni.h:1974:1: note: 'JNI_CreateJavaVM' declared here
JNI_CreateJavaVM(JavaVM **pvm, void **penv, void *args);
^
_javabridge.c:9199:5: error: call to undeclared function 'StopVM'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
StopVM(__pyx_v_self->vm);
^
_javabridge.c:20700:18: warning: cast to smaller integer type 'int' from 'jobject' (aka 'struct _jobject *') [-Wpointer-to-int-cast]
__pyx_t_1 = ((((int)__pyx_v_s->o) == 0) != 0);
^~~~~~~~~~~~~~~~~
_javabridge.c:20828:18: warning: cast to smaller integer type 'int' from 'jobject' (aka 'struct _jobject *') [-Wpointer-to-int-cast]
__pyx_t_1 = ((((int)__pyx_v_s->o) == 0) != 0);
^~~~~~~~~~~~~~~~~
_javabridge.c:29747:3: error: incompatible pointer to integer conversion returning 'void ' from a function with result type 'int' [-Wint-conversion]
import_array();
^~~~~~~~~~~~~~
/private/var/folders/lj/ryd6w92n71v0r70344w19dfr0000gp/T/pip-build-env-r0ijq55s/normal/lib/python3.9/site-packages/numpy/core/include/numpy/__multiarray_api.h:1558:151: note: expanded from macro 'import_array'
#define import_array() {if (_import_array() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.multiarray failed to import"); return NULL; } }
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
# define NULL ((void)0)
^~~~~~~~~~
_javabridge.c:30479:22: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op) :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30479:22: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30479:22: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op)))
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30479:52: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op) :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30479:52: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30479:52: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op)))
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30495:26: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op) :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30495:26: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30495:26: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op)))
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30495:59: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op) :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30495:59: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:30495:59: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
PyUnicode_WSTR_LENGTH(op)))
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'
#define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
_javabridge.c:32461:16: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
return PyUnicode_FromUnicode(NULL, 0);
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:551:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject) PyUnicode_FromUnicode(
^
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
21 warnings and 3 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for javabridge
Failed to build javabridge
ERROR: Could not build wheels for javabridge, which is required to install pyproject.toml-based projects
The text was updated successfully, but these errors were encountered: