Apr-19-2017, 11:12 PM
I can't even
Anyway, have you tried https://github.com/kivy/pyjnius/issues/2...-255604586 ?
pip install
that dependencyOutput:$ sudo pip install jnius
Collecting jnius
Using cached jnius-1.1.0.tar.gz
Collecting six>=1.7.0 (from jnius)
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading six-1.10.0-py2.py3-none-any.whl
Requirement already satisfied: cython in /usr/lib/pymodules/python2.7 (from jnius)
Installing collected packages: six, jnius
Found existing installation: six 1.1.0
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling six-1.1.0:
Successfully uninstalled six-1.1.0
Running setup.py install for jnius ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-KLx46Y/jnius/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-UrTzdD-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-2.7
copying jnius_config.py -> build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/jnius
copying jnius/__init__.py -> build/lib.linux-armv7l-2.7/jnius
copying jnius/reflect.py -> build/lib.linux-armv7l-2.7/jnius
copying jnius/signatures.py -> build/lib.linux-armv7l-2.7/jnius
running build_ext
cythoning jnius/jnius.pyx to jnius/jnius.c
Error compiling Cython file:
------------------------------------------------------------
...
ctypedef jlong const_jlong "const jlong"
ctypedef jfloat const_jfloat "const jfloat"
ctypedef jdouble const_jdouble "const jdouble"
ctypedef struct JNINativeMethod:
const char* name
^
------------------------------------------------------------
jnius/jni.pxi:39:18: Syntax error in C variable declaration
building 'jnius' extension
creating build/temp.linux-armv7l-2.7
creating build/temp.linux-armv7l-2.7/jnius
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/include -I/usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/include/linux -I/usr/in
jnius/jnius.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-KLx46Y/jnius/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-UrTzdD-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-KLx46Y/jnius/
Might be related to https://github.com/kivy/pyjnius/issues/219Anyway, have you tried https://github.com/kivy/pyjnius/issues/2...-255604586 ?