2023-09-08T11:48:23,408 Created temporary directory: /tmp/pip-build-tracker-g5pka7ck 2023-09-08T11:48:23,410 Initialized build tracking at /tmp/pip-build-tracker-g5pka7ck 2023-09-08T11:48:23,410 Created build tracker: /tmp/pip-build-tracker-g5pka7ck 2023-09-08T11:48:23,411 Entered build tracker: /tmp/pip-build-tracker-g5pka7ck 2023-09-08T11:48:23,411 Created temporary directory: /tmp/pip-wheel-yovnfxm5 2023-09-08T11:48:23,414 Created temporary directory: /tmp/pip-ephem-wheel-cache-71txo7ej 2023-09-08T11:48:23,438 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2023-09-08T11:48:23,442 2 location(s) to search for versions of pylognorm: 2023-09-08T11:48:23,442 * https://pypi.org/simple/pylognorm/ 2023-09-08T11:48:23,442 * https://www.piwheels.org/simple/pylognorm/ 2023-09-08T11:48:23,442 Fetching project page and analyzing links: https://pypi.org/simple/pylognorm/ 2023-09-08T11:48:23,443 Getting page https://pypi.org/simple/pylognorm/ 2023-09-08T11:48:23,445 Found index url https://pypi.org/simple/ 2023-09-08T11:48:23,596 Fetched page https://pypi.org/simple/pylognorm/ as application/vnd.pypi.simple.v1+json 2023-09-08T11:48:23,599 Found link https://files.pythonhosted.org/packages/63/12/22aafb479b1316591492361b7537003e4ed9cf8a936589fcecdbfded653e/pylognorm-0.1.1.tar.gz (from https://pypi.org/simple/pylognorm/), version: 0.1.1 2023-09-08T11:48:23,599 Found link https://files.pythonhosted.org/packages/15/0a/261b98a148f2ff790b170e6c1644cec5e5dda15962ce7035ed6710552c6c/pylognorm-0.1.2.tar.gz (from https://pypi.org/simple/pylognorm/), version: 0.1.2 2023-09-08T11:48:23,600 Found link https://files.pythonhosted.org/packages/b6/63/88552cedf8f08de4bab937497fbf4dcaec944a6b48ffebe944e450eda944/pylognorm-0.1.3.tar.gz (from https://pypi.org/simple/pylognorm/), version: 0.1.3 2023-09-08T11:48:23,601 Found link https://files.pythonhosted.org/packages/8c/11/13f7396d0bf9171ed2fe6f7aa0f9616be72d22b8dc952375d2b583506a91/pylognorm-0.2.0.tar.gz (from https://pypi.org/simple/pylognorm/), version: 0.2.0 2023-09-08T11:48:23,601 Found link https://files.pythonhosted.org/packages/8c/14/acf079eb998fd93161bc33d19ef4da5ee705eeffa071e36b9b8ea5ee6641/pylognorm-0.2.1.tar.gz (from https://pypi.org/simple/pylognorm/), version: 0.2.1 2023-09-08T11:48:23,602 Found link https://files.pythonhosted.org/packages/a6/93/7e330ff2afc05a8b89cb5accc2fb70daf517e30e6d4f74b24ebec0c19495/pylognorm-0.2.2.tar.gz (from https://pypi.org/simple/pylognorm/), version: 0.2.2 2023-09-08T11:48:23,603 Found link https://files.pythonhosted.org/packages/3d/e7/ccd89cebcb74691efcc4acb40252a39b857adf36fb472049b8d3e663c62c/pylognorm-0.2.3.tar.gz (from https://pypi.org/simple/pylognorm/), version: 0.2.3 2023-09-08T11:48:23,603 Fetching project page and analyzing links: https://www.piwheels.org/simple/pylognorm/ 2023-09-08T11:48:23,604 Getting page https://www.piwheels.org/simple/pylognorm/ 2023-09-08T11:48:23,606 Found index url https://www.piwheels.org/simple/ 2023-09-08T11:48:24,296 Fetched page https://www.piwheels.org/simple/pylognorm/ as text/html 2023-09-08T11:48:24,299 Skipping link: No binaries permitted for pylognorm: https://www.piwheels.org/simple/pylognorm/pylognorm-0.1.1-py3-none-any.whl#sha256=342dddedec005ee249afa7908bf427ef3021b9bcad2a6a0fd7fe1c81a50554f7 (from https://www.piwheels.org/simple/pylognorm/) 2023-09-08T11:48:24,300 Skipping link: not a file: https://www.piwheels.org/simple/pylognorm/ 2023-09-08T11:48:24,301 Skipping link: not a file: https://pypi.org/simple/pylognorm/ 2023-09-08T11:48:24,347 Given no hashes to check 1 links for project 'pylognorm': discarding no candidates 2023-09-08T11:48:24,372 Collecting pylognorm==0.1.3 2023-09-08T11:48:24,374 Created temporary directory: /tmp/pip-unpack-6_vvppa1 2023-09-08T11:48:24,918 Downloading pylognorm-0.1.3.tar.gz (29 kB) 2023-09-08T11:48:24,965 Added pylognorm==0.1.3 from https://files.pythonhosted.org/packages/b6/63/88552cedf8f08de4bab937497fbf4dcaec944a6b48ffebe944e450eda944/pylognorm-0.1.3.tar.gz to build tracker '/tmp/pip-build-tracker-g5pka7ck' 2023-09-08T11:48:24,967 Running setup.py (path:/tmp/pip-wheel-yovnfxm5/pylognorm_00c4735af8cb45eb838d659260a8e15e/setup.py) egg_info for package pylognorm 2023-09-08T11:48:24,968 Created temporary directory: /tmp/pip-pip-egg-info-ca680fi4 2023-09-08T11:48:24,969 Preparing metadata (setup.py): started 2023-09-08T11:48:24,970 Running command python setup.py egg_info 2023-09-08T11:48:27,420 /usr/local/lib/python3.11/dist-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-wheel-yovnfxm5/pylognorm_00c4735af8cb45eb838d659260a8e15e/pylognorm/bindings/liblognorm.pyx 2023-09-08T11:48:27,420 tree = Parsing.p_module(s, pxd, full_module_name) 2023-09-08T11:48:27,483 Error compiling Cython file: 2023-09-08T11:48:27,483 ------------------------------------------------------------ 2023-09-08T11:48:27,484 ... 2023-09-08T11:48:27,484 from os import path 2023-09-08T11:48:27,485 from liblognorm cimport * 2023-09-08T11:48:27,485 ^ 2023-09-08T11:48:27,485 ------------------------------------------------------------ 2023-09-08T11:48:27,486 pylognorm/bindings/liblognorm.pyx:2:0: 'liblognorm.pxd' not found 2023-09-08T11:48:27,590 Error compiling Cython file: 2023-09-08T11:48:27,591 ------------------------------------------------------------ 2023-09-08T11:48:27,591 ... 2023-09-08T11:48:27,592 return self.cnormalizer.normalize(logline, len(logline)) 2023-09-08T11:48:27,593 cdef class CLogNormalizer(object): 2023-09-08T11:48:27,594 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:27,595 ^ 2023-09-08T11:48:27,595 ------------------------------------------------------------ 2023-09-08T11:48:27,596 pylognorm/bindings/liblognorm.pyx:44:9: 'ln_ctx' is not a type identifier 2023-09-08T11:48:27,597 Error compiling Cython file: 2023-09-08T11:48:27,598 ------------------------------------------------------------ 2023-09-08T11:48:27,599 ... 2023-09-08T11:48:27,601 cdef class CLogNormalizer(object): 2023-09-08T11:48:27,602 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:27,603 cdef ee_ctx cee_ctx 2023-09-08T11:48:27,603 ^ 2023-09-08T11:48:27,604 ------------------------------------------------------------ 2023-09-08T11:48:27,605 pylognorm/bindings/liblognorm.pyx:45:9: 'ee_ctx' is not a type identifier 2023-09-08T11:48:27,606 Error compiling Cython file: 2023-09-08T11:48:27,607 ------------------------------------------------------------ 2023-09-08T11:48:27,607 ... 2023-09-08T11:48:27,608 formatted = self.format_JSON(event) 2023-09-08T11:48:27,609 ee_deleteEvent(event) 2023-09-08T11:48:27,609 es_deleteStr(in_str) 2023-09-08T11:48:27,610 return formatted 2023-09-08T11:48:27,611 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:27,612 ^ 2023-09-08T11:48:27,612 ------------------------------------------------------------ 2023-09-08T11:48:27,613 pylognorm/bindings/liblognorm.pyx:94:34: 'ee_event' is not a type identifier 2023-09-08T11:48:27,614 Error compiling Cython file: 2023-09-08T11:48:27,615 ------------------------------------------------------------ 2023-09-08T11:48:27,616 ... 2023-09-08T11:48:27,616 pyobj = PyUnicode_FromString(normal) 2023-09-08T11:48:27,617 free(normal) 2023-09-08T11:48:27,617 return pyobj 2023-09-08T11:48:27,618 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:27,619 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:27,620 ^ 2023-09-08T11:48:27,620 ------------------------------------------------------------ 2023-09-08T11:48:27,622 pylognorm/bindings/liblognorm.pyx:82:13: 'es_str_t' is not a type identifier 2023-09-08T11:48:27,623 Error compiling Cython file: 2023-09-08T11:48:27,624 ------------------------------------------------------------ 2023-09-08T11:48:27,624 ... 2023-09-08T11:48:27,625 free(normal) 2023-09-08T11:48:27,626 return pyobj 2023-09-08T11:48:27,627 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:27,627 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:27,628 cdef ee_event *event = NULL 2023-09-08T11:48:27,628 ^ 2023-09-08T11:48:27,628 ------------------------------------------------------------ 2023-09-08T11:48:27,629 pylognorm/bindings/liblognorm.pyx:83:13: 'ee_event' is not a type identifier 2023-09-08T11:48:27,630 Error compiling Cython file: 2023-09-08T11:48:27,630 ------------------------------------------------------------ 2023-09-08T11:48:27,631 ... 2023-09-08T11:48:27,631 ee_deleteEvent(event) 2023-09-08T11:48:27,631 es_deleteStr(in_str) 2023-09-08T11:48:27,632 return formatted 2023-09-08T11:48:27,633 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:27,633 cdef es_str_t *out_str = NULL 2023-09-08T11:48:27,633 ^ 2023-09-08T11:48:27,634 ------------------------------------------------------------ 2023-09-08T11:48:27,635 pylognorm/bindings/liblognorm.pyx:95:13: 'es_str_t' is not a type identifier 2023-09-08T11:48:27,654 Error compiling Cython file: 2023-09-08T11:48:27,654 ------------------------------------------------------------ 2023-09-08T11:48:27,654 ... 2023-09-08T11:48:27,655 from libc.stdlib cimport malloc, free 2023-09-08T11:48:27,655 from libc.string cimport strlen 2023-09-08T11:48:27,657 def lib_version(): 2023-09-08T11:48:27,657 cdef char* version = ln_version() 2023-09-08T11:48:27,658 ^ 2023-09-08T11:48:27,658 ------------------------------------------------------------ 2023-09-08T11:48:27,659 pylognorm/bindings/liblognorm.pyx:8:25: undeclared name not builtin: ln_version 2023-09-08T11:48:27,660 Error compiling Cython file: 2023-09-08T11:48:27,661 ------------------------------------------------------------ 2023-09-08T11:48:27,662 ... 2023-09-08T11:48:27,662 from libc.stdlib cimport malloc, free 2023-09-08T11:48:27,663 from libc.string cimport strlen 2023-09-08T11:48:27,664 def lib_version(): 2023-09-08T11:48:27,665 cdef char* version = ln_version() 2023-09-08T11:48:27,665 ^ 2023-09-08T11:48:27,666 ------------------------------------------------------------ 2023-09-08T11:48:27,667 pylognorm/bindings/liblognorm.pyx:8:9: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:27,668 Error compiling Cython file: 2023-09-08T11:48:27,669 ------------------------------------------------------------ 2023-09-08T11:48:27,669 ... 2023-09-08T11:48:27,670 from libc.string cimport strlen 2023-09-08T11:48:27,671 def lib_version(): 2023-09-08T11:48:27,672 cdef char* version = ln_version() 2023-09-08T11:48:27,673 return PyString_FromStringAndSize(version, strlen(version)) 2023-09-08T11:48:27,673 ^ 2023-09-08T11:48:27,674 ------------------------------------------------------------ 2023-09-08T11:48:27,675 pylognorm/bindings/liblognorm.pyx:9:11: undeclared name not builtin: PyString_FromStringAndSize 2023-09-08T11:48:27,676 Error compiling Cython file: 2023-09-08T11:48:27,676 ------------------------------------------------------------ 2023-09-08T11:48:27,677 ... 2023-09-08T11:48:27,678 return PyString_FromStringAndSize(version, strlen(version)) 2023-09-08T11:48:27,679 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:27,680 cdef char *cstr_filename 2023-09-08T11:48:27,680 if PyByteArray_Check(obj): 2023-09-08T11:48:27,681 ^ 2023-09-08T11:48:27,682 ------------------------------------------------------------ 2023-09-08T11:48:27,683 pylognorm/bindings/liblognorm.pyx:14:7: undeclared name not builtin: PyByteArray_Check 2023-09-08T11:48:27,684 Error compiling Cython file: 2023-09-08T11:48:27,684 ------------------------------------------------------------ 2023-09-08T11:48:27,685 ... 2023-09-08T11:48:27,686 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:27,687 cdef char *cstr_filename 2023-09-08T11:48:27,687 if PyByteArray_Check(obj): 2023-09-08T11:48:27,687 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:27,688 ^ 2023-09-08T11:48:27,688 ------------------------------------------------------------ 2023-09-08T11:48:27,689 pylognorm/bindings/liblognorm.pyx:15:24: undeclared name not builtin: PyByteArray_AsString 2023-09-08T11:48:27,690 Error compiling Cython file: 2023-09-08T11:48:27,690 ------------------------------------------------------------ 2023-09-08T11:48:27,690 ... 2023-09-08T11:48:27,692 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:27,692 cdef char *cstr_filename 2023-09-08T11:48:27,693 if PyByteArray_Check(obj): 2023-09-08T11:48:27,693 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:27,694 ^ 2023-09-08T11:48:27,694 ------------------------------------------------------------ 2023-09-08T11:48:27,695 pylognorm/bindings/liblognorm.pyx:15:44: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:27,696 Error compiling Cython file: 2023-09-08T11:48:27,696 ------------------------------------------------------------ 2023-09-08T11:48:27,697 ... 2023-09-08T11:48:27,698 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:27,698 cdef char *cstr_filename 2023-09-08T11:48:27,699 if PyByteArray_Check(obj): 2023-09-08T11:48:27,699 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:27,699 elif PyBytes_Check(obj): 2023-09-08T11:48:27,700 ^ 2023-09-08T11:48:27,700 ------------------------------------------------------------ 2023-09-08T11:48:27,701 pylognorm/bindings/liblognorm.pyx:16:9: undeclared name not builtin: PyBytes_Check 2023-09-08T11:48:27,702 Error compiling Cython file: 2023-09-08T11:48:27,703 ------------------------------------------------------------ 2023-09-08T11:48:27,704 ... 2023-09-08T11:48:27,704 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:27,705 cdef char *cstr_filename 2023-09-08T11:48:27,705 if PyByteArray_Check(obj): 2023-09-08T11:48:27,706 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:27,706 elif PyBytes_Check(obj): 2023-09-08T11:48:27,707 cstr_filename = PyBytes_AsString(obj) 2023-09-08T11:48:27,707 ^ 2023-09-08T11:48:27,708 ------------------------------------------------------------ 2023-09-08T11:48:27,709 pylognorm/bindings/liblognorm.pyx:17:24: undeclared name not builtin: PyBytes_AsString 2023-09-08T11:48:27,710 Error compiling Cython file: 2023-09-08T11:48:27,710 ------------------------------------------------------------ 2023-09-08T11:48:27,711 ... 2023-09-08T11:48:27,711 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:27,712 cdef char *cstr_filename 2023-09-08T11:48:27,712 if PyByteArray_Check(obj): 2023-09-08T11:48:27,713 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:27,713 elif PyBytes_Check(obj): 2023-09-08T11:48:27,714 cstr_filename = PyBytes_AsString(obj) 2023-09-08T11:48:27,714 ^ 2023-09-08T11:48:27,715 ------------------------------------------------------------ 2023-09-08T11:48:27,716 pylognorm/bindings/liblognorm.pyx:17:40: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:27,717 Error compiling Cython file: 2023-09-08T11:48:27,718 ------------------------------------------------------------ 2023-09-08T11:48:27,718 ... 2023-09-08T11:48:27,719 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:27,720 cdef ee_ctx cee_ctx 2023-09-08T11:48:27,721 def __cinit__(self): 2023-09-08T11:48:27,722 self.normalizer_ctx = ln_initCtx() 2023-09-08T11:48:27,722 ^ 2023-09-08T11:48:27,723 ------------------------------------------------------------ 2023-09-08T11:48:27,724 pylognorm/bindings/liblognorm.pyx:48:30: undeclared name not builtin: ln_initCtx 2023-09-08T11:48:27,725 Error compiling Cython file: 2023-09-08T11:48:27,725 ------------------------------------------------------------ 2023-09-08T11:48:27,725 ... 2023-09-08T11:48:27,726 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:27,726 cdef ee_ctx cee_ctx 2023-09-08T11:48:27,727 def __cinit__(self): 2023-09-08T11:48:27,727 self.normalizer_ctx = ln_initCtx() 2023-09-08T11:48:27,728 self.cee_ctx = ee_initCtx() 2023-09-08T11:48:27,728 ^ 2023-09-08T11:48:27,729 ------------------------------------------------------------ 2023-09-08T11:48:27,730 pylognorm/bindings/liblognorm.pyx:49:23: undeclared name not builtin: ee_initCtx 2023-09-08T11:48:27,730 Error compiling Cython file: 2023-09-08T11:48:27,731 ------------------------------------------------------------ 2023-09-08T11:48:27,731 ... 2023-09-08T11:48:27,732 cdef ee_ctx cee_ctx 2023-09-08T11:48:27,733 def __cinit__(self): 2023-09-08T11:48:27,733 self.normalizer_ctx = ln_initCtx() 2023-09-08T11:48:27,733 self.cee_ctx = ee_initCtx() 2023-09-08T11:48:27,734 ln_setEECtx(self.normalizer_ctx, self.cee_ctx); 2023-09-08T11:48:27,734 ^ 2023-09-08T11:48:27,735 ------------------------------------------------------------ 2023-09-08T11:48:27,736 pylognorm/bindings/liblognorm.pyx:50:8: undeclared name not builtin: ln_setEECtx 2023-09-08T11:48:27,736 Error compiling Cython file: 2023-09-08T11:48:27,737 ------------------------------------------------------------ 2023-09-08T11:48:27,737 ... 2023-09-08T11:48:27,738 def __init__(self): 2023-09-08T11:48:27,739 pass 2023-09-08T11:48:27,740 def __dealoc__(self): 2023-09-08T11:48:27,740 ee_exitCtx(self.cee_ctx) 2023-09-08T11:48:27,741 ^ 2023-09-08T11:48:27,742 ------------------------------------------------------------ 2023-09-08T11:48:27,743 pylognorm/bindings/liblognorm.pyx:56:8: undeclared name not builtin: ee_exitCtx 2023-09-08T11:48:27,744 Error compiling Cython file: 2023-09-08T11:48:27,744 ------------------------------------------------------------ 2023-09-08T11:48:27,745 ... 2023-09-08T11:48:27,746 def __init__(self): 2023-09-08T11:48:27,746 pass 2023-09-08T11:48:27,747 def __dealoc__(self): 2023-09-08T11:48:27,748 ee_exitCtx(self.cee_ctx) 2023-09-08T11:48:27,748 ln_exitCtx(self.normalizer_ctx) 2023-09-08T11:48:27,749 ^ 2023-09-08T11:48:27,749 ------------------------------------------------------------ 2023-09-08T11:48:27,750 pylognorm/bindings/liblognorm.pyx:57:8: undeclared name not builtin: ln_exitCtx 2023-09-08T11:48:27,751 Error compiling Cython file: 2023-09-08T11:48:27,752 ------------------------------------------------------------ 2023-09-08T11:48:27,753 ... 2023-09-08T11:48:27,754 def load_rules(self, object filename): 2023-09-08T11:48:27,754 cdef char* cstr_filename 2023-09-08T11:48:27,755 if PyByteArray_Check(filename): 2023-09-08T11:48:27,756 cstr_filename = PyByteArray_AsString(filename) 2023-09-08T11:48:27,756 ^ 2023-09-08T11:48:27,757 ------------------------------------------------------------ 2023-09-08T11:48:27,758 pylognorm/bindings/liblognorm.pyx:63:48: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:27,759 Error compiling Cython file: 2023-09-08T11:48:27,759 ------------------------------------------------------------ 2023-09-08T11:48:27,760 ... 2023-09-08T11:48:27,761 cdef char* cstr_filename 2023-09-08T11:48:27,762 if PyByteArray_Check(filename): 2023-09-08T11:48:27,763 cstr_filename = PyByteArray_AsString(filename) 2023-09-08T11:48:27,763 elif PyBytes_Check(filename): 2023-09-08T11:48:27,764 cstr_filename = PyBytes_AsString(filename) 2023-09-08T11:48:27,764 ^ 2023-09-08T11:48:27,765 ------------------------------------------------------------ 2023-09-08T11:48:27,766 pylognorm/bindings/liblognorm.pyx:65:44: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:27,767 Error compiling Cython file: 2023-09-08T11:48:27,767 ------------------------------------------------------------ 2023-09-08T11:48:27,768 ... 2023-09-08T11:48:27,768 cstr_filename = PyBytes_AsString(filename) 2023-09-08T11:48:27,768 else: 2023-09-08T11:48:27,769 raise Exception( 2023-09-08T11:48:27,769 'Unable to convert to cstr: {}'.format(type(filename))) 2023-09-08T11:48:27,770 ln_loadSamples(self.normalizer_ctx, cstr_filename) 2023-09-08T11:48:27,771 ^ 2023-09-08T11:48:27,771 ------------------------------------------------------------ 2023-09-08T11:48:27,772 pylognorm/bindings/liblognorm.pyx:70:8: undeclared name not builtin: ln_loadSamples 2023-09-08T11:48:27,773 Error compiling Cython file: 2023-09-08T11:48:27,773 ------------------------------------------------------------ 2023-09-08T11:48:27,774 ... 2023-09-08T11:48:27,774 def normalize(self, object data, int length): 2023-09-08T11:48:27,775 cdef char *normal = self._normalize(_object_to_cstr(data), length) 2023-09-08T11:48:27,775 if normal == NULL: 2023-09-08T11:48:27,775 return None 2023-09-08T11:48:27,776 else: 2023-09-08T11:48:27,776 pyobj = PyUnicode_FromString(normal) 2023-09-08T11:48:27,777 ^ 2023-09-08T11:48:27,777 ------------------------------------------------------------ 2023-09-08T11:48:27,778 pylognorm/bindings/liblognorm.pyx:77:20: undeclared name not builtin: PyUnicode_FromString 2023-09-08T11:48:27,779 Error compiling Cython file: 2023-09-08T11:48:27,780 ------------------------------------------------------------ 2023-09-08T11:48:27,780 ... 2023-09-08T11:48:27,781 pyobj = PyUnicode_FromString(normal) 2023-09-08T11:48:27,781 free(normal) 2023-09-08T11:48:27,782 return pyobj 2023-09-08T11:48:27,783 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:27,784 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:27,784 ^ 2023-09-08T11:48:27,785 ------------------------------------------------------------ 2023-09-08T11:48:27,786 pylognorm/bindings/liblognorm.pyx:82:32: undeclared name not builtin: es_newStrFromCStr 2023-09-08T11:48:27,787 Error compiling Cython file: 2023-09-08T11:48:27,788 ------------------------------------------------------------ 2023-09-08T11:48:27,788 ... 2023-09-08T11:48:27,789 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:27,790 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:27,790 cdef ee_event *event = NULL 2023-09-08T11:48:27,791 cdef char *formatted = NULL 2023-09-08T11:48:27,792 ln_normalize(self.normalizer_ctx, in_str, &event) 2023-09-08T11:48:27,793 ^ 2023-09-08T11:48:27,793 ------------------------------------------------------------ 2023-09-08T11:48:27,795 pylognorm/bindings/liblognorm.pyx:86:8: undeclared name not builtin: ln_normalize 2023-09-08T11:48:27,796 Error compiling Cython file: 2023-09-08T11:48:27,796 ------------------------------------------------------------ 2023-09-08T11:48:27,797 ... 2023-09-08T11:48:27,798 ln_normalize(self.normalizer_ctx, in_str, &event) 2023-09-08T11:48:27,799 if event != NULL: 2023-09-08T11:48:27,800 formatted = self.format_JSON(event) 2023-09-08T11:48:27,800 ee_deleteEvent(event) 2023-09-08T11:48:27,801 ^ 2023-09-08T11:48:27,802 ------------------------------------------------------------ 2023-09-08T11:48:27,803 pylognorm/bindings/liblognorm.pyx:90:12: undeclared name not builtin: ee_deleteEvent 2023-09-08T11:48:27,804 Error compiling Cython file: 2023-09-08T11:48:27,805 ------------------------------------------------------------ 2023-09-08T11:48:27,805 ... 2023-09-08T11:48:27,806 ln_normalize(self.normalizer_ctx, in_str, &event) 2023-09-08T11:48:27,806 if event != NULL: 2023-09-08T11:48:27,807 formatted = self.format_JSON(event) 2023-09-08T11:48:27,807 ee_deleteEvent(event) 2023-09-08T11:48:27,808 es_deleteStr(in_str) 2023-09-08T11:48:27,808 ^ 2023-09-08T11:48:27,809 ------------------------------------------------------------ 2023-09-08T11:48:27,809 pylognorm/bindings/liblognorm.pyx:91:8: undeclared name not builtin: es_deleteStr 2023-09-08T11:48:27,810 Error compiling Cython file: 2023-09-08T11:48:27,811 ------------------------------------------------------------ 2023-09-08T11:48:27,811 ... 2023-09-08T11:48:27,812 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:27,812 cdef es_str_t *out_str = NULL 2023-09-08T11:48:27,813 cdef char *cstr = NULL 2023-09-08T11:48:27,814 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:27,814 ^ 2023-09-08T11:48:27,814 ------------------------------------------------------------ 2023-09-08T11:48:27,815 pylognorm/bindings/liblognorm.pyx:98:8: undeclared name not builtin: ee_fmtEventToJSON 2023-09-08T11:48:27,816 Error compiling Cython file: 2023-09-08T11:48:27,816 ------------------------------------------------------------ 2023-09-08T11:48:27,817 ... 2023-09-08T11:48:27,817 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:27,818 cdef es_str_t *out_str = NULL 2023-09-08T11:48:27,818 cdef char *cstr = NULL 2023-09-08T11:48:27,819 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:27,820 cstr = es_str2cstr(out_str, NULL) 2023-09-08T11:48:27,820 ^ 2023-09-08T11:48:27,821 ------------------------------------------------------------ 2023-09-08T11:48:27,822 pylognorm/bindings/liblognorm.pyx:99:15: undeclared name not builtin: es_str2cstr 2023-09-08T11:48:27,823 Error compiling Cython file: 2023-09-08T11:48:27,824 ------------------------------------------------------------ 2023-09-08T11:48:27,825 ... 2023-09-08T11:48:27,825 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:27,826 cdef es_str_t *out_str = NULL 2023-09-08T11:48:27,827 cdef char *cstr = NULL 2023-09-08T11:48:27,828 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:27,828 cstr = es_str2cstr(out_str, NULL) 2023-09-08T11:48:27,829 ^ 2023-09-08T11:48:27,830 ------------------------------------------------------------ 2023-09-08T11:48:27,831 pylognorm/bindings/liblognorm.pyx:99:36: Cannot convert 'void *' to Python object 2023-09-08T11:48:27,832 Error compiling Cython file: 2023-09-08T11:48:27,833 ------------------------------------------------------------ 2023-09-08T11:48:27,833 ... 2023-09-08T11:48:27,834 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:27,834 cdef es_str_t *out_str = NULL 2023-09-08T11:48:27,835 cdef char *cstr = NULL 2023-09-08T11:48:27,836 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:27,837 cstr = es_str2cstr(out_str, NULL) 2023-09-08T11:48:27,837 ^ 2023-09-08T11:48:27,838 ------------------------------------------------------------ 2023-09-08T11:48:27,839 pylognorm/bindings/liblognorm.pyx:99:26: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:28,300 Preparing metadata (setup.py): finished with status 'done' 2023-09-08T11:48:28,304 Source in /tmp/pip-wheel-yovnfxm5/pylognorm_00c4735af8cb45eb838d659260a8e15e has version 0.1.3, which satisfies requirement pylognorm==0.1.3 from https://files.pythonhosted.org/packages/b6/63/88552cedf8f08de4bab937497fbf4dcaec944a6b48ffebe944e450eda944/pylognorm-0.1.3.tar.gz 2023-09-08T11:48:28,305 Removed pylognorm==0.1.3 from https://files.pythonhosted.org/packages/b6/63/88552cedf8f08de4bab937497fbf4dcaec944a6b48ffebe944e450eda944/pylognorm-0.1.3.tar.gz from build tracker '/tmp/pip-build-tracker-g5pka7ck' 2023-09-08T11:48:28,309 Created temporary directory: /tmp/pip-unpack-q_loj34i 2023-09-08T11:48:28,310 Created temporary directory: /tmp/pip-unpack-xwee0xr6 2023-09-08T11:48:28,312 Building wheels for collected packages: pylognorm 2023-09-08T11:48:28,316 Created temporary directory: /tmp/pip-wheel-u5zd0hmk 2023-09-08T11:48:28,316 Building wheel for pylognorm (setup.py): started 2023-09-08T11:48:28,317 Destination directory: /tmp/pip-wheel-u5zd0hmk 2023-09-08T11:48:28,318 Running command python setup.py bdist_wheel 2023-09-08T11:48:30,696 /usr/local/lib/python3.11/dist-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-wheel-yovnfxm5/pylognorm_00c4735af8cb45eb838d659260a8e15e/pylognorm/bindings/liblognorm.pyx 2023-09-08T11:48:30,697 tree = Parsing.p_module(s, pxd, full_module_name) 2023-09-08T11:48:30,756 Error compiling Cython file: 2023-09-08T11:48:30,756 ------------------------------------------------------------ 2023-09-08T11:48:30,756 ... 2023-09-08T11:48:30,757 from os import path 2023-09-08T11:48:30,757 from liblognorm cimport * 2023-09-08T11:48:30,758 ^ 2023-09-08T11:48:30,758 ------------------------------------------------------------ 2023-09-08T11:48:30,759 pylognorm/bindings/liblognorm.pyx:2:0: 'liblognorm.pxd' not found 2023-09-08T11:48:30,860 Error compiling Cython file: 2023-09-08T11:48:30,860 ------------------------------------------------------------ 2023-09-08T11:48:30,861 ... 2023-09-08T11:48:30,862 return self.cnormalizer.normalize(logline, len(logline)) 2023-09-08T11:48:30,863 cdef class CLogNormalizer(object): 2023-09-08T11:48:30,865 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:30,865 ^ 2023-09-08T11:48:30,866 ------------------------------------------------------------ 2023-09-08T11:48:30,867 pylognorm/bindings/liblognorm.pyx:44:9: 'ln_ctx' is not a type identifier 2023-09-08T11:48:30,869 Error compiling Cython file: 2023-09-08T11:48:30,869 ------------------------------------------------------------ 2023-09-08T11:48:30,870 ... 2023-09-08T11:48:30,872 cdef class CLogNormalizer(object): 2023-09-08T11:48:30,873 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:30,874 cdef ee_ctx cee_ctx 2023-09-08T11:48:30,875 ^ 2023-09-08T11:48:30,875 ------------------------------------------------------------ 2023-09-08T11:48:30,877 pylognorm/bindings/liblognorm.pyx:45:9: 'ee_ctx' is not a type identifier 2023-09-08T11:48:30,878 Error compiling Cython file: 2023-09-08T11:48:30,878 ------------------------------------------------------------ 2023-09-08T11:48:30,879 ... 2023-09-08T11:48:30,879 formatted = self.format_JSON(event) 2023-09-08T11:48:30,880 ee_deleteEvent(event) 2023-09-08T11:48:30,880 es_deleteStr(in_str) 2023-09-08T11:48:30,881 return formatted 2023-09-08T11:48:30,882 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:30,882 ^ 2023-09-08T11:48:30,883 ------------------------------------------------------------ 2023-09-08T11:48:30,884 pylognorm/bindings/liblognorm.pyx:94:34: 'ee_event' is not a type identifier 2023-09-08T11:48:30,885 Error compiling Cython file: 2023-09-08T11:48:30,886 ------------------------------------------------------------ 2023-09-08T11:48:30,886 ... 2023-09-08T11:48:30,887 pyobj = PyUnicode_FromString(normal) 2023-09-08T11:48:30,888 free(normal) 2023-09-08T11:48:30,888 return pyobj 2023-09-08T11:48:30,890 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:30,890 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:30,891 ^ 2023-09-08T11:48:30,892 ------------------------------------------------------------ 2023-09-08T11:48:30,892 pylognorm/bindings/liblognorm.pyx:82:13: 'es_str_t' is not a type identifier 2023-09-08T11:48:30,893 Error compiling Cython file: 2023-09-08T11:48:30,894 ------------------------------------------------------------ 2023-09-08T11:48:30,894 ... 2023-09-08T11:48:30,894 free(normal) 2023-09-08T11:48:30,895 return pyobj 2023-09-08T11:48:30,896 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:30,896 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:30,896 cdef ee_event *event = NULL 2023-09-08T11:48:30,897 ^ 2023-09-08T11:48:30,897 ------------------------------------------------------------ 2023-09-08T11:48:30,898 pylognorm/bindings/liblognorm.pyx:83:13: 'ee_event' is not a type identifier 2023-09-08T11:48:30,899 Error compiling Cython file: 2023-09-08T11:48:30,900 ------------------------------------------------------------ 2023-09-08T11:48:30,900 ... 2023-09-08T11:48:30,901 ee_deleteEvent(event) 2023-09-08T11:48:30,901 es_deleteStr(in_str) 2023-09-08T11:48:30,902 return formatted 2023-09-08T11:48:30,903 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:30,903 cdef es_str_t *out_str = NULL 2023-09-08T11:48:30,903 ^ 2023-09-08T11:48:30,904 ------------------------------------------------------------ 2023-09-08T11:48:30,905 pylognorm/bindings/liblognorm.pyx:95:13: 'es_str_t' is not a type identifier 2023-09-08T11:48:30,928 Error compiling Cython file: 2023-09-08T11:48:30,928 ------------------------------------------------------------ 2023-09-08T11:48:30,929 ... 2023-09-08T11:48:30,929 from libc.stdlib cimport malloc, free 2023-09-08T11:48:30,930 from libc.string cimport strlen 2023-09-08T11:48:30,932 def lib_version(): 2023-09-08T11:48:30,932 cdef char* version = ln_version() 2023-09-08T11:48:30,933 ^ 2023-09-08T11:48:30,933 ------------------------------------------------------------ 2023-09-08T11:48:30,935 pylognorm/bindings/liblognorm.pyx:8:25: undeclared name not builtin: ln_version 2023-09-08T11:48:30,936 Error compiling Cython file: 2023-09-08T11:48:30,937 ------------------------------------------------------------ 2023-09-08T11:48:30,937 ... 2023-09-08T11:48:30,938 from libc.stdlib cimport malloc, free 2023-09-08T11:48:30,939 from libc.string cimport strlen 2023-09-08T11:48:30,941 def lib_version(): 2023-09-08T11:48:30,941 cdef char* version = ln_version() 2023-09-08T11:48:30,942 ^ 2023-09-08T11:48:30,942 ------------------------------------------------------------ 2023-09-08T11:48:30,944 pylognorm/bindings/liblognorm.pyx:8:9: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:30,945 Error compiling Cython file: 2023-09-08T11:48:30,945 ------------------------------------------------------------ 2023-09-08T11:48:30,946 ... 2023-09-08T11:48:30,946 from libc.string cimport strlen 2023-09-08T11:48:30,948 def lib_version(): 2023-09-08T11:48:30,949 cdef char* version = ln_version() 2023-09-08T11:48:30,949 return PyString_FromStringAndSize(version, strlen(version)) 2023-09-08T11:48:30,950 ^ 2023-09-08T11:48:30,951 ------------------------------------------------------------ 2023-09-08T11:48:30,952 pylognorm/bindings/liblognorm.pyx:9:11: undeclared name not builtin: PyString_FromStringAndSize 2023-09-08T11:48:30,953 Error compiling Cython file: 2023-09-08T11:48:30,954 ------------------------------------------------------------ 2023-09-08T11:48:30,954 ... 2023-09-08T11:48:30,955 return PyString_FromStringAndSize(version, strlen(version)) 2023-09-08T11:48:30,957 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:30,958 cdef char *cstr_filename 2023-09-08T11:48:30,958 if PyByteArray_Check(obj): 2023-09-08T11:48:30,959 ^ 2023-09-08T11:48:30,959 ------------------------------------------------------------ 2023-09-08T11:48:30,960 pylognorm/bindings/liblognorm.pyx:14:7: undeclared name not builtin: PyByteArray_Check 2023-09-08T11:48:30,961 Error compiling Cython file: 2023-09-08T11:48:30,961 ------------------------------------------------------------ 2023-09-08T11:48:30,961 ... 2023-09-08T11:48:30,963 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:30,963 cdef char *cstr_filename 2023-09-08T11:48:30,963 if PyByteArray_Check(obj): 2023-09-08T11:48:30,964 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:30,964 ^ 2023-09-08T11:48:30,964 ------------------------------------------------------------ 2023-09-08T11:48:30,965 pylognorm/bindings/liblognorm.pyx:15:24: undeclared name not builtin: PyByteArray_AsString 2023-09-08T11:48:30,966 Error compiling Cython file: 2023-09-08T11:48:30,966 ------------------------------------------------------------ 2023-09-08T11:48:30,967 ... 2023-09-08T11:48:30,968 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:30,968 cdef char *cstr_filename 2023-09-08T11:48:30,969 if PyByteArray_Check(obj): 2023-09-08T11:48:30,969 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:30,970 ^ 2023-09-08T11:48:30,970 ------------------------------------------------------------ 2023-09-08T11:48:30,971 pylognorm/bindings/liblognorm.pyx:15:44: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:30,972 Error compiling Cython file: 2023-09-08T11:48:30,973 ------------------------------------------------------------ 2023-09-08T11:48:30,973 ... 2023-09-08T11:48:30,974 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:30,975 cdef char *cstr_filename 2023-09-08T11:48:30,975 if PyByteArray_Check(obj): 2023-09-08T11:48:30,976 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:30,977 elif PyBytes_Check(obj): 2023-09-08T11:48:30,977 ^ 2023-09-08T11:48:30,978 ------------------------------------------------------------ 2023-09-08T11:48:30,979 pylognorm/bindings/liblognorm.pyx:16:9: undeclared name not builtin: PyBytes_Check 2023-09-08T11:48:30,980 Error compiling Cython file: 2023-09-08T11:48:30,981 ------------------------------------------------------------ 2023-09-08T11:48:30,981 ... 2023-09-08T11:48:30,982 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:30,982 cdef char *cstr_filename 2023-09-08T11:48:30,983 if PyByteArray_Check(obj): 2023-09-08T11:48:30,983 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:30,984 elif PyBytes_Check(obj): 2023-09-08T11:48:30,984 cstr_filename = PyBytes_AsString(obj) 2023-09-08T11:48:30,985 ^ 2023-09-08T11:48:30,985 ------------------------------------------------------------ 2023-09-08T11:48:30,986 pylognorm/bindings/liblognorm.pyx:17:24: undeclared name not builtin: PyBytes_AsString 2023-09-08T11:48:30,987 Error compiling Cython file: 2023-09-08T11:48:30,988 ------------------------------------------------------------ 2023-09-08T11:48:30,988 ... 2023-09-08T11:48:30,989 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:30,990 cdef char *cstr_filename 2023-09-08T11:48:30,990 if PyByteArray_Check(obj): 2023-09-08T11:48:30,991 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:30,991 elif PyBytes_Check(obj): 2023-09-08T11:48:30,992 cstr_filename = PyBytes_AsString(obj) 2023-09-08T11:48:30,992 ^ 2023-09-08T11:48:30,993 ------------------------------------------------------------ 2023-09-08T11:48:30,994 pylognorm/bindings/liblognorm.pyx:17:40: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:30,996 Error compiling Cython file: 2023-09-08T11:48:30,996 ------------------------------------------------------------ 2023-09-08T11:48:30,997 ... 2023-09-08T11:48:30,997 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:30,998 cdef ee_ctx cee_ctx 2023-09-08T11:48:30,999 def __cinit__(self): 2023-09-08T11:48:30,999 self.normalizer_ctx = ln_initCtx() 2023-09-08T11:48:30,999 ^ 2023-09-08T11:48:31,000 ------------------------------------------------------------ 2023-09-08T11:48:31,000 pylognorm/bindings/liblognorm.pyx:48:30: undeclared name not builtin: ln_initCtx 2023-09-08T11:48:31,001 Error compiling Cython file: 2023-09-08T11:48:31,002 ------------------------------------------------------------ 2023-09-08T11:48:31,002 ... 2023-09-08T11:48:31,002 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:31,003 cdef ee_ctx cee_ctx 2023-09-08T11:48:31,004 def __cinit__(self): 2023-09-08T11:48:31,004 self.normalizer_ctx = ln_initCtx() 2023-09-08T11:48:31,004 self.cee_ctx = ee_initCtx() 2023-09-08T11:48:31,005 ^ 2023-09-08T11:48:31,005 ------------------------------------------------------------ 2023-09-08T11:48:31,006 pylognorm/bindings/liblognorm.pyx:49:23: undeclared name not builtin: ee_initCtx 2023-09-08T11:48:31,007 Error compiling Cython file: 2023-09-08T11:48:31,007 ------------------------------------------------------------ 2023-09-08T11:48:31,008 ... 2023-09-08T11:48:31,008 cdef ee_ctx cee_ctx 2023-09-08T11:48:31,009 def __cinit__(self): 2023-09-08T11:48:31,010 self.normalizer_ctx = ln_initCtx() 2023-09-08T11:48:31,010 self.cee_ctx = ee_initCtx() 2023-09-08T11:48:31,011 ln_setEECtx(self.normalizer_ctx, self.cee_ctx); 2023-09-08T11:48:31,011 ^ 2023-09-08T11:48:31,012 ------------------------------------------------------------ 2023-09-08T11:48:31,013 pylognorm/bindings/liblognorm.pyx:50:8: undeclared name not builtin: ln_setEECtx 2023-09-08T11:48:31,014 Error compiling Cython file: 2023-09-08T11:48:31,014 ------------------------------------------------------------ 2023-09-08T11:48:31,015 ... 2023-09-08T11:48:31,016 def __init__(self): 2023-09-08T11:48:31,017 pass 2023-09-08T11:48:31,018 def __dealoc__(self): 2023-09-08T11:48:31,019 ee_exitCtx(self.cee_ctx) 2023-09-08T11:48:31,019 ^ 2023-09-08T11:48:31,020 ------------------------------------------------------------ 2023-09-08T11:48:31,021 pylognorm/bindings/liblognorm.pyx:56:8: undeclared name not builtin: ee_exitCtx 2023-09-08T11:48:31,022 Error compiling Cython file: 2023-09-08T11:48:31,023 ------------------------------------------------------------ 2023-09-08T11:48:31,023 ... 2023-09-08T11:48:31,024 def __init__(self): 2023-09-08T11:48:31,025 pass 2023-09-08T11:48:31,026 def __dealoc__(self): 2023-09-08T11:48:31,026 ee_exitCtx(self.cee_ctx) 2023-09-08T11:48:31,027 ln_exitCtx(self.normalizer_ctx) 2023-09-08T11:48:31,027 ^ 2023-09-08T11:48:31,028 ------------------------------------------------------------ 2023-09-08T11:48:31,029 pylognorm/bindings/liblognorm.pyx:57:8: undeclared name not builtin: ln_exitCtx 2023-09-08T11:48:31,030 Error compiling Cython file: 2023-09-08T11:48:31,030 ------------------------------------------------------------ 2023-09-08T11:48:31,031 ... 2023-09-08T11:48:31,032 def load_rules(self, object filename): 2023-09-08T11:48:31,032 cdef char* cstr_filename 2023-09-08T11:48:31,033 if PyByteArray_Check(filename): 2023-09-08T11:48:31,034 cstr_filename = PyByteArray_AsString(filename) 2023-09-08T11:48:31,035 ^ 2023-09-08T11:48:31,035 ------------------------------------------------------------ 2023-09-08T11:48:31,037 pylognorm/bindings/liblognorm.pyx:63:48: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:31,038 Error compiling Cython file: 2023-09-08T11:48:31,038 ------------------------------------------------------------ 2023-09-08T11:48:31,039 ... 2023-09-08T11:48:31,039 cdef char* cstr_filename 2023-09-08T11:48:31,040 if PyByteArray_Check(filename): 2023-09-08T11:48:31,040 cstr_filename = PyByteArray_AsString(filename) 2023-09-08T11:48:31,041 elif PyBytes_Check(filename): 2023-09-08T11:48:31,041 cstr_filename = PyBytes_AsString(filename) 2023-09-08T11:48:31,042 ^ 2023-09-08T11:48:31,042 ------------------------------------------------------------ 2023-09-08T11:48:31,043 pylognorm/bindings/liblognorm.pyx:65:44: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:31,044 Error compiling Cython file: 2023-09-08T11:48:31,044 ------------------------------------------------------------ 2023-09-08T11:48:31,044 ... 2023-09-08T11:48:31,045 cstr_filename = PyBytes_AsString(filename) 2023-09-08T11:48:31,045 else: 2023-09-08T11:48:31,046 raise Exception( 2023-09-08T11:48:31,046 'Unable to convert to cstr: {}'.format(type(filename))) 2023-09-08T11:48:31,047 ln_loadSamples(self.normalizer_ctx, cstr_filename) 2023-09-08T11:48:31,048 ^ 2023-09-08T11:48:31,048 ------------------------------------------------------------ 2023-09-08T11:48:31,049 pylognorm/bindings/liblognorm.pyx:70:8: undeclared name not builtin: ln_loadSamples 2023-09-08T11:48:31,050 Error compiling Cython file: 2023-09-08T11:48:31,050 ------------------------------------------------------------ 2023-09-08T11:48:31,051 ... 2023-09-08T11:48:31,051 def normalize(self, object data, int length): 2023-09-08T11:48:31,052 cdef char *normal = self._normalize(_object_to_cstr(data), length) 2023-09-08T11:48:31,052 if normal == NULL: 2023-09-08T11:48:31,053 return None 2023-09-08T11:48:31,053 else: 2023-09-08T11:48:31,054 pyobj = PyUnicode_FromString(normal) 2023-09-08T11:48:31,054 ^ 2023-09-08T11:48:31,055 ------------------------------------------------------------ 2023-09-08T11:48:31,056 pylognorm/bindings/liblognorm.pyx:77:20: undeclared name not builtin: PyUnicode_FromString 2023-09-08T11:48:31,058 Error compiling Cython file: 2023-09-08T11:48:31,058 ------------------------------------------------------------ 2023-09-08T11:48:31,059 ... 2023-09-08T11:48:31,059 pyobj = PyUnicode_FromString(normal) 2023-09-08T11:48:31,060 free(normal) 2023-09-08T11:48:31,061 return pyobj 2023-09-08T11:48:31,062 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:31,062 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:31,063 ^ 2023-09-08T11:48:31,063 ------------------------------------------------------------ 2023-09-08T11:48:31,064 pylognorm/bindings/liblognorm.pyx:82:32: undeclared name not builtin: es_newStrFromCStr 2023-09-08T11:48:31,065 Error compiling Cython file: 2023-09-08T11:48:31,066 ------------------------------------------------------------ 2023-09-08T11:48:31,066 ... 2023-09-08T11:48:31,067 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:31,067 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:31,068 cdef ee_event *event = NULL 2023-09-08T11:48:31,069 cdef char *formatted = NULL 2023-09-08T11:48:31,070 ln_normalize(self.normalizer_ctx, in_str, &event) 2023-09-08T11:48:31,070 ^ 2023-09-08T11:48:31,071 ------------------------------------------------------------ 2023-09-08T11:48:31,072 pylognorm/bindings/liblognorm.pyx:86:8: undeclared name not builtin: ln_normalize 2023-09-08T11:48:31,074 Error compiling Cython file: 2023-09-08T11:48:31,075 ------------------------------------------------------------ 2023-09-08T11:48:31,075 ... 2023-09-08T11:48:31,077 ln_normalize(self.normalizer_ctx, in_str, &event) 2023-09-08T11:48:31,078 if event != NULL: 2023-09-08T11:48:31,078 formatted = self.format_JSON(event) 2023-09-08T11:48:31,078 ee_deleteEvent(event) 2023-09-08T11:48:31,079 ^ 2023-09-08T11:48:31,079 ------------------------------------------------------------ 2023-09-08T11:48:31,080 pylognorm/bindings/liblognorm.pyx:90:12: undeclared name not builtin: ee_deleteEvent 2023-09-08T11:48:31,081 Error compiling Cython file: 2023-09-08T11:48:31,081 ------------------------------------------------------------ 2023-09-08T11:48:31,082 ... 2023-09-08T11:48:31,082 ln_normalize(self.normalizer_ctx, in_str, &event) 2023-09-08T11:48:31,083 if event != NULL: 2023-09-08T11:48:31,084 formatted = self.format_JSON(event) 2023-09-08T11:48:31,084 ee_deleteEvent(event) 2023-09-08T11:48:31,084 es_deleteStr(in_str) 2023-09-08T11:48:31,085 ^ 2023-09-08T11:48:31,085 ------------------------------------------------------------ 2023-09-08T11:48:31,086 pylognorm/bindings/liblognorm.pyx:91:8: undeclared name not builtin: es_deleteStr 2023-09-08T11:48:31,087 Error compiling Cython file: 2023-09-08T11:48:31,087 ------------------------------------------------------------ 2023-09-08T11:48:31,088 ... 2023-09-08T11:48:31,089 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:31,089 cdef es_str_t *out_str = NULL 2023-09-08T11:48:31,090 cdef char *cstr = NULL 2023-09-08T11:48:31,091 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:31,091 ^ 2023-09-08T11:48:31,092 ------------------------------------------------------------ 2023-09-08T11:48:31,093 pylognorm/bindings/liblognorm.pyx:98:8: undeclared name not builtin: ee_fmtEventToJSON 2023-09-08T11:48:31,094 Error compiling Cython file: 2023-09-08T11:48:31,095 ------------------------------------------------------------ 2023-09-08T11:48:31,096 ... 2023-09-08T11:48:31,096 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:31,097 cdef es_str_t *out_str = NULL 2023-09-08T11:48:31,098 cdef char *cstr = NULL 2023-09-08T11:48:31,099 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:31,099 cstr = es_str2cstr(out_str, NULL) 2023-09-08T11:48:31,100 ^ 2023-09-08T11:48:31,101 ------------------------------------------------------------ 2023-09-08T11:48:31,102 pylognorm/bindings/liblognorm.pyx:99:15: undeclared name not builtin: es_str2cstr 2023-09-08T11:48:31,103 Error compiling Cython file: 2023-09-08T11:48:31,104 ------------------------------------------------------------ 2023-09-08T11:48:31,104 ... 2023-09-08T11:48:31,105 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:31,105 cdef es_str_t *out_str = NULL 2023-09-08T11:48:31,106 cdef char *cstr = NULL 2023-09-08T11:48:31,107 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:31,108 cstr = es_str2cstr(out_str, NULL) 2023-09-08T11:48:31,108 ^ 2023-09-08T11:48:31,109 ------------------------------------------------------------ 2023-09-08T11:48:31,110 pylognorm/bindings/liblognorm.pyx:99:36: Cannot convert 'void *' to Python object 2023-09-08T11:48:31,112 Error compiling Cython file: 2023-09-08T11:48:31,112 ------------------------------------------------------------ 2023-09-08T11:48:31,113 ... 2023-09-08T11:48:31,113 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:31,114 cdef es_str_t *out_str = NULL 2023-09-08T11:48:31,115 cdef char *cstr = NULL 2023-09-08T11:48:31,116 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:31,117 cstr = es_str2cstr(out_str, NULL) 2023-09-08T11:48:31,117 ^ 2023-09-08T11:48:31,118 ------------------------------------------------------------ 2023-09-08T11:48:31,120 pylognorm/bindings/liblognorm.pyx:99:26: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:31,477 Compiling pylognorm/bindings/liblognorm.pyx because it changed. 2023-09-08T11:48:31,478 [1/1] Cythonizing pylognorm/bindings/liblognorm.pyx 2023-09-08T11:48:31,540 Error compiling Cython file: 2023-09-08T11:48:31,540 ------------------------------------------------------------ 2023-09-08T11:48:31,540 ... 2023-09-08T11:48:31,541 from os import path 2023-09-08T11:48:31,541 from liblognorm cimport * 2023-09-08T11:48:31,542 ^ 2023-09-08T11:48:31,542 ------------------------------------------------------------ 2023-09-08T11:48:31,543 pylognorm/bindings/liblognorm.pyx:2:0: 'liblognorm.pxd' not found 2023-09-08T11:48:31,634 Error compiling Cython file: 2023-09-08T11:48:31,635 ------------------------------------------------------------ 2023-09-08T11:48:31,635 ... 2023-09-08T11:48:31,636 return self.cnormalizer.normalize(logline, len(logline)) 2023-09-08T11:48:31,637 cdef class CLogNormalizer(object): 2023-09-08T11:48:31,638 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:31,639 ^ 2023-09-08T11:48:31,639 ------------------------------------------------------------ 2023-09-08T11:48:31,640 pylognorm/bindings/liblognorm.pyx:44:9: 'ln_ctx' is not a type identifier 2023-09-08T11:48:31,641 Error compiling Cython file: 2023-09-08T11:48:31,642 ------------------------------------------------------------ 2023-09-08T11:48:31,642 ... 2023-09-08T11:48:31,643 cdef class CLogNormalizer(object): 2023-09-08T11:48:31,644 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:31,645 cdef ee_ctx cee_ctx 2023-09-08T11:48:31,645 ^ 2023-09-08T11:48:31,646 ------------------------------------------------------------ 2023-09-08T11:48:31,647 pylognorm/bindings/liblognorm.pyx:45:9: 'ee_ctx' is not a type identifier 2023-09-08T11:48:31,648 Error compiling Cython file: 2023-09-08T11:48:31,649 ------------------------------------------------------------ 2023-09-08T11:48:31,649 ... 2023-09-08T11:48:31,650 formatted = self.format_JSON(event) 2023-09-08T11:48:31,650 ee_deleteEvent(event) 2023-09-08T11:48:31,651 es_deleteStr(in_str) 2023-09-08T11:48:31,652 return formatted 2023-09-08T11:48:31,653 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:31,653 ^ 2023-09-08T11:48:31,654 ------------------------------------------------------------ 2023-09-08T11:48:31,655 pylognorm/bindings/liblognorm.pyx:94:34: 'ee_event' is not a type identifier 2023-09-08T11:48:31,656 Error compiling Cython file: 2023-09-08T11:48:31,657 ------------------------------------------------------------ 2023-09-08T11:48:31,657 ... 2023-09-08T11:48:31,658 pyobj = PyUnicode_FromString(normal) 2023-09-08T11:48:31,658 free(normal) 2023-09-08T11:48:31,659 return pyobj 2023-09-08T11:48:31,660 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:31,660 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:31,661 ^ 2023-09-08T11:48:31,661 ------------------------------------------------------------ 2023-09-08T11:48:31,662 pylognorm/bindings/liblognorm.pyx:82:13: 'es_str_t' is not a type identifier 2023-09-08T11:48:31,664 Error compiling Cython file: 2023-09-08T11:48:31,665 ------------------------------------------------------------ 2023-09-08T11:48:31,665 ... 2023-09-08T11:48:31,666 free(normal) 2023-09-08T11:48:31,666 return pyobj 2023-09-08T11:48:31,667 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:31,668 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:31,669 cdef ee_event *event = NULL 2023-09-08T11:48:31,669 ^ 2023-09-08T11:48:31,670 ------------------------------------------------------------ 2023-09-08T11:48:31,672 pylognorm/bindings/liblognorm.pyx:83:13: 'ee_event' is not a type identifier 2023-09-08T11:48:31,672 Error compiling Cython file: 2023-09-08T11:48:31,673 ------------------------------------------------------------ 2023-09-08T11:48:31,673 ... 2023-09-08T11:48:31,674 ee_deleteEvent(event) 2023-09-08T11:48:31,674 es_deleteStr(in_str) 2023-09-08T11:48:31,675 return formatted 2023-09-08T11:48:31,676 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:31,676 cdef es_str_t *out_str = NULL 2023-09-08T11:48:31,677 ^ 2023-09-08T11:48:31,677 ------------------------------------------------------------ 2023-09-08T11:48:31,679 pylognorm/bindings/liblognorm.pyx:95:13: 'es_str_t' is not a type identifier 2023-09-08T11:48:31,692 Error compiling Cython file: 2023-09-08T11:48:31,693 ------------------------------------------------------------ 2023-09-08T11:48:31,693 ... 2023-09-08T11:48:31,694 from libc.stdlib cimport malloc, free 2023-09-08T11:48:31,694 from libc.string cimport strlen 2023-09-08T11:48:31,695 def lib_version(): 2023-09-08T11:48:31,696 cdef char* version = ln_version() 2023-09-08T11:48:31,696 ^ 2023-09-08T11:48:31,697 ------------------------------------------------------------ 2023-09-08T11:48:31,698 pylognorm/bindings/liblognorm.pyx:8:25: undeclared name not builtin: ln_version 2023-09-08T11:48:31,699 Error compiling Cython file: 2023-09-08T11:48:31,699 ------------------------------------------------------------ 2023-09-08T11:48:31,700 ... 2023-09-08T11:48:31,700 from libc.stdlib cimport malloc, free 2023-09-08T11:48:31,701 from libc.string cimport strlen 2023-09-08T11:48:31,702 def lib_version(): 2023-09-08T11:48:31,703 cdef char* version = ln_version() 2023-09-08T11:48:31,703 ^ 2023-09-08T11:48:31,704 ------------------------------------------------------------ 2023-09-08T11:48:31,705 pylognorm/bindings/liblognorm.pyx:8:9: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:31,706 Error compiling Cython file: 2023-09-08T11:48:31,707 ------------------------------------------------------------ 2023-09-08T11:48:31,707 ... 2023-09-08T11:48:31,708 from libc.string cimport strlen 2023-09-08T11:48:31,710 def lib_version(): 2023-09-08T11:48:31,710 cdef char* version = ln_version() 2023-09-08T11:48:31,711 return PyString_FromStringAndSize(version, strlen(version)) 2023-09-08T11:48:31,712 ^ 2023-09-08T11:48:31,712 ------------------------------------------------------------ 2023-09-08T11:48:31,714 pylognorm/bindings/liblognorm.pyx:9:11: undeclared name not builtin: PyString_FromStringAndSize 2023-09-08T11:48:31,715 Error compiling Cython file: 2023-09-08T11:48:31,715 ------------------------------------------------------------ 2023-09-08T11:48:31,716 ... 2023-09-08T11:48:31,717 return PyString_FromStringAndSize(version, strlen(version)) 2023-09-08T11:48:31,718 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:31,719 cdef char *cstr_filename 2023-09-08T11:48:31,719 if PyByteArray_Check(obj): 2023-09-08T11:48:31,720 ^ 2023-09-08T11:48:31,721 ------------------------------------------------------------ 2023-09-08T11:48:31,722 pylognorm/bindings/liblognorm.pyx:14:7: undeclared name not builtin: PyByteArray_Check 2023-09-08T11:48:31,723 Error compiling Cython file: 2023-09-08T11:48:31,724 ------------------------------------------------------------ 2023-09-08T11:48:31,725 ... 2023-09-08T11:48:31,726 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:31,727 cdef char *cstr_filename 2023-09-08T11:48:31,727 if PyByteArray_Check(obj): 2023-09-08T11:48:31,728 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:31,728 ^ 2023-09-08T11:48:31,729 ------------------------------------------------------------ 2023-09-08T11:48:31,730 pylognorm/bindings/liblognorm.pyx:15:24: undeclared name not builtin: PyByteArray_AsString 2023-09-08T11:48:31,731 Error compiling Cython file: 2023-09-08T11:48:31,731 ------------------------------------------------------------ 2023-09-08T11:48:31,732 ... 2023-09-08T11:48:31,733 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:31,733 cdef char *cstr_filename 2023-09-08T11:48:31,734 if PyByteArray_Check(obj): 2023-09-08T11:48:31,734 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:31,734 ^ 2023-09-08T11:48:31,735 ------------------------------------------------------------ 2023-09-08T11:48:31,736 pylognorm/bindings/liblognorm.pyx:15:44: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:31,736 Error compiling Cython file: 2023-09-08T11:48:31,737 ------------------------------------------------------------ 2023-09-08T11:48:31,737 ... 2023-09-08T11:48:31,738 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:31,739 cdef char *cstr_filename 2023-09-08T11:48:31,739 if PyByteArray_Check(obj): 2023-09-08T11:48:31,739 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:31,740 elif PyBytes_Check(obj): 2023-09-08T11:48:31,740 ^ 2023-09-08T11:48:31,741 ------------------------------------------------------------ 2023-09-08T11:48:31,742 pylognorm/bindings/liblognorm.pyx:16:9: undeclared name not builtin: PyBytes_Check 2023-09-08T11:48:31,742 Error compiling Cython file: 2023-09-08T11:48:31,743 ------------------------------------------------------------ 2023-09-08T11:48:31,744 ... 2023-09-08T11:48:31,744 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:31,745 cdef char *cstr_filename 2023-09-08T11:48:31,745 if PyByteArray_Check(obj): 2023-09-08T11:48:31,746 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:31,746 elif PyBytes_Check(obj): 2023-09-08T11:48:31,747 cstr_filename = PyBytes_AsString(obj) 2023-09-08T11:48:31,747 ^ 2023-09-08T11:48:31,748 ------------------------------------------------------------ 2023-09-08T11:48:31,749 pylognorm/bindings/liblognorm.pyx:17:24: undeclared name not builtin: PyBytes_AsString 2023-09-08T11:48:31,750 Error compiling Cython file: 2023-09-08T11:48:31,750 ------------------------------------------------------------ 2023-09-08T11:48:31,751 ... 2023-09-08T11:48:31,751 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:31,752 cdef char *cstr_filename 2023-09-08T11:48:31,753 if PyByteArray_Check(obj): 2023-09-08T11:48:31,753 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:31,754 elif PyBytes_Check(obj): 2023-09-08T11:48:31,754 cstr_filename = PyBytes_AsString(obj) 2023-09-08T11:48:31,755 ^ 2023-09-08T11:48:31,755 ------------------------------------------------------------ 2023-09-08T11:48:31,756 pylognorm/bindings/liblognorm.pyx:17:40: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:31,758 Error compiling Cython file: 2023-09-08T11:48:31,758 ------------------------------------------------------------ 2023-09-08T11:48:31,759 ... 2023-09-08T11:48:31,760 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:31,760 cdef ee_ctx cee_ctx 2023-09-08T11:48:31,761 def __cinit__(self): 2023-09-08T11:48:31,762 self.normalizer_ctx = ln_initCtx() 2023-09-08T11:48:31,762 ^ 2023-09-08T11:48:31,763 ------------------------------------------------------------ 2023-09-08T11:48:31,764 pylognorm/bindings/liblognorm.pyx:48:30: undeclared name not builtin: ln_initCtx 2023-09-08T11:48:31,765 Error compiling Cython file: 2023-09-08T11:48:31,766 ------------------------------------------------------------ 2023-09-08T11:48:31,766 ... 2023-09-08T11:48:31,767 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:31,768 cdef ee_ctx cee_ctx 2023-09-08T11:48:31,769 def __cinit__(self): 2023-09-08T11:48:31,769 self.normalizer_ctx = ln_initCtx() 2023-09-08T11:48:31,770 self.cee_ctx = ee_initCtx() 2023-09-08T11:48:31,770 ^ 2023-09-08T11:48:31,770 ------------------------------------------------------------ 2023-09-08T11:48:31,771 pylognorm/bindings/liblognorm.pyx:49:23: undeclared name not builtin: ee_initCtx 2023-09-08T11:48:31,772 Error compiling Cython file: 2023-09-08T11:48:31,772 ------------------------------------------------------------ 2023-09-08T11:48:31,773 ... 2023-09-08T11:48:31,773 cdef ee_ctx cee_ctx 2023-09-08T11:48:31,774 def __cinit__(self): 2023-09-08T11:48:31,775 self.normalizer_ctx = ln_initCtx() 2023-09-08T11:48:31,775 self.cee_ctx = ee_initCtx() 2023-09-08T11:48:31,776 ln_setEECtx(self.normalizer_ctx, self.cee_ctx); 2023-09-08T11:48:31,776 ^ 2023-09-08T11:48:31,777 ------------------------------------------------------------ 2023-09-08T11:48:31,777 pylognorm/bindings/liblognorm.pyx:50:8: undeclared name not builtin: ln_setEECtx 2023-09-08T11:48:31,778 Error compiling Cython file: 2023-09-08T11:48:31,779 ------------------------------------------------------------ 2023-09-08T11:48:31,779 ... 2023-09-08T11:48:31,780 def __init__(self): 2023-09-08T11:48:31,781 pass 2023-09-08T11:48:31,781 def __dealoc__(self): 2023-09-08T11:48:31,782 ee_exitCtx(self.cee_ctx) 2023-09-08T11:48:31,782 ^ 2023-09-08T11:48:31,783 ------------------------------------------------------------ 2023-09-08T11:48:31,784 pylognorm/bindings/liblognorm.pyx:56:8: undeclared name not builtin: ee_exitCtx 2023-09-08T11:48:31,784 Error compiling Cython file: 2023-09-08T11:48:31,785 ------------------------------------------------------------ 2023-09-08T11:48:31,785 ... 2023-09-08T11:48:31,786 def __init__(self): 2023-09-08T11:48:31,787 pass 2023-09-08T11:48:31,788 def __dealoc__(self): 2023-09-08T11:48:31,789 ee_exitCtx(self.cee_ctx) 2023-09-08T11:48:31,790 ln_exitCtx(self.normalizer_ctx) 2023-09-08T11:48:31,791 ^ 2023-09-08T11:48:31,792 ------------------------------------------------------------ 2023-09-08T11:48:31,794 pylognorm/bindings/liblognorm.pyx:57:8: undeclared name not builtin: ln_exitCtx 2023-09-08T11:48:31,795 Error compiling Cython file: 2023-09-08T11:48:31,796 ------------------------------------------------------------ 2023-09-08T11:48:31,797 ... 2023-09-08T11:48:31,799 def load_rules(self, object filename): 2023-09-08T11:48:31,799 cdef char* cstr_filename 2023-09-08T11:48:31,801 if PyByteArray_Check(filename): 2023-09-08T11:48:31,802 cstr_filename = PyByteArray_AsString(filename) 2023-09-08T11:48:31,803 ^ 2023-09-08T11:48:31,803 ------------------------------------------------------------ 2023-09-08T11:48:31,805 pylognorm/bindings/liblognorm.pyx:63:48: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:31,806 Error compiling Cython file: 2023-09-08T11:48:31,807 ------------------------------------------------------------ 2023-09-08T11:48:31,807 ... 2023-09-08T11:48:31,808 cdef char* cstr_filename 2023-09-08T11:48:31,810 if PyByteArray_Check(filename): 2023-09-08T11:48:31,811 cstr_filename = PyByteArray_AsString(filename) 2023-09-08T11:48:31,811 elif PyBytes_Check(filename): 2023-09-08T11:48:31,812 cstr_filename = PyBytes_AsString(filename) 2023-09-08T11:48:31,813 ^ 2023-09-08T11:48:31,814 ------------------------------------------------------------ 2023-09-08T11:48:31,815 pylognorm/bindings/liblognorm.pyx:65:44: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:31,817 Error compiling Cython file: 2023-09-08T11:48:31,818 ------------------------------------------------------------ 2023-09-08T11:48:31,819 ... 2023-09-08T11:48:31,820 cstr_filename = PyBytes_AsString(filename) 2023-09-08T11:48:31,820 else: 2023-09-08T11:48:31,821 raise Exception( 2023-09-08T11:48:31,821 'Unable to convert to cstr: {}'.format(type(filename))) 2023-09-08T11:48:31,823 ln_loadSamples(self.normalizer_ctx, cstr_filename) 2023-09-08T11:48:31,823 ^ 2023-09-08T11:48:31,824 ------------------------------------------------------------ 2023-09-08T11:48:31,824 pylognorm/bindings/liblognorm.pyx:70:8: undeclared name not builtin: ln_loadSamples 2023-09-08T11:48:31,825 Error compiling Cython file: 2023-09-08T11:48:31,826 ------------------------------------------------------------ 2023-09-08T11:48:31,826 ... 2023-09-08T11:48:31,826 def normalize(self, object data, int length): 2023-09-08T11:48:31,827 cdef char *normal = self._normalize(_object_to_cstr(data), length) 2023-09-08T11:48:31,827 if normal == NULL: 2023-09-08T11:48:31,828 return None 2023-09-08T11:48:31,828 else: 2023-09-08T11:48:31,828 pyobj = PyUnicode_FromString(normal) 2023-09-08T11:48:31,829 ^ 2023-09-08T11:48:31,829 ------------------------------------------------------------ 2023-09-08T11:48:31,830 pylognorm/bindings/liblognorm.pyx:77:20: undeclared name not builtin: PyUnicode_FromString 2023-09-08T11:48:31,831 Error compiling Cython file: 2023-09-08T11:48:31,831 ------------------------------------------------------------ 2023-09-08T11:48:31,832 ... 2023-09-08T11:48:31,832 pyobj = PyUnicode_FromString(normal) 2023-09-08T11:48:31,833 free(normal) 2023-09-08T11:48:31,833 return pyobj 2023-09-08T11:48:31,834 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:31,835 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:31,835 ^ 2023-09-08T11:48:31,836 ------------------------------------------------------------ 2023-09-08T11:48:31,837 pylognorm/bindings/liblognorm.pyx:82:32: undeclared name not builtin: es_newStrFromCStr 2023-09-08T11:48:31,838 Error compiling Cython file: 2023-09-08T11:48:31,839 ------------------------------------------------------------ 2023-09-08T11:48:31,839 ... 2023-09-08T11:48:31,840 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:31,841 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:31,842 cdef ee_event *event = NULL 2023-09-08T11:48:31,843 cdef char *formatted = NULL 2023-09-08T11:48:31,844 ln_normalize(self.normalizer_ctx, in_str, &event) 2023-09-08T11:48:31,845 ^ 2023-09-08T11:48:31,846 ------------------------------------------------------------ 2023-09-08T11:48:31,847 pylognorm/bindings/liblognorm.pyx:86:8: undeclared name not builtin: ln_normalize 2023-09-08T11:48:31,849 Error compiling Cython file: 2023-09-08T11:48:31,849 ------------------------------------------------------------ 2023-09-08T11:48:31,850 ... 2023-09-08T11:48:31,852 ln_normalize(self.normalizer_ctx, in_str, &event) 2023-09-08T11:48:31,853 if event != NULL: 2023-09-08T11:48:31,854 formatted = self.format_JSON(event) 2023-09-08T11:48:31,855 ee_deleteEvent(event) 2023-09-08T11:48:31,855 ^ 2023-09-08T11:48:31,856 ------------------------------------------------------------ 2023-09-08T11:48:31,858 pylognorm/bindings/liblognorm.pyx:90:12: undeclared name not builtin: ee_deleteEvent 2023-09-08T11:48:31,859 Error compiling Cython file: 2023-09-08T11:48:31,860 ------------------------------------------------------------ 2023-09-08T11:48:31,861 ... 2023-09-08T11:48:31,862 ln_normalize(self.normalizer_ctx, in_str, &event) 2023-09-08T11:48:31,864 if event != NULL: 2023-09-08T11:48:31,865 formatted = self.format_JSON(event) 2023-09-08T11:48:31,866 ee_deleteEvent(event) 2023-09-08T11:48:31,866 es_deleteStr(in_str) 2023-09-08T11:48:31,867 ^ 2023-09-08T11:48:31,868 ------------------------------------------------------------ 2023-09-08T11:48:31,870 pylognorm/bindings/liblognorm.pyx:91:8: undeclared name not builtin: es_deleteStr 2023-09-08T11:48:31,871 Error compiling Cython file: 2023-09-08T11:48:31,872 ------------------------------------------------------------ 2023-09-08T11:48:31,872 ... 2023-09-08T11:48:31,874 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:31,875 cdef es_str_t *out_str = NULL 2023-09-08T11:48:31,875 cdef char *cstr = NULL 2023-09-08T11:48:31,877 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:31,877 ^ 2023-09-08T11:48:31,878 ------------------------------------------------------------ 2023-09-08T11:48:31,879 pylognorm/bindings/liblognorm.pyx:98:8: undeclared name not builtin: ee_fmtEventToJSON 2023-09-08T11:48:31,881 Error compiling Cython file: 2023-09-08T11:48:31,881 ------------------------------------------------------------ 2023-09-08T11:48:31,882 ... 2023-09-08T11:48:31,882 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:31,883 cdef es_str_t *out_str = NULL 2023-09-08T11:48:31,884 cdef char *cstr = NULL 2023-09-08T11:48:31,885 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:31,885 cstr = es_str2cstr(out_str, NULL) 2023-09-08T11:48:31,886 ^ 2023-09-08T11:48:31,887 ------------------------------------------------------------ 2023-09-08T11:48:31,888 pylognorm/bindings/liblognorm.pyx:99:15: undeclared name not builtin: es_str2cstr 2023-09-08T11:48:31,890 Error compiling Cython file: 2023-09-08T11:48:31,890 ------------------------------------------------------------ 2023-09-08T11:48:31,892 ... 2023-09-08T11:48:31,893 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:31,893 cdef es_str_t *out_str = NULL 2023-09-08T11:48:31,894 cdef char *cstr = NULL 2023-09-08T11:48:31,896 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:31,897 cstr = es_str2cstr(out_str, NULL) 2023-09-08T11:48:31,898 ^ 2023-09-08T11:48:31,899 ------------------------------------------------------------ 2023-09-08T11:48:31,900 pylognorm/bindings/liblognorm.pyx:99:36: Cannot convert 'void *' to Python object 2023-09-08T11:48:31,902 Error compiling Cython file: 2023-09-08T11:48:31,903 ------------------------------------------------------------ 2023-09-08T11:48:31,904 ... 2023-09-08T11:48:31,905 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:31,906 cdef es_str_t *out_str = NULL 2023-09-08T11:48:31,906 cdef char *cstr = NULL 2023-09-08T11:48:31,908 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:31,908 cstr = es_str2cstr(out_str, NULL) 2023-09-08T11:48:31,909 ^ 2023-09-08T11:48:31,910 ------------------------------------------------------------ 2023-09-08T11:48:31,911 pylognorm/bindings/liblognorm.pyx:99:26: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:31,912 Traceback (most recent call last): 2023-09-08T11:48:31,913 File "", line 2, in 2023-09-08T11:48:31,914 File "", line 34, in 2023-09-08T11:48:31,915 File "/tmp/pip-wheel-yovnfxm5/pylognorm_00c4735af8cb45eb838d659260a8e15e/setup.py", line 85, in 2023-09-08T11:48:31,916 setup( 2023-09-08T11:48:31,916 File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 185, in setup 2023-09-08T11:48:31,917 return run_commands(dist) 2023-09-08T11:48:31,919 ^^^^^^^^^^^^^^^^^^ 2023-09-08T11:48:31,921 File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands 2023-09-08T11:48:31,922 dist.run_commands() 2023-09-08T11:48:31,924 File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands 2023-09-08T11:48:31,925 self.run_command(cmd) 2023-09-08T11:48:31,926 File "/usr/local/lib/python3.11/dist-packages/setuptools/dist.py", line 1001, in run_command 2023-09-08T11:48:31,928 super().run_command(command) 2023-09-08T11:48:31,930 File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command 2023-09-08T11:48:31,931 cmd_obj.run() 2023-09-08T11:48:31,932 File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 325, in run 2023-09-08T11:48:31,933 self.run_command("build") 2023-09-08T11:48:31,935 File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py", line 318, in run_command 2023-09-08T11:48:31,936 self.distribution.run_command(command) 2023-09-08T11:48:31,938 File "/usr/local/lib/python3.11/dist-packages/setuptools/dist.py", line 1001, in run_command 2023-09-08T11:48:31,939 super().run_command(command) 2023-09-08T11:48:31,940 File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command 2023-09-08T11:48:31,941 cmd_obj.run() 2023-09-08T11:48:31,943 File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/command/build.py", line 131, in run 2023-09-08T11:48:31,944 self.run_command(cmd_name) 2023-09-08T11:48:31,945 File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py", line 318, in run_command 2023-09-08T11:48:31,947 self.distribution.run_command(command) 2023-09-08T11:48:31,948 File "/usr/local/lib/python3.11/dist-packages/setuptools/dist.py", line 1001, in run_command 2023-09-08T11:48:31,949 super().run_command(command) 2023-09-08T11:48:31,950 File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command 2023-09-08T11:48:31,952 cmd_obj.run() 2023-09-08T11:48:31,953 File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/command/build_ext.py", line 345, in run 2023-09-08T11:48:31,955 self.build_extensions() 2023-09-08T11:48:31,956 File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions 2023-09-08T11:48:31,958 self._build_extensions_serial() 2023-09-08T11:48:31,959 File "/usr/local/lib/python3.11/dist-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial 2023-09-08T11:48:31,961 self.build_extension(ext) 2023-09-08T11:48:31,962 File "/usr/local/lib/python3.11/dist-packages/Cython/Distutils/build_ext.py", line 122, in build_extension 2023-09-08T11:48:31,964 new_ext = cythonize( 2023-09-08T11:48:31,965 ^^^^^^^^^^ 2023-09-08T11:48:31,967 File "/usr/local/lib/python3.11/dist-packages/Cython/Build/Dependencies.py", line 1134, in cythonize 2023-09-08T11:48:31,968 cythonize_one(*args) 2023-09-08T11:48:31,970 File "/usr/local/lib/python3.11/dist-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one 2023-09-08T11:48:31,971 raise CompileError(None, pyx_file) 2023-09-08T11:48:31,973 Cython.Compiler.Errors.CompileError: pylognorm/bindings/liblognorm.pyx 2023-09-08T11:48:32,071 ERROR: [present-rich] python setup.py bdist_wheel exited with 1 2023-09-08T11:48:32,085 [bold magenta]full command[/]: [blue]/usr/bin/python3 -u -c ' 2023-09-08T11:48:32,085 exec(compile('"'"''"'"''"'"' 2023-09-08T11:48:32,085 # This is -- a caller that pip uses to run setup.py 2023-09-08T11:48:32,085 # 2023-09-08T11:48:32,085 # - It imports setuptools before invoking setup.py, to enable projects that directly 2023-09-08T11:48:32,085 # import from `distutils.core` to work with newer packaging standards. 2023-09-08T11:48:32,085 # - It provides a clear error message when setuptools is not installed. 2023-09-08T11:48:32,085 # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so 2023-09-08T11:48:32,085 # setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning: 2023-09-08T11:48:32,085 # manifest_maker: standard file '"'"'-c'"'"' not found". 2023-09-08T11:48:32,085 # - It generates a shim setup.py, for handling setup.cfg-only projects. 2023-09-08T11:48:32,085 import os, sys, tokenize 2023-09-08T11:48:32,085 2023-09-08T11:48:32,085 try: 2023-09-08T11:48:32,085 import setuptools 2023-09-08T11:48:32,085 except ImportError as error: 2023-09-08T11:48:32,085 print( 2023-09-08T11:48:32,085 "ERROR: Can not execute `setup.py` since setuptools is not available in " 2023-09-08T11:48:32,085 "the build environment.", 2023-09-08T11:48:32,085 file=sys.stderr, 2023-09-08T11:48:32,085 ) 2023-09-08T11:48:32,085 sys.exit(1) 2023-09-08T11:48:32,085 2023-09-08T11:48:32,085 __file__ = %r 2023-09-08T11:48:32,085 sys.argv[0] = __file__ 2023-09-08T11:48:32,085 2023-09-08T11:48:32,085 if os.path.exists(__file__): 2023-09-08T11:48:32,085 filename = __file__ 2023-09-08T11:48:32,085 with tokenize.open(__file__) as f: 2023-09-08T11:48:32,085 setup_py_code = f.read() 2023-09-08T11:48:32,085 else: 2023-09-08T11:48:32,085 filename = "" 2023-09-08T11:48:32,085 setup_py_code = "from setuptools import setup; setup()" 2023-09-08T11:48:32,085 2023-09-08T11:48:32,085 exec(compile(setup_py_code, filename, "exec")) 2023-09-08T11:48:32,085 '"'"''"'"''"'"' % ('"'"'/tmp/pip-wheel-yovnfxm5/pylognorm_00c4735af8cb45eb838d659260a8e15e/setup.py'"'"',), "", "exec"))' bdist_wheel -d /tmp/pip-wheel-u5zd0hmk[/] 2023-09-08T11:48:32,085 [bold magenta]cwd[/]: /tmp/pip-wheel-yovnfxm5/pylognorm_00c4735af8cb45eb838d659260a8e15e/ 2023-09-08T11:48:32,086 Building wheel for pylognorm (setup.py): finished with status 'error' 2023-09-08T11:48:32,087 ERROR: Failed building wheel for pylognorm 2023-09-08T11:48:32,089 Running setup.py clean for pylognorm 2023-09-08T11:48:32,090 Running command python setup.py clean 2023-09-08T11:48:34,463 /usr/local/lib/python3.11/dist-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-wheel-yovnfxm5/pylognorm_00c4735af8cb45eb838d659260a8e15e/pylognorm/bindings/liblognorm.pyx 2023-09-08T11:48:34,463 tree = Parsing.p_module(s, pxd, full_module_name) 2023-09-08T11:48:34,521 Error compiling Cython file: 2023-09-08T11:48:34,522 ------------------------------------------------------------ 2023-09-08T11:48:34,522 ... 2023-09-08T11:48:34,523 from os import path 2023-09-08T11:48:34,523 from liblognorm cimport * 2023-09-08T11:48:34,524 ^ 2023-09-08T11:48:34,524 ------------------------------------------------------------ 2023-09-08T11:48:34,525 pylognorm/bindings/liblognorm.pyx:2:0: 'liblognorm.pxd' not found 2023-09-08T11:48:34,626 Error compiling Cython file: 2023-09-08T11:48:34,627 ------------------------------------------------------------ 2023-09-08T11:48:34,627 ... 2023-09-08T11:48:34,628 return self.cnormalizer.normalize(logline, len(logline)) 2023-09-08T11:48:34,630 cdef class CLogNormalizer(object): 2023-09-08T11:48:34,631 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:34,631 ^ 2023-09-08T11:48:34,632 ------------------------------------------------------------ 2023-09-08T11:48:34,633 pylognorm/bindings/liblognorm.pyx:44:9: 'ln_ctx' is not a type identifier 2023-09-08T11:48:34,635 Error compiling Cython file: 2023-09-08T11:48:34,635 ------------------------------------------------------------ 2023-09-08T11:48:34,636 ... 2023-09-08T11:48:34,638 cdef class CLogNormalizer(object): 2023-09-08T11:48:34,639 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:34,640 cdef ee_ctx cee_ctx 2023-09-08T11:48:34,640 ^ 2023-09-08T11:48:34,641 ------------------------------------------------------------ 2023-09-08T11:48:34,642 pylognorm/bindings/liblognorm.pyx:45:9: 'ee_ctx' is not a type identifier 2023-09-08T11:48:34,643 Error compiling Cython file: 2023-09-08T11:48:34,644 ------------------------------------------------------------ 2023-09-08T11:48:34,644 ... 2023-09-08T11:48:34,645 formatted = self.format_JSON(event) 2023-09-08T11:48:34,645 ee_deleteEvent(event) 2023-09-08T11:48:34,645 es_deleteStr(in_str) 2023-09-08T11:48:34,646 return formatted 2023-09-08T11:48:34,646 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:34,647 ^ 2023-09-08T11:48:34,647 ------------------------------------------------------------ 2023-09-08T11:48:34,648 pylognorm/bindings/liblognorm.pyx:94:34: 'ee_event' is not a type identifier 2023-09-08T11:48:34,649 Error compiling Cython file: 2023-09-08T11:48:34,649 ------------------------------------------------------------ 2023-09-08T11:48:34,650 ... 2023-09-08T11:48:34,650 pyobj = PyUnicode_FromString(normal) 2023-09-08T11:48:34,651 free(normal) 2023-09-08T11:48:34,651 return pyobj 2023-09-08T11:48:34,652 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:34,652 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:34,653 ^ 2023-09-08T11:48:34,653 ------------------------------------------------------------ 2023-09-08T11:48:34,654 pylognorm/bindings/liblognorm.pyx:82:13: 'es_str_t' is not a type identifier 2023-09-08T11:48:34,655 Error compiling Cython file: 2023-09-08T11:48:34,655 ------------------------------------------------------------ 2023-09-08T11:48:34,656 ... 2023-09-08T11:48:34,656 free(normal) 2023-09-08T11:48:34,657 return pyobj 2023-09-08T11:48:34,658 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:34,659 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:34,659 cdef ee_event *event = NULL 2023-09-08T11:48:34,660 ^ 2023-09-08T11:48:34,661 ------------------------------------------------------------ 2023-09-08T11:48:34,662 pylognorm/bindings/liblognorm.pyx:83:13: 'ee_event' is not a type identifier 2023-09-08T11:48:34,663 Error compiling Cython file: 2023-09-08T11:48:34,664 ------------------------------------------------------------ 2023-09-08T11:48:34,664 ... 2023-09-08T11:48:34,665 ee_deleteEvent(event) 2023-09-08T11:48:34,666 es_deleteStr(in_str) 2023-09-08T11:48:34,666 return formatted 2023-09-08T11:48:34,667 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:34,668 cdef es_str_t *out_str = NULL 2023-09-08T11:48:34,668 ^ 2023-09-08T11:48:34,669 ------------------------------------------------------------ 2023-09-08T11:48:34,670 pylognorm/bindings/liblognorm.pyx:95:13: 'es_str_t' is not a type identifier 2023-09-08T11:48:34,697 Error compiling Cython file: 2023-09-08T11:48:34,697 ------------------------------------------------------------ 2023-09-08T11:48:34,698 ... 2023-09-08T11:48:34,698 from libc.stdlib cimport malloc, free 2023-09-08T11:48:34,699 from libc.string cimport strlen 2023-09-08T11:48:34,701 def lib_version(): 2023-09-08T11:48:34,701 cdef char* version = ln_version() 2023-09-08T11:48:34,702 ^ 2023-09-08T11:48:34,702 ------------------------------------------------------------ 2023-09-08T11:48:34,703 pylognorm/bindings/liblognorm.pyx:8:25: undeclared name not builtin: ln_version 2023-09-08T11:48:34,705 Error compiling Cython file: 2023-09-08T11:48:34,705 ------------------------------------------------------------ 2023-09-08T11:48:34,706 ... 2023-09-08T11:48:34,707 from libc.stdlib cimport malloc, free 2023-09-08T11:48:34,707 from libc.string cimport strlen 2023-09-08T11:48:34,709 def lib_version(): 2023-09-08T11:48:34,710 cdef char* version = ln_version() 2023-09-08T11:48:34,710 ^ 2023-09-08T11:48:34,710 ------------------------------------------------------------ 2023-09-08T11:48:34,711 pylognorm/bindings/liblognorm.pyx:8:9: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:34,712 Error compiling Cython file: 2023-09-08T11:48:34,713 ------------------------------------------------------------ 2023-09-08T11:48:34,713 ... 2023-09-08T11:48:34,713 from libc.string cimport strlen 2023-09-08T11:48:34,715 def lib_version(): 2023-09-08T11:48:34,715 cdef char* version = ln_version() 2023-09-08T11:48:34,716 return PyString_FromStringAndSize(version, strlen(version)) 2023-09-08T11:48:34,716 ^ 2023-09-08T11:48:34,716 ------------------------------------------------------------ 2023-09-08T11:48:34,717 pylognorm/bindings/liblognorm.pyx:9:11: undeclared name not builtin: PyString_FromStringAndSize 2023-09-08T11:48:34,718 Error compiling Cython file: 2023-09-08T11:48:34,719 ------------------------------------------------------------ 2023-09-08T11:48:34,719 ... 2023-09-08T11:48:34,720 return PyString_FromStringAndSize(version, strlen(version)) 2023-09-08T11:48:34,721 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:34,721 cdef char *cstr_filename 2023-09-08T11:48:34,722 if PyByteArray_Check(obj): 2023-09-08T11:48:34,722 ^ 2023-09-08T11:48:34,723 ------------------------------------------------------------ 2023-09-08T11:48:34,724 pylognorm/bindings/liblognorm.pyx:14:7: undeclared name not builtin: PyByteArray_Check 2023-09-08T11:48:34,725 Error compiling Cython file: 2023-09-08T11:48:34,725 ------------------------------------------------------------ 2023-09-08T11:48:34,726 ... 2023-09-08T11:48:34,728 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:34,728 cdef char *cstr_filename 2023-09-08T11:48:34,729 if PyByteArray_Check(obj): 2023-09-08T11:48:34,729 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:34,730 ^ 2023-09-08T11:48:34,730 ------------------------------------------------------------ 2023-09-08T11:48:34,731 pylognorm/bindings/liblognorm.pyx:15:24: undeclared name not builtin: PyByteArray_AsString 2023-09-08T11:48:34,732 Error compiling Cython file: 2023-09-08T11:48:34,733 ------------------------------------------------------------ 2023-09-08T11:48:34,733 ... 2023-09-08T11:48:34,735 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:34,736 cdef char *cstr_filename 2023-09-08T11:48:34,736 if PyByteArray_Check(obj): 2023-09-08T11:48:34,737 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:34,737 ^ 2023-09-08T11:48:34,738 ------------------------------------------------------------ 2023-09-08T11:48:34,739 pylognorm/bindings/liblognorm.pyx:15:44: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:34,740 Error compiling Cython file: 2023-09-08T11:48:34,740 ------------------------------------------------------------ 2023-09-08T11:48:34,741 ... 2023-09-08T11:48:34,742 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:34,742 cdef char *cstr_filename 2023-09-08T11:48:34,743 if PyByteArray_Check(obj): 2023-09-08T11:48:34,743 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:34,744 elif PyBytes_Check(obj): 2023-09-08T11:48:34,744 ^ 2023-09-08T11:48:34,745 ------------------------------------------------------------ 2023-09-08T11:48:34,746 pylognorm/bindings/liblognorm.pyx:16:9: undeclared name not builtin: PyBytes_Check 2023-09-08T11:48:34,747 Error compiling Cython file: 2023-09-08T11:48:34,748 ------------------------------------------------------------ 2023-09-08T11:48:34,749 ... 2023-09-08T11:48:34,749 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:34,750 cdef char *cstr_filename 2023-09-08T11:48:34,751 if PyByteArray_Check(obj): 2023-09-08T11:48:34,751 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:34,752 elif PyBytes_Check(obj): 2023-09-08T11:48:34,752 cstr_filename = PyBytes_AsString(obj) 2023-09-08T11:48:34,752 ^ 2023-09-08T11:48:34,753 ------------------------------------------------------------ 2023-09-08T11:48:34,753 pylognorm/bindings/liblognorm.pyx:17:24: undeclared name not builtin: PyBytes_AsString 2023-09-08T11:48:34,754 Error compiling Cython file: 2023-09-08T11:48:34,755 ------------------------------------------------------------ 2023-09-08T11:48:34,755 ... 2023-09-08T11:48:34,755 cdef char * _object_to_cstr(object obj): 2023-09-08T11:48:34,756 cdef char *cstr_filename 2023-09-08T11:48:34,756 if PyByteArray_Check(obj): 2023-09-08T11:48:34,757 cstr_filename = PyByteArray_AsString(obj) 2023-09-08T11:48:34,757 elif PyBytes_Check(obj): 2023-09-08T11:48:34,757 cstr_filename = PyBytes_AsString(obj) 2023-09-08T11:48:34,758 ^ 2023-09-08T11:48:34,758 ------------------------------------------------------------ 2023-09-08T11:48:34,759 pylognorm/bindings/liblognorm.pyx:17:40: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:34,760 Error compiling Cython file: 2023-09-08T11:48:34,760 ------------------------------------------------------------ 2023-09-08T11:48:34,761 ... 2023-09-08T11:48:34,762 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:34,762 cdef ee_ctx cee_ctx 2023-09-08T11:48:34,763 def __cinit__(self): 2023-09-08T11:48:34,763 self.normalizer_ctx = ln_initCtx() 2023-09-08T11:48:34,764 ^ 2023-09-08T11:48:34,764 ------------------------------------------------------------ 2023-09-08T11:48:34,765 pylognorm/bindings/liblognorm.pyx:48:30: undeclared name not builtin: ln_initCtx 2023-09-08T11:48:34,766 Error compiling Cython file: 2023-09-08T11:48:34,767 ------------------------------------------------------------ 2023-09-08T11:48:34,768 ... 2023-09-08T11:48:34,768 cdef ln_ctx normalizer_ctx 2023-09-08T11:48:34,769 cdef ee_ctx cee_ctx 2023-09-08T11:48:34,770 def __cinit__(self): 2023-09-08T11:48:34,770 self.normalizer_ctx = ln_initCtx() 2023-09-08T11:48:34,771 self.cee_ctx = ee_initCtx() 2023-09-08T11:48:34,771 ^ 2023-09-08T11:48:34,772 ------------------------------------------------------------ 2023-09-08T11:48:34,773 pylognorm/bindings/liblognorm.pyx:49:23: undeclared name not builtin: ee_initCtx 2023-09-08T11:48:34,774 Error compiling Cython file: 2023-09-08T11:48:34,775 ------------------------------------------------------------ 2023-09-08T11:48:34,775 ... 2023-09-08T11:48:34,776 cdef ee_ctx cee_ctx 2023-09-08T11:48:34,777 def __cinit__(self): 2023-09-08T11:48:34,777 self.normalizer_ctx = ln_initCtx() 2023-09-08T11:48:34,778 self.cee_ctx = ee_initCtx() 2023-09-08T11:48:34,778 ln_setEECtx(self.normalizer_ctx, self.cee_ctx); 2023-09-08T11:48:34,779 ^ 2023-09-08T11:48:34,779 ------------------------------------------------------------ 2023-09-08T11:48:34,780 pylognorm/bindings/liblognorm.pyx:50:8: undeclared name not builtin: ln_setEECtx 2023-09-08T11:48:34,781 Error compiling Cython file: 2023-09-08T11:48:34,782 ------------------------------------------------------------ 2023-09-08T11:48:34,783 ... 2023-09-08T11:48:34,784 def __init__(self): 2023-09-08T11:48:34,784 pass 2023-09-08T11:48:34,785 def __dealoc__(self): 2023-09-08T11:48:34,786 ee_exitCtx(self.cee_ctx) 2023-09-08T11:48:34,786 ^ 2023-09-08T11:48:34,787 ------------------------------------------------------------ 2023-09-08T11:48:34,788 pylognorm/bindings/liblognorm.pyx:56:8: undeclared name not builtin: ee_exitCtx 2023-09-08T11:48:34,790 Error compiling Cython file: 2023-09-08T11:48:34,790 ------------------------------------------------------------ 2023-09-08T11:48:34,790 ... 2023-09-08T11:48:34,791 def __init__(self): 2023-09-08T11:48:34,791 pass 2023-09-08T11:48:34,792 def __dealoc__(self): 2023-09-08T11:48:34,793 ee_exitCtx(self.cee_ctx) 2023-09-08T11:48:34,793 ln_exitCtx(self.normalizer_ctx) 2023-09-08T11:48:34,794 ^ 2023-09-08T11:48:34,794 ------------------------------------------------------------ 2023-09-08T11:48:34,795 pylognorm/bindings/liblognorm.pyx:57:8: undeclared name not builtin: ln_exitCtx 2023-09-08T11:48:34,796 Error compiling Cython file: 2023-09-08T11:48:34,796 ------------------------------------------------------------ 2023-09-08T11:48:34,797 ... 2023-09-08T11:48:34,797 def load_rules(self, object filename): 2023-09-08T11:48:34,798 cdef char* cstr_filename 2023-09-08T11:48:34,799 if PyByteArray_Check(filename): 2023-09-08T11:48:34,799 cstr_filename = PyByteArray_AsString(filename) 2023-09-08T11:48:34,799 ^ 2023-09-08T11:48:34,800 ------------------------------------------------------------ 2023-09-08T11:48:34,801 pylognorm/bindings/liblognorm.pyx:63:48: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:34,801 Error compiling Cython file: 2023-09-08T11:48:34,802 ------------------------------------------------------------ 2023-09-08T11:48:34,802 ... 2023-09-08T11:48:34,803 cdef char* cstr_filename 2023-09-08T11:48:34,804 if PyByteArray_Check(filename): 2023-09-08T11:48:34,804 cstr_filename = PyByteArray_AsString(filename) 2023-09-08T11:48:34,805 elif PyBytes_Check(filename): 2023-09-08T11:48:34,805 cstr_filename = PyBytes_AsString(filename) 2023-09-08T11:48:34,806 ^ 2023-09-08T11:48:34,807 ------------------------------------------------------------ 2023-09-08T11:48:34,808 pylognorm/bindings/liblognorm.pyx:65:44: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:34,809 Error compiling Cython file: 2023-09-08T11:48:34,809 ------------------------------------------------------------ 2023-09-08T11:48:34,810 ... 2023-09-08T11:48:34,811 cstr_filename = PyBytes_AsString(filename) 2023-09-08T11:48:34,811 else: 2023-09-08T11:48:34,812 raise Exception( 2023-09-08T11:48:34,812 'Unable to convert to cstr: {}'.format(type(filename))) 2023-09-08T11:48:34,813 ln_loadSamples(self.normalizer_ctx, cstr_filename) 2023-09-08T11:48:34,814 ^ 2023-09-08T11:48:34,815 ------------------------------------------------------------ 2023-09-08T11:48:34,816 pylognorm/bindings/liblognorm.pyx:70:8: undeclared name not builtin: ln_loadSamples 2023-09-08T11:48:34,817 Error compiling Cython file: 2023-09-08T11:48:34,817 ------------------------------------------------------------ 2023-09-08T11:48:34,818 ... 2023-09-08T11:48:34,818 def normalize(self, object data, int length): 2023-09-08T11:48:34,819 cdef char *normal = self._normalize(_object_to_cstr(data), length) 2023-09-08T11:48:34,819 if normal == NULL: 2023-09-08T11:48:34,820 return None 2023-09-08T11:48:34,820 else: 2023-09-08T11:48:34,821 pyobj = PyUnicode_FromString(normal) 2023-09-08T11:48:34,822 ^ 2023-09-08T11:48:34,822 ------------------------------------------------------------ 2023-09-08T11:48:34,823 pylognorm/bindings/liblognorm.pyx:77:20: undeclared name not builtin: PyUnicode_FromString 2023-09-08T11:48:34,824 Error compiling Cython file: 2023-09-08T11:48:34,825 ------------------------------------------------------------ 2023-09-08T11:48:34,826 ... 2023-09-08T11:48:34,826 pyobj = PyUnicode_FromString(normal) 2023-09-08T11:48:34,827 free(normal) 2023-09-08T11:48:34,827 return pyobj 2023-09-08T11:48:34,829 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:34,829 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:34,829 ^ 2023-09-08T11:48:34,830 ------------------------------------------------------------ 2023-09-08T11:48:34,831 pylognorm/bindings/liblognorm.pyx:82:32: undeclared name not builtin: es_newStrFromCStr 2023-09-08T11:48:34,832 Error compiling Cython file: 2023-09-08T11:48:34,832 ------------------------------------------------------------ 2023-09-08T11:48:34,833 ... 2023-09-08T11:48:34,833 cdef char * _normalize(self, char *data, int length): 2023-09-08T11:48:34,833 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2023-09-08T11:48:34,834 cdef ee_event *event = NULL 2023-09-08T11:48:34,834 cdef char *formatted = NULL 2023-09-08T11:48:34,835 ln_normalize(self.normalizer_ctx, in_str, &event) 2023-09-08T11:48:34,836 ^ 2023-09-08T11:48:34,836 ------------------------------------------------------------ 2023-09-08T11:48:34,837 pylognorm/bindings/liblognorm.pyx:86:8: undeclared name not builtin: ln_normalize 2023-09-08T11:48:34,838 Error compiling Cython file: 2023-09-08T11:48:34,838 ------------------------------------------------------------ 2023-09-08T11:48:34,839 ... 2023-09-08T11:48:34,840 ln_normalize(self.normalizer_ctx, in_str, &event) 2023-09-08T11:48:34,841 if event != NULL: 2023-09-08T11:48:34,842 formatted = self.format_JSON(event) 2023-09-08T11:48:34,842 ee_deleteEvent(event) 2023-09-08T11:48:34,843 ^ 2023-09-08T11:48:34,844 ------------------------------------------------------------ 2023-09-08T11:48:34,845 pylognorm/bindings/liblognorm.pyx:90:12: undeclared name not builtin: ee_deleteEvent 2023-09-08T11:48:34,846 Error compiling Cython file: 2023-09-08T11:48:34,846 ------------------------------------------------------------ 2023-09-08T11:48:34,847 ... 2023-09-08T11:48:34,847 ln_normalize(self.normalizer_ctx, in_str, &event) 2023-09-08T11:48:34,849 if event != NULL: 2023-09-08T11:48:34,849 formatted = self.format_JSON(event) 2023-09-08T11:48:34,850 ee_deleteEvent(event) 2023-09-08T11:48:34,850 es_deleteStr(in_str) 2023-09-08T11:48:34,851 ^ 2023-09-08T11:48:34,851 ------------------------------------------------------------ 2023-09-08T11:48:34,852 pylognorm/bindings/liblognorm.pyx:91:8: undeclared name not builtin: es_deleteStr 2023-09-08T11:48:34,854 Error compiling Cython file: 2023-09-08T11:48:34,854 ------------------------------------------------------------ 2023-09-08T11:48:34,855 ... 2023-09-08T11:48:34,856 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:34,856 cdef es_str_t *out_str = NULL 2023-09-08T11:48:34,857 cdef char *cstr = NULL 2023-09-08T11:48:34,858 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:34,859 ^ 2023-09-08T11:48:34,859 ------------------------------------------------------------ 2023-09-08T11:48:34,860 pylognorm/bindings/liblognorm.pyx:98:8: undeclared name not builtin: ee_fmtEventToJSON 2023-09-08T11:48:34,861 Error compiling Cython file: 2023-09-08T11:48:34,862 ------------------------------------------------------------ 2023-09-08T11:48:34,862 ... 2023-09-08T11:48:34,863 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:34,864 cdef es_str_t *out_str = NULL 2023-09-08T11:48:34,864 cdef char *cstr = NULL 2023-09-08T11:48:34,865 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:34,866 cstr = es_str2cstr(out_str, NULL) 2023-09-08T11:48:34,867 ^ 2023-09-08T11:48:34,867 ------------------------------------------------------------ 2023-09-08T11:48:34,868 pylognorm/bindings/liblognorm.pyx:99:15: undeclared name not builtin: es_str2cstr 2023-09-08T11:48:34,870 Error compiling Cython file: 2023-09-08T11:48:34,870 ------------------------------------------------------------ 2023-09-08T11:48:34,871 ... 2023-09-08T11:48:34,871 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:34,872 cdef es_str_t *out_str = NULL 2023-09-08T11:48:34,872 cdef char *cstr = NULL 2023-09-08T11:48:34,873 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:34,874 cstr = es_str2cstr(out_str, NULL) 2023-09-08T11:48:34,874 ^ 2023-09-08T11:48:34,874 ------------------------------------------------------------ 2023-09-08T11:48:34,875 pylognorm/bindings/liblognorm.pyx:99:36: Cannot convert 'void *' to Python object 2023-09-08T11:48:34,876 Error compiling Cython file: 2023-09-08T11:48:34,877 ------------------------------------------------------------ 2023-09-08T11:48:34,877 ... 2023-09-08T11:48:34,877 cdef char * format_JSON(self, ee_event *event): 2023-09-08T11:48:34,878 cdef es_str_t *out_str = NULL 2023-09-08T11:48:34,878 cdef char *cstr = NULL 2023-09-08T11:48:34,879 ee_fmtEventToJSON(event, &out_str) 2023-09-08T11:48:34,880 cstr = es_str2cstr(out_str, NULL) 2023-09-08T11:48:34,880 ^ 2023-09-08T11:48:34,881 ------------------------------------------------------------ 2023-09-08T11:48:34,882 pylognorm/bindings/liblognorm.pyx:99:26: Storing unsafe C derivative of temporary Python reference 2023-09-08T11:48:35,044 'build/bdist.linux-armv7l' does not exist -- can't clean it 2023-09-08T11:48:35,044 'build/scripts-3.11' does not exist -- can't clean it 2023-09-08T11:48:35,290 Failed to build pylognorm 2023-09-08T11:48:35,291 ERROR: Failed to build one or more wheels 2023-09-08T11:48:35,293 Exception information: 2023-09-08T11:48:35,293 Traceback (most recent call last): 2023-09-08T11:48:35,293 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper 2023-09-08T11:48:35,293 status = run_func(*args) 2023-09-08T11:48:35,293 ^^^^^^^^^^^^^^^ 2023-09-08T11:48:35,293 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/cli/req_command.py", line 248, in wrapper 2023-09-08T11:48:35,293 return func(self, options, args) 2023-09-08T11:48:35,293 ^^^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-08T11:48:35,293 File "/usr/local/lib/python3.11/dist-packages/pip/_internal/commands/wheel.py", line 181, in run 2023-09-08T11:48:35,293 raise CommandError("Failed to build one or more wheels") 2023-09-08T11:48:35,293 pip._internal.exceptions.CommandError: Failed to build one or more wheels 2023-09-08T11:48:35,296 Removed build tracker: '/tmp/pip-build-tracker-g5pka7ck'