dimagi/jsonobject

Broken on python3.9

asyncmind0 opened this issue · 2 comments

Seems like its using some deprecated api

Installing on Archlinux python-3.9.0

building 'jsonobject.base' extension
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno
-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/home/s
teven/.cache/pypoetry/virtualenvs/slicecloud-jI982s2O-py3.9/include -I/usr/include/python3.9 -c jsonobject/base.c -o build/temp.linux-x
86_64-3.9/jsonobject/base.o
      jsonobject/base.c: In function '__Pyx_modinit_type_init_code':
      jsonobject/base.c:12110:61: error: 'PyTypeObject' {aka 'struct _typeobject'} has no member named 'tp_print'
      12110 |   __pyx_type_10jsonobject_4base___pyx_scope_struct____repr__.tp_print = 0;
            |                                                             ^
      jsonobject/base.c:12116:61: error: 'PyTypeObject' {aka 'struct _typeobject'} has no member named 'tp_print'
      12116 |   __pyx_type_10jsonobject_4base___pyx_scope_struct_1_genexpr.tp_print = 0;
            |                                                             ^
      jsonobject/base.c:12122:61: error: 'PyTypeObject' {aka 'struct _typeobject'} has no member named 'tp_print'
      12122 |   __pyx_type_10jsonobject_4base___pyx_scope_struct_2_genexpr.tp_print = 0;
            |                                                             ^

Hi @jagguli, we don't have immediate plans to work n supporting python 3.9, but I will say that if you add python 3.9 to our test matrix here https://github.com/dimagi/jsonobject/blob/master/.travis.yml#L2-L6 and are able to add support and get those tests to pass, then we'll review it unless there are unusual hurdles that it presents add 3.9 to our supported versions.