2019-06-29T18:27:51 Created temporary directory: /tmp/pip-ephem-wheel-cache-lfw0dms0 2019-06-29T18:27:51 Created temporary directory: /tmp/pip-req-tracker-gy2jx2l5 2019-06-29T18:27:51 Created requirements tracker '/tmp/pip-req-tracker-gy2jx2l5' 2019-06-29T18:27:51 Created temporary directory: /tmp/pip-wheel-_p_o1yx1 2019-06-29T18:27:51 Collecting pylognorm==0.1.2 2019-06-29T18:27:51 1 location(s) to search for versions of pylognorm: 2019-06-29T18:27:51 * https://pypi.org/simple/pylognorm/ 2019-06-29T18:27:51 Getting page https://pypi.org/simple/pylognorm/ 2019-06-29T18:27:51 Analyzing links from page https://pypi.org/simple/pylognorm/ 2019-06-29T18:27:51 Found link https://files.pythonhosted.org/packages/63/12/22aafb479b1316591492361b7537003e4ed9cf8a936589fcecdbfded653e/pylognorm-0.1.1.tar.gz#sha256=6185b2ae5e157c503cc061090fedb9f776589657791e6c744d9cde605882a3a1 (from https://pypi.org/simple/pylognorm/), version: 0.1.1 2019-06-29T18:27:51 Found link https://files.pythonhosted.org/packages/15/0a/261b98a148f2ff790b170e6c1644cec5e5dda15962ce7035ed6710552c6c/pylognorm-0.1.2.tar.gz#sha256=0766de8b88b9da5d4aa61acc08d313c47ae28c9a7beee3c39cf508d3a70af4a8 (from https://pypi.org/simple/pylognorm/), version: 0.1.2 2019-06-29T18:27:51 Found link https://files.pythonhosted.org/packages/b6/63/88552cedf8f08de4bab937497fbf4dcaec944a6b48ffebe944e450eda944/pylognorm-0.1.3.tar.gz#sha256=ef0699f356235d1e7ffdb54f8322e9ba157f144b2c287cd45ed9ed9f716139b0 (from https://pypi.org/simple/pylognorm/), version: 0.1.3 2019-06-29T18:27:51 Found link https://files.pythonhosted.org/packages/8c/11/13f7396d0bf9171ed2fe6f7aa0f9616be72d22b8dc952375d2b583506a91/pylognorm-0.2.0.tar.gz#sha256=6291cb2cb9c1346f37bc2ed50e69d366f59143e523124f584eae48389ad931ed (from https://pypi.org/simple/pylognorm/), version: 0.2.0 2019-06-29T18:27:51 Found link https://files.pythonhosted.org/packages/8c/14/acf079eb998fd93161bc33d19ef4da5ee705eeffa071e36b9b8ea5ee6641/pylognorm-0.2.1.tar.gz#sha256=e1cab31a14618bdc7996e607f385a41aec66bab58df987bb899e748dd5ef6219 (from https://pypi.org/simple/pylognorm/), version: 0.2.1 2019-06-29T18:27:51 Found link https://files.pythonhosted.org/packages/a6/93/7e330ff2afc05a8b89cb5accc2fb70daf517e30e6d4f74b24ebec0c19495/pylognorm-0.2.2.tar.gz#sha256=f2c12e9572c696d33a5b16d5f096a877905591b6c84286f5bb0836934dff1fcb (from https://pypi.org/simple/pylognorm/), version: 0.2.2 2019-06-29T18:27:51 Found link https://files.pythonhosted.org/packages/3d/e7/ccd89cebcb74691efcc4acb40252a39b857adf36fb472049b8d3e663c62c/pylognorm-0.2.3.tar.gz#sha256=8b3fc7bcdc65f6e0e5797b7bedd1c0fc07c2780b342e8153deb356bce7f6da60 (from https://pypi.org/simple/pylognorm/), version: 0.2.3 2019-06-29T18:27:51 Using version 0.1.2 (newest of versions: 0.1.2) 2019-06-29T18:27:51 Created temporary directory: /tmp/pip-unpack-mfh28n9e 2019-06-29T18:27:51 Downloading https://files.pythonhosted.org/packages/15/0a/261b98a148f2ff790b170e6c1644cec5e5dda15962ce7035ed6710552c6c/pylognorm-0.1.2.tar.gz 2019-06-29T18:27:51 Downloading from URL https://files.pythonhosted.org/packages/15/0a/261b98a148f2ff790b170e6c1644cec5e5dda15962ce7035ed6710552c6c/pylognorm-0.1.2.tar.gz#sha256=0766de8b88b9da5d4aa61acc08d313c47ae28c9a7beee3c39cf508d3a70af4a8 (from https://pypi.org/simple/pylognorm/) 2019-06-29T18:27:51 Added pylognorm==0.1.2 from https://files.pythonhosted.org/packages/15/0a/261b98a148f2ff790b170e6c1644cec5e5dda15962ce7035ed6710552c6c/pylognorm-0.1.2.tar.gz#sha256=0766de8b88b9da5d4aa61acc08d313c47ae28c9a7beee3c39cf508d3a70af4a8 to build tracker '/tmp/pip-req-tracker-gy2jx2l5' 2019-06-29T18:27:51 Running setup.py (path:/tmp/pip-wheel-_p_o1yx1/pylognorm/setup.py) egg_info for package pylognorm 2019-06-29T18:27:51 Running command python setup.py egg_info 2019-06-29T18:27:54 /usr/lib/python3/dist-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/pip-wheel-_p_o1yx1/pylognorm/pylognorm/bindings/liblognorm.pyx 2019-06-29T18:27:54 tree = Parsing.p_module(s, pxd, full_module_name) 2019-06-29T18:27:54 Error compiling Cython file: 2019-06-29T18:27:54 ------------------------------------------------------------ 2019-06-29T18:27:54 ... 2019-06-29T18:27:54 from os import path 2019-06-29T18:27:54 from liblognorm cimport * 2019-06-29T18:27:54 ^ 2019-06-29T18:27:54 ------------------------------------------------------------ 2019-06-29T18:27:54 pylognorm/bindings/liblognorm.pyx:2:0: 'pylognorm/bindings/liblognorm.pxd' not found 2019-06-29T18:27:54 Error compiling Cython file: 2019-06-29T18:27:54 ------------------------------------------------------------ 2019-06-29T18:27:54 ... 2019-06-29T18:27:54 return self.cnormalizer.normalize(logline, len(logline)) 2019-06-29T18:27:54 cdef class CLogNormalizer(object): 2019-06-29T18:27:54 cdef ln_ctx normalizer_ctx 2019-06-29T18:27:54 ^ 2019-06-29T18:27:54 ------------------------------------------------------------ 2019-06-29T18:27:54 pylognorm/bindings/liblognorm.pyx:47:9: 'ln_ctx' is not a type identifier 2019-06-29T18:27:54 Error compiling Cython file: 2019-06-29T18:27:54 ------------------------------------------------------------ 2019-06-29T18:27:54 ... 2019-06-29T18:27:54 cdef class CLogNormalizer(object): 2019-06-29T18:27:54 cdef ln_ctx normalizer_ctx 2019-06-29T18:27:54 cdef ee_ctx cee_ctx 2019-06-29T18:27:54 ^ 2019-06-29T18:27:54 ------------------------------------------------------------ 2019-06-29T18:27:54 pylognorm/bindings/liblognorm.pyx:48:9: 'ee_ctx' is not a type identifier 2019-06-29T18:27:54 Error compiling Cython file: 2019-06-29T18:27:54 ------------------------------------------------------------ 2019-06-29T18:27:54 ... 2019-06-29T18:27:54 formatted = self.format_JSON(event) 2019-06-29T18:27:54 ee_deleteEvent(event) 2019-06-29T18:27:54 es_deleteStr(in_str) 2019-06-29T18:27:54 return formatted 2019-06-29T18:27:54 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:54 ^ 2019-06-29T18:27:54 ------------------------------------------------------------ 2019-06-29T18:27:54 pylognorm/bindings/liblognorm.pyx:90:34: 'ee_event' is not a type identifier 2019-06-29T18:27:54 Error compiling Cython file: 2019-06-29T18:27:54 ------------------------------------------------------------ 2019-06-29T18:27:54 ... 2019-06-29T18:27:54 pyobj = PyUnicode_FromString(normal) 2019-06-29T18:27:54 free(normal) 2019-06-29T18:27:54 return pyobj 2019-06-29T18:27:54 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:27:54 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:27:54 ^ 2019-06-29T18:27:54 ------------------------------------------------------------ 2019-06-29T18:27:54 pylognorm/bindings/liblognorm.pyx:78:13: 'es_str_t' is not a type identifier 2019-06-29T18:27:54 Error compiling Cython file: 2019-06-29T18:27:54 ------------------------------------------------------------ 2019-06-29T18:27:54 ... 2019-06-29T18:27:54 free(normal) 2019-06-29T18:27:54 return pyobj 2019-06-29T18:27:54 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:27:54 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:27:54 cdef ee_event *event = NULL 2019-06-29T18:27:54 ^ 2019-06-29T18:27:54 ------------------------------------------------------------ 2019-06-29T18:27:54 pylognorm/bindings/liblognorm.pyx:79:13: 'ee_event' is not a type identifier 2019-06-29T18:27:54 Error compiling Cython file: 2019-06-29T18:27:54 ------------------------------------------------------------ 2019-06-29T18:27:54 ... 2019-06-29T18:27:54 ee_deleteEvent(event) 2019-06-29T18:27:54 es_deleteStr(in_str) 2019-06-29T18:27:54 return formatted 2019-06-29T18:27:54 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:54 cdef es_str_t *out_str = NULL 2019-06-29T18:27:54 ^ 2019-06-29T18:27:54 ------------------------------------------------------------ 2019-06-29T18:27:54 pylognorm/bindings/liblognorm.pyx:91:13: 'es_str_t' is not a type identifier 2019-06-29T18:27:54 Error compiling Cython file: 2019-06-29T18:27:54 ------------------------------------------------------------ 2019-06-29T18:27:54 ... 2019-06-29T18:27:54 from libc.stdlib cimport malloc, free 2019-06-29T18:27:54 from libc.string cimport strlen 2019-06-29T18:27:55 def lib_version(): 2019-06-29T18:27:55 cdef char* version = ln_version() 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:8:25: undeclared name not builtin: ln_version 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 from libc.stdlib cimport malloc, free 2019-06-29T18:27:55 from libc.string cimport strlen 2019-06-29T18:27:55 def lib_version(): 2019-06-29T18:27:55 cdef char* version = ln_version() 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:8:9: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 from libc.string cimport strlen 2019-06-29T18:27:55 def lib_version(): 2019-06-29T18:27:55 cdef char* version = ln_version() 2019-06-29T18:27:55 return PyString_FromStringAndSize(version, strlen(version)) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:9:11: undeclared name not builtin: PyString_FromStringAndSize 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 return PyString_FromStringAndSize(version, strlen(version)) 2019-06-29T18:27:55 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:55 cdef char *cstr_filename 2019-06-29T18:27:55 if PyByteArray_Check(obj): 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:14:7: undeclared name not builtin: PyByteArray_Check 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:55 cdef char *cstr_filename 2019-06-29T18:27:55 if PyByteArray_Check(obj): 2019-06-29T18:27:55 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:15:24: undeclared name not builtin: PyByteArray_AsString 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:55 cdef char *cstr_filename 2019-06-29T18:27:55 if PyByteArray_Check(obj): 2019-06-29T18:27:55 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:15:44: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:55 cdef char *cstr_filename 2019-06-29T18:27:55 if PyByteArray_Check(obj): 2019-06-29T18:27:55 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:27:55 elif PyBytes_Check(obj): 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:16:9: undeclared name not builtin: PyBytes_Check 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:55 cdef char *cstr_filename 2019-06-29T18:27:55 if PyByteArray_Check(obj): 2019-06-29T18:27:55 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:27:55 elif PyBytes_Check(obj): 2019-06-29T18:27:55 cstr_filename = PyBytes_AsString(obj) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:17:24: undeclared name not builtin: PyBytes_AsString 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:55 cdef char *cstr_filename 2019-06-29T18:27:55 if PyByteArray_Check(obj): 2019-06-29T18:27:55 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:27:55 elif PyBytes_Check(obj): 2019-06-29T18:27:55 cstr_filename = PyBytes_AsString(obj) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:17:40: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 cdef ln_ctx normalizer_ctx 2019-06-29T18:27:55 cdef ee_ctx cee_ctx 2019-06-29T18:27:55 def __cinit__(self): 2019-06-29T18:27:55 self.normalizer_ctx = ln_initCtx() 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:51:30: undeclared name not builtin: ln_initCtx 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 cdef ln_ctx normalizer_ctx 2019-06-29T18:27:55 cdef ee_ctx cee_ctx 2019-06-29T18:27:55 def __cinit__(self): 2019-06-29T18:27:55 self.normalizer_ctx = ln_initCtx() 2019-06-29T18:27:55 self.cee_ctx = ee_initCtx() 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:52:23: undeclared name not builtin: ee_initCtx 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 cdef ee_ctx cee_ctx 2019-06-29T18:27:55 def __cinit__(self): 2019-06-29T18:27:55 self.normalizer_ctx = ln_initCtx() 2019-06-29T18:27:55 self.cee_ctx = ee_initCtx() 2019-06-29T18:27:55 ln_setEECtx(self.normalizer_ctx, self.cee_ctx); 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:53:8: undeclared name not builtin: ln_setEECtx 2019-06-29T18:27:55 running egg_info 2019-06-29T18:27:55 creating pip-egg-info/pylognorm.egg-info 2019-06-29T18:27:55 writing pip-egg-info/pylognorm.egg-info/PKG-INFO 2019-06-29T18:27:55 writing dependency_links to pip-egg-info/pylognorm.egg-info/dependency_links.txt 2019-06-29T18:27:55 writing top-level names to pip-egg-info/pylognorm.egg-info/top_level.txt 2019-06-29T18:27:55 writing manifest file 'pip-egg-info/pylognorm.egg-info/SOURCES.txt' 2019-06-29T18:27:55 reading manifest file 'pip-egg-info/pylognorm.egg-info/SOURCES.txt' 2019-06-29T18:27:55 reading manifest template 'MANIFEST.in' 2019-06-29T18:27:55 writing manifest file 'pip-egg-info/pylognorm.egg-info/SOURCES.txt' 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 def __init__(self): 2019-06-29T18:27:55 pass 2019-06-29T18:27:55 def __dealoc__(self): 2019-06-29T18:27:55 ee_exitCtx(self.cee_ctx) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:59:8: undeclared name not builtin: ee_exitCtx 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 def __init__(self): 2019-06-29T18:27:55 pass 2019-06-29T18:27:55 def __dealoc__(self): 2019-06-29T18:27:55 ee_exitCtx(self.cee_ctx) 2019-06-29T18:27:55 ln_exitCtx(self.normalizer_ctx) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:60:8: undeclared name not builtin: ln_exitCtx 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 def __dealoc__(self): 2019-06-29T18:27:55 ee_exitCtx(self.cee_ctx) 2019-06-29T18:27:55 ln_exitCtx(self.normalizer_ctx) 2019-06-29T18:27:55 def load_rule(self, object rule): 2019-06-29T18:27:55 ln_loadSample(self.normalizer_ctx, _object_to_cstr(rule)) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:63:8: undeclared name not builtin: ln_loadSample 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 def load_rule(self, object rule): 2019-06-29T18:27:55 ln_loadSample(self.normalizer_ctx, _object_to_cstr(rule)) 2019-06-29T18:27:55 def load_rules(self, object filename): 2019-06-29T18:27:55 ln_loadSamples(self.normalizer_ctx, _object_to_cstr(filename)) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:66:8: undeclared name not builtin: ln_loadSamples 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 def normalize(self, object data, int length): 2019-06-29T18:27:55 cdef char *normal = self._normalize(_object_to_cstr(data), length) 2019-06-29T18:27:55 if normal == NULL: 2019-06-29T18:27:55 return None 2019-06-29T18:27:55 else: 2019-06-29T18:27:55 pyobj = PyUnicode_FromString(normal) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:73:20: undeclared name not builtin: PyUnicode_FromString 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 pyobj = PyUnicode_FromString(normal) 2019-06-29T18:27:55 free(normal) 2019-06-29T18:27:55 return pyobj 2019-06-29T18:27:55 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:27:55 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:78:32: undeclared name not builtin: es_newStrFromCStr 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:27:55 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:27:55 cdef ee_event *event = NULL 2019-06-29T18:27:55 cdef char *formatted = NULL 2019-06-29T18:27:55 ln_normalize(self.normalizer_ctx, in_str, &event) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:82:8: undeclared name not builtin: ln_normalize 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 ln_normalize(self.normalizer_ctx, in_str, &event) 2019-06-29T18:27:55 if event != NULL: 2019-06-29T18:27:55 formatted = self.format_JSON(event) 2019-06-29T18:27:55 ee_deleteEvent(event) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:86:12: undeclared name not builtin: ee_deleteEvent 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 ln_normalize(self.normalizer_ctx, in_str, &event) 2019-06-29T18:27:55 if event != NULL: 2019-06-29T18:27:55 formatted = self.format_JSON(event) 2019-06-29T18:27:55 ee_deleteEvent(event) 2019-06-29T18:27:55 es_deleteStr(in_str) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:87:8: undeclared name not builtin: es_deleteStr 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:55 cdef es_str_t *out_str = NULL 2019-06-29T18:27:55 cdef char *cstr = NULL 2019-06-29T18:27:55 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:94:8: undeclared name not builtin: ee_fmtEventToJSON 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:55 cdef es_str_t *out_str = NULL 2019-06-29T18:27:55 cdef char *cstr = NULL 2019-06-29T18:27:55 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:27:55 cstr = es_str2cstr(out_str, NULL) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:95:15: undeclared name not builtin: es_str2cstr 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:55 cdef es_str_t *out_str = NULL 2019-06-29T18:27:55 cdef char *cstr = NULL 2019-06-29T18:27:55 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:27:55 cstr = es_str2cstr(out_str, NULL) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:95:36: Cannot convert 'void *' to Python object 2019-06-29T18:27:55 Error compiling Cython file: 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 ... 2019-06-29T18:27:55 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:55 cdef es_str_t *out_str = NULL 2019-06-29T18:27:55 cdef char *cstr = NULL 2019-06-29T18:27:55 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:27:55 cstr = es_str2cstr(out_str, NULL) 2019-06-29T18:27:55 ^ 2019-06-29T18:27:55 ------------------------------------------------------------ 2019-06-29T18:27:55 pylognorm/bindings/liblognorm.pyx:95:26: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:27:55 Source in /tmp/pip-wheel-_p_o1yx1/pylognorm has version 0.1.2, which satisfies requirement pylognorm==0.1.2 from https://files.pythonhosted.org/packages/15/0a/261b98a148f2ff790b170e6c1644cec5e5dda15962ce7035ed6710552c6c/pylognorm-0.1.2.tar.gz#sha256=0766de8b88b9da5d4aa61acc08d313c47ae28c9a7beee3c39cf508d3a70af4a8 2019-06-29T18:27:55 Removed pylognorm==0.1.2 from https://files.pythonhosted.org/packages/15/0a/261b98a148f2ff790b170e6c1644cec5e5dda15962ce7035ed6710552c6c/pylognorm-0.1.2.tar.gz#sha256=0766de8b88b9da5d4aa61acc08d313c47ae28c9a7beee3c39cf508d3a70af4a8 from build tracker '/tmp/pip-req-tracker-gy2jx2l5' 2019-06-29T18:27:55 Building wheels for collected packages: pylognorm 2019-06-29T18:27:55 Created temporary directory: /tmp/pip-wheel-wc_p6sdr 2019-06-29T18:27:55 Building wheel for pylognorm (setup.py): started 2019-06-29T18:27:55 Destination directory: /tmp/pip-wheel-wc_p6sdr 2019-06-29T18:27:55 Running command /usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-wheel-_p_o1yx1/pylognorm/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-wc_p6sdr 2019-06-29T18:27:58 /usr/lib/python3/dist-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/pip-wheel-_p_o1yx1/pylognorm/pylognorm/bindings/liblognorm.pyx 2019-06-29T18:27:58 tree = Parsing.p_module(s, pxd, full_module_name) 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 from os import path 2019-06-29T18:27:58 from liblognorm cimport * 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:2:0: 'pylognorm/bindings/liblognorm.pxd' not found 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 return self.cnormalizer.normalize(logline, len(logline)) 2019-06-29T18:27:58 cdef class CLogNormalizer(object): 2019-06-29T18:27:58 cdef ln_ctx normalizer_ctx 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:47:9: 'ln_ctx' is not a type identifier 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 cdef class CLogNormalizer(object): 2019-06-29T18:27:58 cdef ln_ctx normalizer_ctx 2019-06-29T18:27:58 cdef ee_ctx cee_ctx 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:48:9: 'ee_ctx' is not a type identifier 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 formatted = self.format_JSON(event) 2019-06-29T18:27:58 ee_deleteEvent(event) 2019-06-29T18:27:58 es_deleteStr(in_str) 2019-06-29T18:27:58 return formatted 2019-06-29T18:27:58 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:90:34: 'ee_event' is not a type identifier 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 pyobj = PyUnicode_FromString(normal) 2019-06-29T18:27:58 free(normal) 2019-06-29T18:27:58 return pyobj 2019-06-29T18:27:58 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:27:58 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:78:13: 'es_str_t' is not a type identifier 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 free(normal) 2019-06-29T18:27:58 return pyobj 2019-06-29T18:27:58 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:27:58 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:27:58 cdef ee_event *event = NULL 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:79:13: 'ee_event' is not a type identifier 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 ee_deleteEvent(event) 2019-06-29T18:27:58 es_deleteStr(in_str) 2019-06-29T18:27:58 return formatted 2019-06-29T18:27:58 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:58 cdef es_str_t *out_str = NULL 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:91:13: 'es_str_t' is not a type identifier 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 from libc.stdlib cimport malloc, free 2019-06-29T18:27:58 from libc.string cimport strlen 2019-06-29T18:27:58 def lib_version(): 2019-06-29T18:27:58 cdef char* version = ln_version() 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:8:25: undeclared name not builtin: ln_version 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 from libc.stdlib cimport malloc, free 2019-06-29T18:27:58 from libc.string cimport strlen 2019-06-29T18:27:58 def lib_version(): 2019-06-29T18:27:58 cdef char* version = ln_version() 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:8:9: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 from libc.string cimport strlen 2019-06-29T18:27:58 def lib_version(): 2019-06-29T18:27:58 cdef char* version = ln_version() 2019-06-29T18:27:58 return PyString_FromStringAndSize(version, strlen(version)) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:9:11: undeclared name not builtin: PyString_FromStringAndSize 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 return PyString_FromStringAndSize(version, strlen(version)) 2019-06-29T18:27:58 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:58 cdef char *cstr_filename 2019-06-29T18:27:58 if PyByteArray_Check(obj): 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:14:7: undeclared name not builtin: PyByteArray_Check 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:58 cdef char *cstr_filename 2019-06-29T18:27:58 if PyByteArray_Check(obj): 2019-06-29T18:27:58 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:15:24: undeclared name not builtin: PyByteArray_AsString 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:58 cdef char *cstr_filename 2019-06-29T18:27:58 if PyByteArray_Check(obj): 2019-06-29T18:27:58 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:15:44: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:58 cdef char *cstr_filename 2019-06-29T18:27:58 if PyByteArray_Check(obj): 2019-06-29T18:27:58 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:27:58 elif PyBytes_Check(obj): 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:16:9: undeclared name not builtin: PyBytes_Check 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:58 cdef char *cstr_filename 2019-06-29T18:27:58 if PyByteArray_Check(obj): 2019-06-29T18:27:58 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:27:58 elif PyBytes_Check(obj): 2019-06-29T18:27:58 cstr_filename = PyBytes_AsString(obj) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:17:24: undeclared name not builtin: PyBytes_AsString 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:58 cdef char *cstr_filename 2019-06-29T18:27:58 if PyByteArray_Check(obj): 2019-06-29T18:27:58 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:27:58 elif PyBytes_Check(obj): 2019-06-29T18:27:58 cstr_filename = PyBytes_AsString(obj) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:17:40: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 cdef ln_ctx normalizer_ctx 2019-06-29T18:27:58 cdef ee_ctx cee_ctx 2019-06-29T18:27:58 def __cinit__(self): 2019-06-29T18:27:58 self.normalizer_ctx = ln_initCtx() 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:51:30: undeclared name not builtin: ln_initCtx 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 cdef ln_ctx normalizer_ctx 2019-06-29T18:27:58 cdef ee_ctx cee_ctx 2019-06-29T18:27:58 def __cinit__(self): 2019-06-29T18:27:58 self.normalizer_ctx = ln_initCtx() 2019-06-29T18:27:58 self.cee_ctx = ee_initCtx() 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:52:23: undeclared name not builtin: ee_initCtx 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 cdef ee_ctx cee_ctx 2019-06-29T18:27:58 def __cinit__(self): 2019-06-29T18:27:58 self.normalizer_ctx = ln_initCtx() 2019-06-29T18:27:58 self.cee_ctx = ee_initCtx() 2019-06-29T18:27:58 ln_setEECtx(self.normalizer_ctx, self.cee_ctx); 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:53:8: undeclared name not builtin: ln_setEECtx 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 def __init__(self): 2019-06-29T18:27:58 pass 2019-06-29T18:27:58 def __dealoc__(self): 2019-06-29T18:27:58 ee_exitCtx(self.cee_ctx) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:59:8: undeclared name not builtin: ee_exitCtx 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 def __init__(self): 2019-06-29T18:27:58 pass 2019-06-29T18:27:58 def __dealoc__(self): 2019-06-29T18:27:58 ee_exitCtx(self.cee_ctx) 2019-06-29T18:27:58 ln_exitCtx(self.normalizer_ctx) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:60:8: undeclared name not builtin: ln_exitCtx 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 def __dealoc__(self): 2019-06-29T18:27:58 ee_exitCtx(self.cee_ctx) 2019-06-29T18:27:58 ln_exitCtx(self.normalizer_ctx) 2019-06-29T18:27:58 def load_rule(self, object rule): 2019-06-29T18:27:58 ln_loadSample(self.normalizer_ctx, _object_to_cstr(rule)) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:63:8: undeclared name not builtin: ln_loadSample 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 def load_rule(self, object rule): 2019-06-29T18:27:58 ln_loadSample(self.normalizer_ctx, _object_to_cstr(rule)) 2019-06-29T18:27:58 def load_rules(self, object filename): 2019-06-29T18:27:58 ln_loadSamples(self.normalizer_ctx, _object_to_cstr(filename)) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:66:8: undeclared name not builtin: ln_loadSamples 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 def normalize(self, object data, int length): 2019-06-29T18:27:58 cdef char *normal = self._normalize(_object_to_cstr(data), length) 2019-06-29T18:27:58 if normal == NULL: 2019-06-29T18:27:58 return None 2019-06-29T18:27:58 else: 2019-06-29T18:27:58 pyobj = PyUnicode_FromString(normal) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:73:20: undeclared name not builtin: PyUnicode_FromString 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 pyobj = PyUnicode_FromString(normal) 2019-06-29T18:27:58 free(normal) 2019-06-29T18:27:58 return pyobj 2019-06-29T18:27:58 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:27:58 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:78:32: undeclared name not builtin: es_newStrFromCStr 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:27:58 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:27:58 cdef ee_event *event = NULL 2019-06-29T18:27:58 cdef char *formatted = NULL 2019-06-29T18:27:58 ln_normalize(self.normalizer_ctx, in_str, &event) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:82:8: undeclared name not builtin: ln_normalize 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 ln_normalize(self.normalizer_ctx, in_str, &event) 2019-06-29T18:27:58 if event != NULL: 2019-06-29T18:27:58 formatted = self.format_JSON(event) 2019-06-29T18:27:58 ee_deleteEvent(event) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:86:12: undeclared name not builtin: ee_deleteEvent 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 ln_normalize(self.normalizer_ctx, in_str, &event) 2019-06-29T18:27:58 if event != NULL: 2019-06-29T18:27:58 formatted = self.format_JSON(event) 2019-06-29T18:27:58 ee_deleteEvent(event) 2019-06-29T18:27:58 es_deleteStr(in_str) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:87:8: undeclared name not builtin: es_deleteStr 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:58 cdef es_str_t *out_str = NULL 2019-06-29T18:27:58 cdef char *cstr = NULL 2019-06-29T18:27:58 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:94:8: undeclared name not builtin: ee_fmtEventToJSON 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:58 cdef es_str_t *out_str = NULL 2019-06-29T18:27:58 cdef char *cstr = NULL 2019-06-29T18:27:58 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:27:58 cstr = es_str2cstr(out_str, NULL) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:95:15: undeclared name not builtin: es_str2cstr 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:58 cdef es_str_t *out_str = NULL 2019-06-29T18:27:58 cdef char *cstr = NULL 2019-06-29T18:27:58 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:27:58 cstr = es_str2cstr(out_str, NULL) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:95:36: Cannot convert 'void *' to Python object 2019-06-29T18:27:58 Error compiling Cython file: 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 ... 2019-06-29T18:27:58 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:58 cdef es_str_t *out_str = NULL 2019-06-29T18:27:58 cdef char *cstr = NULL 2019-06-29T18:27:58 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:27:58 cstr = es_str2cstr(out_str, NULL) 2019-06-29T18:27:58 ^ 2019-06-29T18:27:58 ------------------------------------------------------------ 2019-06-29T18:27:58 pylognorm/bindings/liblognorm.pyx:95:26: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:27:58 running bdist_wheel 2019-06-29T18:27:58 running build 2019-06-29T18:27:58 running build_py 2019-06-29T18:27:59 creating build 2019-06-29T18:27:59 creating build/lib.linux-armv7l-3.7 2019-06-29T18:27:59 creating build/lib.linux-armv7l-3.7/pylognorm 2019-06-29T18:27:59 copying pylognorm/__init__.py -> build/lib.linux-armv7l-3.7/pylognorm 2019-06-29T18:27:59 creating build/lib.linux-armv7l-3.7/pylognorm/bindings 2019-06-29T18:27:59 copying pylognorm/bindings/__init__.py -> build/lib.linux-armv7l-3.7/pylognorm/bindings 2019-06-29T18:27:59 creating build/lib.linux-armv7l-3.7/pylognorm/tests 2019-06-29T18:27:59 copying pylognorm/tests/bindings_test.py -> build/lib.linux-armv7l-3.7/pylognorm/tests 2019-06-29T18:27:59 copying pylognorm/tests/__init__.py -> build/lib.linux-armv7l-3.7/pylognorm/tests 2019-06-29T18:27:59 running egg_info 2019-06-29T18:27:59 writing pylognorm.egg-info/PKG-INFO 2019-06-29T18:27:59 writing dependency_links to pylognorm.egg-info/dependency_links.txt 2019-06-29T18:27:59 writing top-level names to pylognorm.egg-info/top_level.txt 2019-06-29T18:27:59 reading manifest file 'pylognorm.egg-info/SOURCES.txt' 2019-06-29T18:27:59 reading manifest template 'MANIFEST.in' 2019-06-29T18:27:59 writing manifest file 'pylognorm.egg-info/SOURCES.txt' 2019-06-29T18:27:59 copying pylognorm/bindings/liblognorm.c -> build/lib.linux-armv7l-3.7/pylognorm/bindings 2019-06-29T18:27:59 copying pylognorm/bindings/liblognorm.pyx -> build/lib.linux-armv7l-3.7/pylognorm/bindings 2019-06-29T18:27:59 running build_ext 2019-06-29T18:27:59 cythoning pylognorm/bindings/liblognorm.pyx to pylognorm/bindings/liblognorm.c 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 from os import path 2019-06-29T18:27:59 from liblognorm cimport * 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:2:0: 'pylognorm/bindings/liblognorm.pxd' not found 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 return self.cnormalizer.normalize(logline, len(logline)) 2019-06-29T18:27:59 cdef class CLogNormalizer(object): 2019-06-29T18:27:59 cdef ln_ctx normalizer_ctx 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:47:9: 'ln_ctx' is not a type identifier 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 cdef class CLogNormalizer(object): 2019-06-29T18:27:59 cdef ln_ctx normalizer_ctx 2019-06-29T18:27:59 cdef ee_ctx cee_ctx 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:48:9: 'ee_ctx' is not a type identifier 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 formatted = self.format_JSON(event) 2019-06-29T18:27:59 ee_deleteEvent(event) 2019-06-29T18:27:59 es_deleteStr(in_str) 2019-06-29T18:27:59 return formatted 2019-06-29T18:27:59 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:90:34: 'ee_event' is not a type identifier 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 pyobj = PyUnicode_FromString(normal) 2019-06-29T18:27:59 free(normal) 2019-06-29T18:27:59 return pyobj 2019-06-29T18:27:59 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:27:59 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:78:13: 'es_str_t' is not a type identifier 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 free(normal) 2019-06-29T18:27:59 return pyobj 2019-06-29T18:27:59 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:27:59 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:27:59 cdef ee_event *event = NULL 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:79:13: 'ee_event' is not a type identifier 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 ee_deleteEvent(event) 2019-06-29T18:27:59 es_deleteStr(in_str) 2019-06-29T18:27:59 return formatted 2019-06-29T18:27:59 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:59 cdef es_str_t *out_str = NULL 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:91:13: 'es_str_t' is not a type identifier 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 from libc.stdlib cimport malloc, free 2019-06-29T18:27:59 from libc.string cimport strlen 2019-06-29T18:27:59 def lib_version(): 2019-06-29T18:27:59 cdef char* version = ln_version() 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:8:25: undeclared name not builtin: ln_version 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 from libc.stdlib cimport malloc, free 2019-06-29T18:27:59 from libc.string cimport strlen 2019-06-29T18:27:59 def lib_version(): 2019-06-29T18:27:59 cdef char* version = ln_version() 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:8:9: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 from libc.string cimport strlen 2019-06-29T18:27:59 def lib_version(): 2019-06-29T18:27:59 cdef char* version = ln_version() 2019-06-29T18:27:59 return PyString_FromStringAndSize(version, strlen(version)) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:9:11: undeclared name not builtin: PyString_FromStringAndSize 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 return PyString_FromStringAndSize(version, strlen(version)) 2019-06-29T18:27:59 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:59 cdef char *cstr_filename 2019-06-29T18:27:59 if PyByteArray_Check(obj): 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:14:7: undeclared name not builtin: PyByteArray_Check 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:59 cdef char *cstr_filename 2019-06-29T18:27:59 if PyByteArray_Check(obj): 2019-06-29T18:27:59 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:15:24: undeclared name not builtin: PyByteArray_AsString 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:59 cdef char *cstr_filename 2019-06-29T18:27:59 if PyByteArray_Check(obj): 2019-06-29T18:27:59 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:15:44: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:59 cdef char *cstr_filename 2019-06-29T18:27:59 if PyByteArray_Check(obj): 2019-06-29T18:27:59 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:27:59 elif PyBytes_Check(obj): 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:16:9: undeclared name not builtin: PyBytes_Check 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:59 cdef char *cstr_filename 2019-06-29T18:27:59 if PyByteArray_Check(obj): 2019-06-29T18:27:59 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:27:59 elif PyBytes_Check(obj): 2019-06-29T18:27:59 cstr_filename = PyBytes_AsString(obj) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:17:24: undeclared name not builtin: PyBytes_AsString 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 cdef char * _object_to_cstr(object obj): 2019-06-29T18:27:59 cdef char *cstr_filename 2019-06-29T18:27:59 if PyByteArray_Check(obj): 2019-06-29T18:27:59 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:27:59 elif PyBytes_Check(obj): 2019-06-29T18:27:59 cstr_filename = PyBytes_AsString(obj) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:17:40: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 cdef ln_ctx normalizer_ctx 2019-06-29T18:27:59 cdef ee_ctx cee_ctx 2019-06-29T18:27:59 def __cinit__(self): 2019-06-29T18:27:59 self.normalizer_ctx = ln_initCtx() 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:51:30: undeclared name not builtin: ln_initCtx 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 cdef ln_ctx normalizer_ctx 2019-06-29T18:27:59 cdef ee_ctx cee_ctx 2019-06-29T18:27:59 def __cinit__(self): 2019-06-29T18:27:59 self.normalizer_ctx = ln_initCtx() 2019-06-29T18:27:59 self.cee_ctx = ee_initCtx() 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:52:23: undeclared name not builtin: ee_initCtx 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 cdef ee_ctx cee_ctx 2019-06-29T18:27:59 def __cinit__(self): 2019-06-29T18:27:59 self.normalizer_ctx = ln_initCtx() 2019-06-29T18:27:59 self.cee_ctx = ee_initCtx() 2019-06-29T18:27:59 ln_setEECtx(self.normalizer_ctx, self.cee_ctx); 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:53:8: undeclared name not builtin: ln_setEECtx 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 def __init__(self): 2019-06-29T18:27:59 pass 2019-06-29T18:27:59 def __dealoc__(self): 2019-06-29T18:27:59 ee_exitCtx(self.cee_ctx) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:59:8: undeclared name not builtin: ee_exitCtx 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 def __init__(self): 2019-06-29T18:27:59 pass 2019-06-29T18:27:59 def __dealoc__(self): 2019-06-29T18:27:59 ee_exitCtx(self.cee_ctx) 2019-06-29T18:27:59 ln_exitCtx(self.normalizer_ctx) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:60:8: undeclared name not builtin: ln_exitCtx 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 def __dealoc__(self): 2019-06-29T18:27:59 ee_exitCtx(self.cee_ctx) 2019-06-29T18:27:59 ln_exitCtx(self.normalizer_ctx) 2019-06-29T18:27:59 def load_rule(self, object rule): 2019-06-29T18:27:59 ln_loadSample(self.normalizer_ctx, _object_to_cstr(rule)) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:63:8: undeclared name not builtin: ln_loadSample 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 def load_rule(self, object rule): 2019-06-29T18:27:59 ln_loadSample(self.normalizer_ctx, _object_to_cstr(rule)) 2019-06-29T18:27:59 def load_rules(self, object filename): 2019-06-29T18:27:59 ln_loadSamples(self.normalizer_ctx, _object_to_cstr(filename)) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:66:8: undeclared name not builtin: ln_loadSamples 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 def normalize(self, object data, int length): 2019-06-29T18:27:59 cdef char *normal = self._normalize(_object_to_cstr(data), length) 2019-06-29T18:27:59 if normal == NULL: 2019-06-29T18:27:59 return None 2019-06-29T18:27:59 else: 2019-06-29T18:27:59 pyobj = PyUnicode_FromString(normal) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:73:20: undeclared name not builtin: PyUnicode_FromString 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 pyobj = PyUnicode_FromString(normal) 2019-06-29T18:27:59 free(normal) 2019-06-29T18:27:59 return pyobj 2019-06-29T18:27:59 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:27:59 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:78:32: undeclared name not builtin: es_newStrFromCStr 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:27:59 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:27:59 cdef ee_event *event = NULL 2019-06-29T18:27:59 cdef char *formatted = NULL 2019-06-29T18:27:59 ln_normalize(self.normalizer_ctx, in_str, &event) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:82:8: undeclared name not builtin: ln_normalize 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 ln_normalize(self.normalizer_ctx, in_str, &event) 2019-06-29T18:27:59 if event != NULL: 2019-06-29T18:27:59 formatted = self.format_JSON(event) 2019-06-29T18:27:59 ee_deleteEvent(event) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:86:12: undeclared name not builtin: ee_deleteEvent 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 ln_normalize(self.normalizer_ctx, in_str, &event) 2019-06-29T18:27:59 if event != NULL: 2019-06-29T18:27:59 formatted = self.format_JSON(event) 2019-06-29T18:27:59 ee_deleteEvent(event) 2019-06-29T18:27:59 es_deleteStr(in_str) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:87:8: undeclared name not builtin: es_deleteStr 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:59 cdef es_str_t *out_str = NULL 2019-06-29T18:27:59 cdef char *cstr = NULL 2019-06-29T18:27:59 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:94:8: undeclared name not builtin: ee_fmtEventToJSON 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:59 cdef es_str_t *out_str = NULL 2019-06-29T18:27:59 cdef char *cstr = NULL 2019-06-29T18:27:59 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:27:59 cstr = es_str2cstr(out_str, NULL) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:95:15: undeclared name not builtin: es_str2cstr 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:59 cdef es_str_t *out_str = NULL 2019-06-29T18:27:59 cdef char *cstr = NULL 2019-06-29T18:27:59 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:27:59 cstr = es_str2cstr(out_str, NULL) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:95:36: Cannot convert 'void *' to Python object 2019-06-29T18:27:59 Error compiling Cython file: 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 ... 2019-06-29T18:27:59 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:27:59 cdef es_str_t *out_str = NULL 2019-06-29T18:27:59 cdef char *cstr = NULL 2019-06-29T18:27:59 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:27:59 cstr = es_str2cstr(out_str, NULL) 2019-06-29T18:27:59 ^ 2019-06-29T18:27:59 ------------------------------------------------------------ 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.pyx:95:26: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:27:59 building 'pylognorm.bindings.liblognorm' extension 2019-06-29T18:27:59 creating build/temp.linux-armv7l-3.7 2019-06-29T18:27:59 creating build/temp.linux-armv7l-3.7/pylognorm 2019-06-29T18:27:59 creating build/temp.linux-armv7l-3.7/pylognorm/bindings 2019-06-29T18:27:59 arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c pylognorm/bindings/liblognorm.c -o build/temp.linux-armv7l-3.7/pylognorm/bindings/liblognorm.o 2019-06-29T18:27:59 pylognorm/bindings/liblognorm.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation. 2019-06-29T18:27:59 #error Do not use this file, it is the result of a failed Cython compilation. 2019-06-29T18:27:59 ^~~~~ 2019-06-29T18:27:59 error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 2019-06-29T18:27:59 Building wheel for pylognorm (setup.py): finished with status 'error' 2019-06-29T18:27:59 ERROR: Failed building wheel for pylognorm 2019-06-29T18:27:59 Running setup.py clean for pylognorm 2019-06-29T18:27:59 Running command /usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-wheel-_p_o1yx1/pylognorm/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all 2019-06-29T18:28:02 /usr/lib/python3/dist-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/pip-wheel-_p_o1yx1/pylognorm/pylognorm/bindings/liblognorm.pyx 2019-06-29T18:28:02 tree = Parsing.p_module(s, pxd, full_module_name) 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 from os import path 2019-06-29T18:28:02 from liblognorm cimport * 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:2:0: 'pylognorm/bindings/liblognorm.pxd' not found 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 return self.cnormalizer.normalize(logline, len(logline)) 2019-06-29T18:28:02 cdef class CLogNormalizer(object): 2019-06-29T18:28:02 cdef ln_ctx normalizer_ctx 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:47:9: 'ln_ctx' is not a type identifier 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 cdef class CLogNormalizer(object): 2019-06-29T18:28:02 cdef ln_ctx normalizer_ctx 2019-06-29T18:28:02 cdef ee_ctx cee_ctx 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:48:9: 'ee_ctx' is not a type identifier 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 formatted = self.format_JSON(event) 2019-06-29T18:28:02 ee_deleteEvent(event) 2019-06-29T18:28:02 es_deleteStr(in_str) 2019-06-29T18:28:02 return formatted 2019-06-29T18:28:02 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:90:34: 'ee_event' is not a type identifier 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 pyobj = PyUnicode_FromString(normal) 2019-06-29T18:28:02 free(normal) 2019-06-29T18:28:02 return pyobj 2019-06-29T18:28:02 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:28:02 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:78:13: 'es_str_t' is not a type identifier 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 free(normal) 2019-06-29T18:28:02 return pyobj 2019-06-29T18:28:02 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:28:02 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:28:02 cdef ee_event *event = NULL 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:79:13: 'ee_event' is not a type identifier 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 ee_deleteEvent(event) 2019-06-29T18:28:02 es_deleteStr(in_str) 2019-06-29T18:28:02 return formatted 2019-06-29T18:28:02 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:28:02 cdef es_str_t *out_str = NULL 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:91:13: 'es_str_t' is not a type identifier 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 from libc.stdlib cimport malloc, free 2019-06-29T18:28:02 from libc.string cimport strlen 2019-06-29T18:28:02 def lib_version(): 2019-06-29T18:28:02 cdef char* version = ln_version() 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:8:25: undeclared name not builtin: ln_version 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 from libc.stdlib cimport malloc, free 2019-06-29T18:28:02 from libc.string cimport strlen 2019-06-29T18:28:02 def lib_version(): 2019-06-29T18:28:02 cdef char* version = ln_version() 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:8:9: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 from libc.string cimport strlen 2019-06-29T18:28:02 def lib_version(): 2019-06-29T18:28:02 cdef char* version = ln_version() 2019-06-29T18:28:02 return PyString_FromStringAndSize(version, strlen(version)) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:9:11: undeclared name not builtin: PyString_FromStringAndSize 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 return PyString_FromStringAndSize(version, strlen(version)) 2019-06-29T18:28:02 cdef char * _object_to_cstr(object obj): 2019-06-29T18:28:02 cdef char *cstr_filename 2019-06-29T18:28:02 if PyByteArray_Check(obj): 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:14:7: undeclared name not builtin: PyByteArray_Check 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 cdef char * _object_to_cstr(object obj): 2019-06-29T18:28:02 cdef char *cstr_filename 2019-06-29T18:28:02 if PyByteArray_Check(obj): 2019-06-29T18:28:02 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:15:24: undeclared name not builtin: PyByteArray_AsString 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 cdef char * _object_to_cstr(object obj): 2019-06-29T18:28:02 cdef char *cstr_filename 2019-06-29T18:28:02 if PyByteArray_Check(obj): 2019-06-29T18:28:02 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:15:44: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 cdef char * _object_to_cstr(object obj): 2019-06-29T18:28:02 cdef char *cstr_filename 2019-06-29T18:28:02 if PyByteArray_Check(obj): 2019-06-29T18:28:02 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:28:02 elif PyBytes_Check(obj): 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:16:9: undeclared name not builtin: PyBytes_Check 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 cdef char * _object_to_cstr(object obj): 2019-06-29T18:28:02 cdef char *cstr_filename 2019-06-29T18:28:02 if PyByteArray_Check(obj): 2019-06-29T18:28:02 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:28:02 elif PyBytes_Check(obj): 2019-06-29T18:28:02 cstr_filename = PyBytes_AsString(obj) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:17:24: undeclared name not builtin: PyBytes_AsString 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 cdef char * _object_to_cstr(object obj): 2019-06-29T18:28:02 cdef char *cstr_filename 2019-06-29T18:28:02 if PyByteArray_Check(obj): 2019-06-29T18:28:02 cstr_filename = PyByteArray_AsString(obj) 2019-06-29T18:28:02 elif PyBytes_Check(obj): 2019-06-29T18:28:02 cstr_filename = PyBytes_AsString(obj) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:17:40: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 cdef ln_ctx normalizer_ctx 2019-06-29T18:28:02 cdef ee_ctx cee_ctx 2019-06-29T18:28:02 def __cinit__(self): 2019-06-29T18:28:02 self.normalizer_ctx = ln_initCtx() 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:51:30: undeclared name not builtin: ln_initCtx 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 cdef ln_ctx normalizer_ctx 2019-06-29T18:28:02 cdef ee_ctx cee_ctx 2019-06-29T18:28:02 def __cinit__(self): 2019-06-29T18:28:02 self.normalizer_ctx = ln_initCtx() 2019-06-29T18:28:02 self.cee_ctx = ee_initCtx() 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:52:23: undeclared name not builtin: ee_initCtx 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 cdef ee_ctx cee_ctx 2019-06-29T18:28:02 def __cinit__(self): 2019-06-29T18:28:02 self.normalizer_ctx = ln_initCtx() 2019-06-29T18:28:02 self.cee_ctx = ee_initCtx() 2019-06-29T18:28:02 ln_setEECtx(self.normalizer_ctx, self.cee_ctx); 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:53:8: undeclared name not builtin: ln_setEECtx 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 def __init__(self): 2019-06-29T18:28:02 pass 2019-06-29T18:28:02 def __dealoc__(self): 2019-06-29T18:28:02 ee_exitCtx(self.cee_ctx) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:59:8: undeclared name not builtin: ee_exitCtx 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 def __init__(self): 2019-06-29T18:28:02 pass 2019-06-29T18:28:02 def __dealoc__(self): 2019-06-29T18:28:02 ee_exitCtx(self.cee_ctx) 2019-06-29T18:28:02 ln_exitCtx(self.normalizer_ctx) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:60:8: undeclared name not builtin: ln_exitCtx 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 def __dealoc__(self): 2019-06-29T18:28:02 ee_exitCtx(self.cee_ctx) 2019-06-29T18:28:02 ln_exitCtx(self.normalizer_ctx) 2019-06-29T18:28:02 def load_rule(self, object rule): 2019-06-29T18:28:02 ln_loadSample(self.normalizer_ctx, _object_to_cstr(rule)) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:63:8: undeclared name not builtin: ln_loadSample 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 def load_rule(self, object rule): 2019-06-29T18:28:02 ln_loadSample(self.normalizer_ctx, _object_to_cstr(rule)) 2019-06-29T18:28:02 def load_rules(self, object filename): 2019-06-29T18:28:02 ln_loadSamples(self.normalizer_ctx, _object_to_cstr(filename)) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:66:8: undeclared name not builtin: ln_loadSamples 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 def normalize(self, object data, int length): 2019-06-29T18:28:02 cdef char *normal = self._normalize(_object_to_cstr(data), length) 2019-06-29T18:28:02 if normal == NULL: 2019-06-29T18:28:02 return None 2019-06-29T18:28:02 else: 2019-06-29T18:28:02 pyobj = PyUnicode_FromString(normal) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:73:20: undeclared name not builtin: PyUnicode_FromString 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 pyobj = PyUnicode_FromString(normal) 2019-06-29T18:28:02 free(normal) 2019-06-29T18:28:02 return pyobj 2019-06-29T18:28:02 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:28:02 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:78:32: undeclared name not builtin: es_newStrFromCStr 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 cdef char * _normalize(self, char *data, int length): 2019-06-29T18:28:02 cdef es_str_t *in_str = es_newStrFromCStr(data, length) 2019-06-29T18:28:02 cdef ee_event *event = NULL 2019-06-29T18:28:02 cdef char *formatted = NULL 2019-06-29T18:28:02 ln_normalize(self.normalizer_ctx, in_str, &event) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:82:8: undeclared name not builtin: ln_normalize 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 ln_normalize(self.normalizer_ctx, in_str, &event) 2019-06-29T18:28:02 if event != NULL: 2019-06-29T18:28:02 formatted = self.format_JSON(event) 2019-06-29T18:28:02 ee_deleteEvent(event) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:86:12: undeclared name not builtin: ee_deleteEvent 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 ln_normalize(self.normalizer_ctx, in_str, &event) 2019-06-29T18:28:02 if event != NULL: 2019-06-29T18:28:02 formatted = self.format_JSON(event) 2019-06-29T18:28:02 ee_deleteEvent(event) 2019-06-29T18:28:02 es_deleteStr(in_str) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:87:8: undeclared name not builtin: es_deleteStr 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:28:02 cdef es_str_t *out_str = NULL 2019-06-29T18:28:02 cdef char *cstr = NULL 2019-06-29T18:28:02 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:94:8: undeclared name not builtin: ee_fmtEventToJSON 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:28:02 cdef es_str_t *out_str = NULL 2019-06-29T18:28:02 cdef char *cstr = NULL 2019-06-29T18:28:02 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:28:02 cstr = es_str2cstr(out_str, NULL) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:95:15: undeclared name not builtin: es_str2cstr 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:28:02 cdef es_str_t *out_str = NULL 2019-06-29T18:28:02 cdef char *cstr = NULL 2019-06-29T18:28:02 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:28:02 cstr = es_str2cstr(out_str, NULL) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:95:36: Cannot convert 'void *' to Python object 2019-06-29T18:28:02 Error compiling Cython file: 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 ... 2019-06-29T18:28:02 cdef char * format_JSON(self, ee_event *event): 2019-06-29T18:28:02 cdef es_str_t *out_str = NULL 2019-06-29T18:28:02 cdef char *cstr = NULL 2019-06-29T18:28:02 ee_fmtEventToJSON(event, &out_str) 2019-06-29T18:28:02 cstr = es_str2cstr(out_str, NULL) 2019-06-29T18:28:02 ^ 2019-06-29T18:28:02 ------------------------------------------------------------ 2019-06-29T18:28:02 pylognorm/bindings/liblognorm.pyx:95:26: Storing unsafe C derivative of temporary Python reference 2019-06-29T18:28:03 running clean 2019-06-29T18:28:03 removing 'build/temp.linux-armv7l-3.7' (and everything under it) 2019-06-29T18:28:03 removing 'build/lib.linux-armv7l-3.7' (and everything under it) 2019-06-29T18:28:03 'build/bdist.linux-armv7l' does not exist -- can't clean it 2019-06-29T18:28:03 'build/scripts-3.7' does not exist -- can't clean it 2019-06-29T18:28:03 removing 'build' 2019-06-29T18:28:03 Failed to build pylognorm 2019-06-29T18:28:03 Cleaning up... 2019-06-29T18:28:03 Removing source in /tmp/pip-wheel-_p_o1yx1/pylognorm 2019-06-29T18:28:03 Removed build tracker '/tmp/pip-req-tracker-gy2jx2l5' 2019-06-29T18:28:03 ERROR: Failed to build one or more wheels 2019-06-29T18:28:03 Exception information: 2019-06-29T18:28:03 Traceback (most recent call last): 2019-06-29T18:28:03 File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/base_command.py", line 178, in main 2019-06-29T18:28:03 status = self.run(options, args) 2019-06-29T18:28:03 File "/usr/local/lib/python3.7/dist-packages/pip/_internal/commands/wheel.py", line 178, in run 2019-06-29T18:28:03 "Failed to build one or more wheels" 2019-06-29T18:28:03 pip._internal.exceptions.CommandError: Failed to build one or more wheels