Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while trying to install ntfy in termux #274

Closed
aikooo7 opened this issue Aug 5, 2024 · 1 comment
Closed

Error while trying to install ntfy in termux #274

aikooo7 opened this issue Aug 5, 2024 · 1 comment

Comments

@aikooo7
Copy link

aikooo7 commented Aug 5, 2024

Hi everyone, when using pip install ntfy I get the following:

Collecting ntfy                                                                     Using cached ntfy-2.7.0-py2.py3-none-any.whl.metadata (23 kB)
Requirement already satisfied: requests in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from ntfy) (2.32.3)
Collecting ruamel.yaml (from ntfy)                                                  Using cached ruamel.yaml-0.18.6-py3-none-any.whl.metadata (23 kB)
Collecting appdirs (from ntfy)
  Using cached appdirs-1.4.4-py2.py3-none-any.whl.metadata (9.0 kB)
Requirement already satisfied: charset-normalizer<4,>=2 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from requests->ntfy) (3.3.2)               Requirement already satisfied: idna<4,>=2.5 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from requests->ntfy) (3.7)                             Requirement already satisfied: urllib3<3,>=1.21.1 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from requests->ntfy) (2.2.2)                     Requirement already satisfied: certifi>=2017.4.17 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from requests->ntfy) (2024.7.4)
Collecting ruamel.yaml.clib>=0.2.7 (from ruamel.yaml->ntfy)
  Using cached ruamel.yaml.clib-0.2.8.tar.gz (213 kB)
  Installing build dependencies ... done                                            Getting requirements to build wheel ... done                                      Preparing metadata (pyproject.toml) ... done                                    Using cached ntfy-2.7.0-py2.py3-none-any.whl (61 kB)
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)                          Using cached ruamel.yaml-0.18.6-py3-none-any.whl (117 kB)
Building wheels for collected packages: ruamel.yaml.clib                            Building wheel for ruamel.yaml.clib (pyproject.toml) ... error
  error: subprocess-exited-with-error                                             
  × Building wheel for ruamel.yaml.clib (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [311 lines of output]                                                             /data/data/com.termux/files/usr/tmp/pip-build-env-zsgfxn5t/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py:268: UserWarning: Unknown distribution option: 'test_suite'
        warnings.warn(msg)                                                              running bdist_wheel
      running build                                                                     running build_py
      creating build                                                                    creating build/lib.linux-aarch64-cpython-311
      creating build/lib.linux-aarch64-cpython-311/ruamel
      creating build/lib.linux-aarch64-cpython-311/ruamel/yaml
      creating build/lib.linux-aarch64-cpython-311/ruamel/yaml/clib                     copying ./__init__.py -> build/lib.linux-aarch64-cpython-311/ruamel/yaml/clib                                                                                       copying ./setup.py -> build/lib.linux-aarch64-cpython-311/ruamel/yaml/clib
      copying ./LICENSE -> build/lib.linux-aarch64-cpython-311/ruamel/yaml/clib         running build_ext
      building '_ruamel_yaml' extension
      creating build/temp.linux-aarch64-cpython-311                                     aarch64-linux-android-clang -DNDEBUG -g -fwrapv -O3 -Wall -fstack-protector-strong -O3 -fstack-protector-strong -O3 -fPIC -I/data/data/com.termux/files/usr/include/python3.11 -c _ruamel_yaml.c -o build/temp.linux-aarch64-cpython-311/_ruamel_yaml.o                                                                                 In file included from _ruamel_yaml.c:1149:                                        ./_ruamel_yaml.h:10:9: warning: 'PyString_CheckExact' macro redefined [-Wmacro-redefined]
         10 | #define PyString_CheckExact PyBytes_CheckExact                                  |         ^
      _ruamel_yaml.c:998:11: note: previous definition is here                            998 |   #define PyString_CheckExact          PyUnicode_CheckExact
            |           ^                                                               _ruamel_yaml.c:4156:17: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
       4156 |   __pyx_v_value = yaml_get_version_string();
            |                 ^ ~~~~~~~~~~~~~~~~~~~~~~~~~                               _ruamel_yaml.c:5929:52: error: incompatible function pointer types passing 'int (void *, char *, int, int *)' to parameter of type 'yaml_read_handler_t *' (aka 'int (*)(void *, unsigned char *, unsigned long, unsigned long *)') [-Wincompatible-function-pointer-types]                                                              5929 |     yaml_parser_set_input((&__pyx_v_self->parser), __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_input_handler, ((void *)__pyx_v_self));
            |                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ./yaml.h:1370:30: note: passing argument to parameter 'handler' here
       1370 |         yaml_read_handler_t *handler, void *data);
            |                              ^                                            _ruamel_yaml.c:6170:59: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
       6170 |     yaml_parser_set_input_string((&__pyx_v_self->parser), PyString_AS_STRING(__pyx_v_stream), PyString_GET_SIZE(__pyx_v_stream));
            |                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                ./_ruamel_yaml.h:11:29: note: expanded from macro 'PyString_AS_STRING'
         11 | #define PyString_AS_STRING  PyBytes_AS_STRING
            |                             ^
      /data/data/com.termux/files/usr/include/python3.11/cpython/bytesobject.h:40:33: note: expanded from macro 'PyBytes_AS_STRING'                                          40 | #  define PyBytes_AS_STRING(op) PyBytes_AS_STRING(_PyObject_CAST(op))
            |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                       ./yaml.h:1344:30: note: passing argument to parameter 'input' here
       1344 |         const unsigned char *input, size_t size);                               |                              ^
      _ruamel_yaml.c:7887:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
       7887 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag_directive.handle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 416, __pyx_L1_error)                       |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /data/data/com.termux/files/usr/include/python3.11/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
        138 |     const char *u              /* UTF-8 encoded string */                       |                 ^
      _ruamel_yaml.c:7899:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
       7899 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag_directive.prefix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 417, __pyx_L1_error)                       |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /data/data/com.termux/files/usr/include/python3.11/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
        138 |     const char *u              /* UTF-8 encoded string */                       |                 ^
      _ruamel_yaml.c:8572:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
       8572 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.alias.value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 447, __pyx_L1_error)                                |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      /data/data/com.termux/files/usr/include/python3.11/unicodeobject.h:138:17: note: passing argument to parameter 'u' here                                               138 |     const char *u              /* UTF-8 encoded string */
            |                 ^                                                         _ruamel_yaml.c:8630:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
       8630 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.anchor.value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 450, __pyx_L1_error)                               |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                       /data/data/com.termux/files/usr/include/python3.11/unicodeobject.h:138:17: note: passing argument to parameter 'u' here                                               138 |     const char *u              /* UTF-8 encoded string */
            |                 ^                                                         _ruamel_yaml.c:8688:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
       8688 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag.handle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 453, __pyx_L1_error)                                 |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       /data/data/com.termux/files/usr/include/python3.11/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
        138 |     const char *u              /* UTF-8 encoded string */                       |                 ^
      _ruamel_yaml.c:8700:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
       8700 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag.suffix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 454, __pyx_L1_error)
            |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       /data/data/com.termux/files/usr/include/python3.11/unicodeobject.h:138:17: note: passing argument to parameter 'u' here                                               138 |     const char *u              /* UTF-8 encoded string */
            |                 ^                                                         _ruamel_yaml.c:8797:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
       8797 |     __pyx_t_2 = PyUnicode_DecodeUTF8(__pyx_v_token->data.scalar.value, __pyx_v_token->data.scalar.length, ((char *)"strict")); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 459, __pyx_L1_error)
            |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                       /data/data/com.termux/files/usr/include/python3.11/unicodeobject.h:451:17: note: passing argument to parameter 'string' here                                          451 |     const char *string,         /* UTF-8 encoded string */
            |                 ^                                                         _ruamel_yaml.c:10545:42: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]                                                                                      10545 |         __pyx_t_4 = PyUnicode_FromString(__pyx_v_tag_directive->handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 573, __pyx_L1_error)
             |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                     /data/data/com.termux/files/usr/include/python3.11/unicodeobject.h:138:17: note: passing argument to parameter 'u' here                                               138 |     const char *u              /* UTF-8 encoded string */
            |                 ^                                                         _ruamel_yaml.c:10557:42: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]                                                                                      10557 |         __pyx_t_4 = PyUnicode_FromString(__pyx_v_tag_directive->prefix); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 574, __pyx_L1_error)
             |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                     /data/data/com.termux/files/usr/include/python3.11/unicodeobject.h:138:17: note: passing argument to parameter 'u' here                                               138 |     const char *u              /* UTF-8 encoded string */
            |                 ^                                                         _ruamel_yaml.c:10740:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]                                                                                      10740 |     __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.alias.anchor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 585, __pyx_L1_error)
             |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                      /data/data/com.termux/files/usr/include/python3.11/unicodeobject.h:138:17: note: passing argument to parameter 'u' here                                               138 |     const char *u              /* UTF-8 encoded string */
            |                 ^                                                         _ruamel_yaml.c:10818:40: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]                                                                                      10818 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.scalar.anchor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 590, __pyx_L1_error)
             |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                   /data/data/com.termux/files/usr/include/python3.11/unicodeobject.h:138:17: note: passing argument to parameter 'u' here                                               138 |     const char *u              /* UTF-8 encoded string */
            |                 ^                                                         _ruamel_yaml.c:10859:40: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]                                                                                      10859 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.scalar.tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 593, __pyx_L1_error)
             |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                      /data/data/com.termux/files/usr/include/python3.11/unicodeobject.h:138:17: note: passing argument to parameter 'u' here                                               138 |     const char *u              /* UTF-8 encoded string */
            |                 ^                                                         _ruamel_yaml.c:10880:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]                                                                                      10880 |     __pyx_t_4 = PyUnicode_DecodeUTF8(__pyx_v_event->data.scalar.value, __pyx_v_event->data.scalar.length, ((char *)"strict")); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 594, __pyx_L1_error)
             |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                      /data/data/com.termux/files/usr/include/python3.11/unicodeobject.h:451:17: note: passing argument to parameter 'string' here
        451 |     const char *string,         /* UTF-8 encoded string */                      |                 ^                                                         _ruamel_yaml.c:11182:40: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]                                                                                      11182 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.sequence_start.anchor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 619, __pyx_L1_error)
             |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                           /data/data/com.termux/files/usr/include/python3.11/unicodeobject.h:138:17: note: passing argument to parameter 'u' here                                               138 |     const char *u              /* UTF-8 encoded string */
            |                 ^                                                         _ruamel_yaml.c:11223:40: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
       11223 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.sequence_start.tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 622, __pyx_L1_error)
             |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /data/data/com.termux/files/usr/include/python3.11/unicodeobject.h:138:17: note: passing argument to parameter 'u' here                                               138 |     const char *u              /* UTF-8 encoded string */                       |                 ^
      _ruamel_yaml.c:11419:40: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the un
@aikooo7
Copy link
Author

aikooo7 commented Aug 5, 2024

Fixed using:

mitmproxy/mitmproxy#6112 (comment)

sed -i 's/getargspec/getfullargspec/' /data/data/com.termux/files/usr/lib/python3.11/site-packages/ntfy/init.py

Thanks to #262 (comment)

@aikooo7 aikooo7 closed this as completed Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant