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
# we got a generic object -> lookup for the real name instead.
if r == 'java/lang/Object':
^
/home/desnos/python/pyjnius/jnius/jnius_conversion.pxi:82:9: Comparisons between bytes/unicode and str are not portable to Python 3
Error compiling Cython file:
...
# we got a generic object -> lookup for the real name instead.
if r == 'java/lang/Object':
r = lookup_java_object_name(j_env, j_object)
# if we got a string, just convert back to Python str.
if r == 'java/lang/String':
^
/home/desnos/python/pyjnius/jnius/jnius_conversion.pxi:86:9: Comparisons between bytes/unicode and str are not portable to Python 3
building 'jnius' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/jvm/java-6-sun-1.6.0.26/include -I/usr/lib/jvm/java-6-sun-1.6.0.26/include/linux -I/usr/include/python2.7 -c jnius/jnius.c -o build/temp.linux-x86_64-2.7/jnius/jnius.o
jnius/jnius.c:1:2: erreur: #error Do not use this file, it is the result of a failed Cython compilation.
error: command 'gcc' failed with exit status 1
make: *** [build_ext] Erreur 1
The text was updated successfully, but these errors were encountered:
I have the following errors with the latest version:
python setup.py build_ext --inplace -f
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running build_ext
cythoning jnius/jnius.pyx to jnius/jnius.c
Error compiling Cython file:
...
#XXX not working with cython?
#jint (RegisterNatives)(JNIEnv, jclass, const_JNINativeMethod_, jint)
jint (UnregisterNatives)(JNIEnv, jclass)
jint (MonitorEnter)(JNIEnv, jobject)
jint (MonitorExit)(JNIEnv, jobject)
jint (GetJavaVM)(JNIEnv, JavaVM_*)
^
/home/desnos/python/pyjnius/jnius/jni.pxi:375:42: 'JavaVM' is not a type identifier
Error compiling Cython file:
...
jboolean JNI_FALSE
ctypedef struct JavaVMInitArgs:
jint version
jint nOptions
jboolean ignoreUnrecognized
JavaVMOption *options
^
/home/desnos/python/pyjnius/jnius/jnius_jvm_desktop.pxi:12:8: 'JavaVMOption' is not a type identifier
Error compiling Cython file:
...
j_env[0].ExceptionClear(j_env)
raise JavaException('JVM exception occured')
cdef dict assignable_from = {}
cdef void check_assignable_from(JNIEnv *env, JavaClass jc, bytes signature) except *:
^
/home/desnos/python/pyjnius/jnius/jnius_utils.pxi:44:45: 'JavaClass' is not a type identifier
Error compiling Cython file:
...
cdef dict assignable_from = {}
cdef void check_assignable_from(JNIEnv *env, JavaClass jc, bytes signature) except *:
cdef jclass cls
/home/desnos/python/pyjnius/jnius/jnius_utils.pxi:48:17: Comparisons between bytes/unicode and str are not portable to Python 3
Error compiling Cython file:
...
cls = env[0].FindClass(env, signature)
if cls == NULL:
raise JavaException('Unable to found the class for {0!r}'.format(
signature))
/home/desnos/python/pyjnius/jnius/jnius_utils.pxi:66:53: Cannot convert Python object to 'jclass'
Error compiling Cython file:
...
/home/desnos/python/pyjnius/jnius/jnius_utils.pxi:103:13: Comparisons between bytes/unicode and str are not portable to Python 3
Error compiling Cython file:
...
if not isinstance(arg, bool):
return -1
score += 10
continue
/home/desnos/python/pyjnius/jnius/jnius_utils.pxi:109:13: Comparisons between bytes/unicode and str are not portable to Python 3
Error compiling Cython file:
...
if not isinstance(arg, int):
return -1
score += 10
continue
/home/desnos/python/pyjnius/jnius/jnius_utils.pxi:115:13: Comparisons between bytes/unicode and str are not portable to Python 3
Error compiling Cython file:
...
if not isinstance(arg, str) or len(arg) != 1:
return -1
score += 10
continue
/home/desnos/python/pyjnius/jnius/jnius_utils.pxi:121:13: Comparisons between bytes/unicode and str are not portable to Python 3
Error compiling Cython file:
...
if not isinstance(arg, str) or len(arg) != 1:
return -1
score += 10
continue
/home/desnos/python/pyjnius/jnius/jnius_utils.pxi:121:25: Comparisons between bytes/unicode and str are not portable to Python 3
Error compiling Cython file:
...
if not isinstance(arg, str) or len(arg) != 1:
return -1
score += 10
continue
/home/desnos/python/pyjnius/jnius/jnius_utils.pxi:121:37: Comparisons between bytes/unicode and str are not portable to Python 3
Error compiling Cython file:
...
score += 5
continue
else:
return -1
/home/desnos/python/pyjnius/jnius/jnius_utils.pxi:131:13: Comparisons between bytes/unicode and str are not portable to Python 3
Error compiling Cython file:
...
score += 5
continue
else:
return -1
/home/desnos/python/pyjnius/jnius/jnius_utils.pxi:131:25: Comparisons between bytes/unicode and str are not portable to Python 3
Error compiling Cython file:
...
if arg is None:
score += 10
continue
/home/desnos/python/pyjnius/jnius/jnius_utils.pxi:150:17: Comparisons between bytes/unicode and str are not portable to Python 3
Error compiling Cython file:
...
score += 10
continue
/home/desnos/python/pyjnius/jnius/jnius_utils.pxi:156:17: Comparisons between bytes/unicode and str are not portable to Python 3
Error compiling Cython file:
...
cdef bytes r = definition[1:-1]
cdef JavaObject ret_jobject
cdef JavaClass ret_jc
/home/desnos/python/pyjnius/jnius/jnius_conversion.pxi:82:9: Comparisons between bytes/unicode and str are not portable to Python 3
Error compiling Cython file:
...
# we got a generic object -> lookup for the real name instead.
if r == 'java/lang/Object':
r = lookup_java_object_name(j_env, j_object)
/home/desnos/python/pyjnius/jnius/jnius_conversion.pxi:86:9: Comparisons between bytes/unicode and str are not portable to Python 3
building 'jnius' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/jvm/java-6-sun-1.6.0.26/include -I/usr/lib/jvm/java-6-sun-1.6.0.26/include/linux -I/usr/include/python2.7 -c jnius/jnius.c -o build/temp.linux-x86_64-2.7/jnius/jnius.o
jnius/jnius.c:1:2: erreur: #error Do not use this file, it is the result of a failed Cython compilation.
error: command 'gcc' failed with exit status 1
make: *** [build_ext] Erreur 1
The text was updated successfully, but these errors were encountered: