inveniosoftware / dojson

Simple pythonic JSON to JSON converter.
https://dojson.readthedocs.io
Other
10 stars 29 forks source link

tests: ESMRE is not Python 3+ compatible #9

Closed jirikuncar closed 8 years ago

jirikuncar commented 9 years ago
Using /Users/jirka/programing/python/dojson/.eggs/lxml-3.4.4-py3.4-macosx-10.10-x86_64.egg
Searching for esmre
Reading https://pypi.python.org/simple/esmre/
Reading http://code.google.com/p/esmre/
Best match: esmre 0.3.1
Downloading https://pypi.python.org/packages/source/e/esmre/esmre-0.3.1.tar.gz#md5=95ace12bac0c79cf95712336489bc4a4
Processing esmre-0.3.1.tar.gz
Writing /var/folders/57/jt0zh0ys541671wgmgp8dnkh0000gp/T/easy_install-v5dff8r8/esmre-0.3.1/setup.cfg
Running esmre-0.3.1/setup.py -q bdist_egg --dist-dir /var/folders/57/jt0zh0ys541671wgmgp8dnkh0000gp/T/easy_install-v5dff8r8/esmre-0.3.1/egg-dist-tmp-3z1ktnug
src/esm.c:38:11: error: no member named 'ob_type' in 'esm_IndexObject'
    self->ob_type->tp_free((PyObject*) self);
    ~~~~  ^
src/esm.c:185:5: warning: suggest braces around initialization of subobject [-Wmissing-braces]
    PyObject_HEAD_INIT(NULL)
    ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/include/python3.4m/object.h:86:5: note: expanded from macro 'PyObject_HEAD_INIT'
    1, type },
    ^~~~~~~
src/esm.c:187:5: warning: incompatible pointer to integer conversion initializing 'Py_ssize_t' (aka 'long') with an expression of type 'char [10]' [-Wint-conversion]
    "esm.Index",                        /*tp_name*/
    ^~~~~~~~~~~
src/esm.c:190:5: warning: incompatible pointer types initializing 'printfunc' (aka 'int (*)(PyObject *, FILE *, int)') with an expression of type 'destructor' (aka 'void (*)(PyObject *)') [-Wincompatible-pointer-types]
    (destructor) esm_Index_dealloc,     /*tp_dealloc*/
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/esm.c:205:5: warning: incompatible integer to pointer conversion initializing 'const char *' with an expression of type 'unsigned long' [-Wint-conversion]
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /*tp_flags*/
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/include/python3.4m/object.h:643:29: note: expanded from macro 'Py_TPFLAGS_DEFAULT'
#define Py_TPFLAGS_DEFAULT  ( \
                            ^
src/esm.c:206:5: warning: incompatible pointer types initializing 'traverseproc' (aka 'int (*)(PyObject *, visitproc, void *)') with an expression of type 'char [47]' [-Wincompatible-pointer-types]
    "Index() -> new efficient string matching index",  /* tp_doc */
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/esm.c:213:5: warning: incompatible pointer types initializing 'struct PyMemberDef *' with an expression of type 'PyMethodDef [4]' [-Wincompatible-pointer-types]
    esm_Index_methods,             /* tp_methods */
    ^~~~~~~~~~~~~~~~~
src/esm.c:214:5: warning: incompatible pointer types initializing 'struct PyGetSetDef *' with an expression of type 'PyMemberDef [1]' [-Wincompatible-pointer-types]
    esm_Index_members,             /* tp_members */
    ^~~~~~~~~~~~~~~~~
src/esm.c:221:5: warning: incompatible pointer types initializing 'allocfunc' (aka 'PyObject *(*)(struct _typeobject *, Py_ssize_t)') with an expression of type 'initproc' (aka 'int (*)(PyObject *, PyObject *, PyObject *)') [-Wincompatible-pointer-types]
    (initproc) esm_Index_init,      /* tp_init */
    ^~~~~~~~~~~~~~~~~~~~~~~~~
src/esm.c:223:5: warning: incompatible pointer types initializing 'freefunc' (aka 'void (*)(void *)') with an expression of type 'PyObject *(PyTypeObject *, PyObject *, PyObject *)' [-Wincompatible-pointer-types]
    esm_Index_new,                 /* tp_new */
    ^~~~~~~~~~~~~
src/esm.c:239:9: error: non-void function 'initesm' should return a value [-Wreturn-type]
        return;
        ^
src/esm.c:241:9: warning: implicit declaration of function 'Py_InitModule3' is invalid in C99 [-Wimplicit-function-declaration]
    m = Py_InitModule3("esm", esm_methods,
        ^
src/esm.c:241:7: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
    m = Py_InitModule3("esm", esm_methods,
      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/esm.c:245:9: error: non-void function 'initesm' should return a value [-Wreturn-type]
        return;
        ^
11 warnings and 3 errors generated.
error: Setup script exited with error: command 'clang' failed with exit status 1
jirikuncar commented 8 years ago

Closed via #57.