pip install jsonlib

Probleme bei der Installation?
Antworten
Mr. R341
User
Beiträge: 46
Registriert: Dienstag 29. September 2020, 10:51

Nun... Dashier:

Code: Alles auswählen

ERROR: Command errored out with exit status 1:
     command: /data/data/com.termux/files/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/data/data/com.termux/files/usr/tmp/pip-install-jgrf_2vx/jsonlib_6a8ca43c35e04ab3a58e5adb6b36debc/setup.py'"'"'; __file__='"'"'/data/data/com.termux/files/usr/tmp/pip-install-jgrf_2vx/jsonlib_6a8ca43c35e04ab3a58e5adb6b36debc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /data/data/com.termux/files/usr/tmp/pip-record-sptuu2kq/install-record.txt --single-version-externally-managed --compile --install-headers /data/data/com.termux/files/usr/include/python3.9/jsonlib
         cwd: /data/data/com.termux/files/usr/tmp/pip-install-jgrf_2vx/jsonlib_6a8ca43c35e04ab3a58e5adb6b36debc/
    Complete output (447 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-aarch64-3.9
    copying jsonlib.py -> build/lib.linux-aarch64-3.9
    running build_ext
    building '_jsonlib' extension
    creating build/temp.linux-aarch64-3.9
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fstack-protector-strong -O3 -fstack-protector-strong -O3 -fPIC -I/data/data/com.termux/files/usr/include/python3.9 -c _jsonlib.c -o build/temp.linux-aarch64-3.9/_jsonlib.o
    _jsonlib.c:98:17: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
            parser.start = PyUnicode_AsUnicode (text);
                           ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:99:30: warning: 'PyUnicode_GetSize' is deprecated [-Wdeprecated-declarations]
            parser.end = parser.start + PyUnicode_GetSize (text);
                                        ^
    /data/data/com.termux/files/usr/include/python3.9/unicodeobject.h:177:1: note: 'PyUnicode_GetSize' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:310:10: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
                    return PyUnicode_FromUnicode (NULL, 0);
                           ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:348:17: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
            if ((unicode = PyUnicode_FromUnicode (start + 1, ii - 1)))
                           ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:396:15: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
                                    unicode = PyUnicode_FromUnicode (buffer, buffer_idx);
                                              ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:450:12: warning: 'PyLong_FromUnicode' is deprecated [-Wdeprecated-declarations]
            py_long = PyLong_FromUnicode (start, 4, 16);
                      ^
    /data/data/com.termux/files/usr/include/python3.9/longobject.h:105:1: note: 'PyLong_FromUnicode' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:550:26: warning: comparison of integers of different signs: 'long' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
            if (parser->end - index < len)
                ~~~~~~~~~~~~~~~~~~~ ^ ~~~
    _jsonlib.c:638:16: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
                            if (!(str = PyUnicode_FromUnicode (parser->index,
                                        ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:643:40: error: too many arguments to function call, expected 1, have 2
                            { object = PyFloat_FromString (str, NULL); }
                                       ~~~~~~~~~~~~~~~~~~       ^~~~
    /data/data/com.termux/files/usr/lib/clang/10.0.1/include/stddef.h:89:16: note: expanded from macro 'NULL'
    #  define NULL ((void*)0)
                   ^~~~~~~~~~
    /data/data/com.termux/files/usr/include/python3.9/floatobject.h:42:1: note: 'PyFloat_FromString' declared here
    PyAPI_FUNC(PyObject *) PyFloat_FromString(PyObject*);
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:698:34: note: expanded from macro 'PyAPI_FUNC'
    #       define PyAPI_FUNC(RTYPE) Py_EXPORTED_SYMBOL RTYPE
                                     ^
    /data/data/com.termux/files/usr/include/python3.9/exports.h:21:36: note: expanded from macro 'Py_EXPORTED_SYMBOL'
            #define Py_EXPORTED_SYMBOL __attribute__ ((visibility ("default")))
                                       ^
    _jsonlib.c:655:13: warning: 'PyLong_FromUnicode' is deprecated [-Wdeprecated-declarations]
                            object = PyLong_FromUnicode (parser->index,
                                     ^
    /data/data/com.termux/files/usr/include/python3.9/longobject.h:105:1: note: 'PyLong_FromUnicode' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1186:13: warning: implicit declaration of function 'PyString_CheckExact' is invalid in C99 [-Wimplicit-function-declaration]
                    || PyString_CheckExact (key)
                       ^
    _jsonlib.c:1188:13: warning: implicit declaration of function 'PyString_Check' is invalid in C99 [-Wimplicit-function-declaration]
                    || PyString_Check (key)
                       ^
    _jsonlib.c:1208:19: warning: implicit declaration of function 'PyObject_Unicode' is invalid in C99 [-Wimplicit-function-declaration]
                    if (!(new_key = PyObject_Unicode (key)))
                                    ^
    _jsonlib.c:1208:17: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
                    if (!(new_key = PyObject_Unicode (key)))
                                  ^ ~~~~~~~~~~~~~~~~~~~~~~
    _jsonlib.c:1403:6: warning: implicit declaration of function 'PyString_CheckExact' is invalid in C99 [-Wimplicit-function-declaration]
            if (PyString_CheckExact (value))
                ^
    _jsonlib.c:1406:6: warning: implicit declaration of function 'PyInt_CheckExact' is invalid in C99 [-Wimplicit-function-declaration]
            if (PyInt_CheckExact (value) || PyLong_CheckExact (value))
                ^
    _jsonlib.c:1466:10: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
            chars = PyUnicode_AS_UNICODE (value);
                    ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:279:7: note: expanded from macro 'PyUnicode_AS_UNICODE'
          PyUnicode_AsUnicode(_PyObject_CAST(op)))
          ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1467:15: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
            char_count = PyUnicode_GET_SIZE (value);
                         ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
          PyUnicode_WSTR_LENGTH(op) :                    \
          ^
    /data/data/com.termux/files/usr/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)
                                      ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1467:15: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
            char_count = PyUnicode_GET_SIZE (value);
                         ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
          ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
                 ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1467:15: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
            char_count = PyUnicode_GET_SIZE (value);
                         ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
           PyUnicode_WSTR_LENGTH(op)))
           ^
    /data/data/com.termux/files/usr/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)
                                      ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1517:34: warning: implicit declaration of function 'PyString_AS_STRING' is invalid in C99 [-Wimplicit-function-declaration]
            if (!(unicode = ascii_constant (PyString_AS_STRING (value))))
                                            ^
    _jsonlib.c:1517:34: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
            if (!(unicode = ascii_constant (PyString_AS_STRING (value))))
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
    _jsonlib.c:886:29: note: passing argument to parameter 'value' here
    ascii_constant (const char *value)
                                ^
    _jsonlib.c:1536:6: warning: implicit declaration of function 'PyString_Check' is invalid in C99 [-Wimplicit-function-declaration]
            if (PyString_Check (value))
                ^
    _jsonlib.c:1539:6: warning: implicit declaration of function 'PyInt_Check' is invalid in C99 [-Wimplicit-function-declaration]
            if (PyInt_Check (value) || PyLong_Check (value))
                ^
    _jsonlib.c:1702:15: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
            old_buffer = PyUnicode_AS_UNICODE (value);
                         ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:279:7: note: expanded from macro 'PyUnicode_AS_UNICODE'
          PyUnicode_AsUnicode(_PyObject_CAST(op)))
          ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1703:20: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
            old_buffer_size = PyUnicode_GET_SIZE (value);
                              ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
          PyUnicode_WSTR_LENGTH(op) :                    \
          ^
    /data/data/com.termux/files/usr/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)
                                      ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1703:20: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
            old_buffer_size = PyUnicode_GET_SIZE (value);
                              ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
          ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
                 ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1703:20: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
            old_buffer_size = PyUnicode_GET_SIZE (value);
                              ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
           PyUnicode_WSTR_LENGTH(op)))
           ^
    /data/data/com.termux/files/usr/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)
                                      ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1751:17: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
            if (!(retval = PyUnicode_FromUnicode (NULL, new_buffer_size)))
                           ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1755:6: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
            p = PyUnicode_AS_UNICODE (retval);
                ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:279:7: note: expanded from macro 'PyUnicode_AS_UNICODE'
          PyUnicode_AsUnicode(_PyObject_CAST(op)))
          ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1782:15: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
            old_buffer = PyUnicode_AS_UNICODE (value);
                         ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:279:7: note: expanded from macro 'PyUnicode_AS_UNICODE'
          PyUnicode_AsUnicode(_PyObject_CAST(op)))
          ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1783:20: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
            old_buffer_size = PyUnicode_GET_SIZE (value);
                              ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
          PyUnicode_WSTR_LENGTH(op) :                    \
          ^
    /data/data/com.termux/files/usr/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)
                                      ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1783:20: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
            old_buffer_size = PyUnicode_GET_SIZE (value);
                              ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
          ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
                 ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1783:20: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
            old_buffer_size = PyUnicode_GET_SIZE (value);
                              ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
           PyUnicode_WSTR_LENGTH(op)))
           ^
    /data/data/com.termux/files/usr/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)
                                      ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1821:17: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
            if (!(retval = PyUnicode_FromUnicode (NULL, new_buffer_size)))
                           ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1825:6: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
            p = PyUnicode_AS_UNICODE (retval);
                ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:279:7: note: expanded from macro 'PyUnicode_AS_UNICODE'
          PyUnicode_AsUnicode(_PyObject_CAST(op)))
          ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1931:10: warning: implicit declaration of function 'PyString_AS_STRING' is invalid in C99 [-Wimplicit-function-declaration]
            c_str = PyString_AS_STRING (str);
                    ^
    _jsonlib.c:1931:8: warning: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion]
            c_str = PyString_AS_STRING (str);
                  ^ ~~~~~~~~~~~~~~~~~~~~~~~~
    _jsonlib.c:1970:37: warning: implicit declaration of function 'PyString_AS_STRING' is invalid in C99 [-Wimplicit-function-declaration]
            return serializer_append_ascii (s, PyString_AS_STRING (obj));
                                               ^
    _jsonlib.c:1970:37: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion]
            return serializer_append_ascii (s, PyString_AS_STRING (obj));
                                               ^~~~~~~~~~~~~~~~~~~~~~~~
    _jsonlib.c:865:52: note: passing argument to parameter here
    serializer_append_ascii (Serializer *, const char *);
                                                       ^
    _jsonlib.c:1993:21: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
            Py_UNICODE *text = PyUnicode_AS_UNICODE (obj);
                               ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:279:7: note: expanded from macro 'PyUnicode_AS_UNICODE'
          PyUnicode_AsUnicode(_PyObject_CAST(op)))
          ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1994:28: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
            Py_ssize_t ii, len_text = PyUnicode_GET_SIZE (obj);
                                      ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'
          PyUnicode_WSTR_LENGTH(op) :                    \
          ^
    /data/data/com.termux/files/usr/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)
                                      ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1994:28: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]
            Py_ssize_t ii, len_text = PyUnicode_GET_SIZE (obj);
                                      ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'
          ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
                 ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:1994:28: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
            Py_ssize_t ii, len_text = PyUnicode_GET_SIZE (obj);
                                      ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'
           PyUnicode_WSTR_LENGTH(op)))
           ^
    /data/data/com.termux/files/usr/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)
                                      ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3)
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:2089:12: warning: 'PyUnicode_Encode' is deprecated [-Wdeprecated-declarations]
                    merged = PyUnicode_Encode (raw_merged, total, s->encoding,
                             ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:780:1: note: 'PyUnicode_Encode' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_Encode(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:2095:12: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
                    merged = PyUnicode_FromUnicode (raw_merged, total);
                             ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:2123:9: warning: 'PyUnicode_Encode' is deprecated [-Wdeprecated-declarations]
                    obj = PyUnicode_Encode (base->buffer, base->buffer_size,
                          ^
    /data/data/com.termux/files/usr/include/python3.9/cpython/unicodeobject.h:780:1: note: 'PyUnicode_Encode' has been explicitly marked deprecated here
    Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_Encode(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:2129:9: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
                    obj = PyUnicode_FromUnicode(base->buffer, base->buffer_size);
                          ^
    /data/data/com.termux/files/usr/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(
    ^
    /data/data/com.termux/files/usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    _jsonlib.c:2161:2: warning: implicit declaration of function 'Py_InitModule3' is invalid in C99 [-Wimplicit-function-declaration]
            Py_InitModule3 ("_jsonlib", jsonlib_methods, jsonlib_doc);
            ^
    48 warnings and 1 error generated.
    error: command '/data/data/com.termux/files/usr/bin/aarch64-linux-android-clang' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /data/data/com.termux/files/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/data/data/com.termux/files/usr/tmp/pip-install-jgrf_2vx/jsonlib_6a8ca43c35e04ab3a58e5adb6b36debc/setup.py'"'"'; __file__='"'"'/data/data/com.termux/files/usr/tmp/pip-install-jgrf_2vx/jsonlib_6a8ca43c35e04ab3a58e5adb6b36debc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /data/data/com.termux/files/usr/tmp/pip-record-sptuu2kq/install-record.txt --single-version-externally-managed --compile --install-headers /data/data/com.termux/files/usr/include/python3.9/jsonlib Check the logs for full command output.
Benutzeravatar
sparrow
User
Beiträge: 4185
Registriert: Freitag 17. April 2009, 10:28

Eine richtige Frage zu formulieren - das ging nicht?

Warum möchtest du ein Modul installieren, das seit 10 Jahren nicht mehr gepflegt wird?
Sirius3
User
Beiträge: 17737
Registriert: Sonntag 21. Oktober 2012, 17:20

Ich habe auch keine Lust eine nicht gestellte Frage zu beantworten, bei der die Lösung schon in der Beschreibung steht.
Mr. R341
User
Beiträge: 46
Registriert: Dienstag 29. September 2020, 10:51

Sry... War noch auf der heimreise... Und als ich die Frage formulieren wollte kam mein Zug 🙄

Ich hab keine Ahnung, wie ich diesen Fehlercode lesen soll (auch weil ich am Handy bin und der Zeilenumbruch dezent doof ist...

Ich wollte ein script ausführen, dass import json beinhaltet, aber das Modul ist nicht bekannt.
pip install json kennt er nicht, also hab ich schnell gegoogelt. Aber bekomme diese extrem riesige Fehlermeldung und habe keine Ahnung, was ich da nun rauslesen soll.. bzw. WO ich den eigentlichen Fehler rauslesen soll..

Könnt ihr mir helfen? 😊
Benutzeravatar
sparrow
User
Beiträge: 4185
Registriert: Freitag 17. April 2009, 10:28

Das erinnert mich an eine Geschichte in einem Handwerkerforum. Schreibt jemand, dass er im Internet gesucht hat und sich die beste Stichsäge überhaupt gekauft hat. Das Forum stimmt zu - die Beste der Besten! Aber er sagt, die ist Mist, das Sägblatt bricht ständig ab - quasi sofort. Es bleibt nicht einen Sekunde heil. Das Forum rätselt und versucht - Lösungsversuche werden erarbeitet - nichts hilft. Der Hersteller wird kontaktiert - auch dort ist man ratlos. Die Beste der Besten - nicht eine Reklamation in 438 Jahren!
Nach Tagen fragt jemand: "Was machst du eigentlich mit der Stichsäge?" Und die Antwort: "Na, ich versuche ein Loch in die Wand zu bohren!"

Und du kannst die Fehlermeldung nicht lesen - aber wir sollen das für dich machen?

Das json Modul ist Teil der Standardinstallation. Da muss man nichts installieren.
Welche Python-Version setzt du ein?
Mr. R341
User
Beiträge: 46
Registriert: Dienstag 29. September 2020, 10:51

3.9.1 .. hmm.. über die Konsole funktionierts auch...

😂😂 Ja okay.... mit einer Stichsäge kann man halt kein Loch in die Wand stechen...

Ich kann sie schon lesen... Aber verstehen nicht
Antworten