pyjnius icon indicating copy to clipboard operation
pyjnius copied to clipboard

no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?

Open wwtghx opened this issue 4 years ago • 2 comments

I am using buildozer, the following error occurs:

[INFO]: STDOUT (last 20 lines of 114): jnius/jnius.c:56467:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'? tmp_value = tstate->exc_value; ^~~~~~~~~ curexc_value /home/jim/kivy_venv/share/kivy-examples/demo/pictures/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Include/pystate.h:240:15: note: 'curexc_value' declared here PyObject *curexc_value; ^ jnius/jnius.c:56468:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'? tmp_tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback /home/jim/kivy_venv/share/kivy-examples/demo/pictures/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Include/pystate.h:241:15: note: 'curexc_traceback' declared here PyObject *curexc_traceback; ^ jnius/jnius.c:56469:13: error: no member named 'exc_type' in 'struct _ts' tstate->exc_type = *type; ~~~~~~ ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 1 warning and 20 errors generated. error: command '/usr/bin/ccache' failed with exit status 1

wwtghx avatar Mar 22 '20 08:03 wwtghx

See discussion on https://github.com/SheffieldML/GPy/issues/649

cmacdonald avatar Apr 02 '20 16:04 cmacdonald

hm, i'm a bit confused by this discussion, as our tar.gz releases don't contain c files, (and our wheels are of course compiled for each specific python, but that's not relevant here as this is for buildozer, there is no wheel for android arm). Also, buildozer/p4a does depend on pyjnius, and i've confirmed the updated version was building with it after the release. Maybe you installed an old version of cython (or a version not for 3.7) and it builds incompatible files for python3.7?

tshirtman avatar Apr 08 '20 20:04 tshirtman