pytries / marisa-trie

Static memory-efficient Trie-like structures for Python based on marisa-trie C++ library.
https://marisa-trie.readthedocs.io/en/latest/
MIT License
1.02k stars 91 forks source link

Build under Python 3.9 failed #64

Closed spajak closed 3 years ago

spajak commented 3 years ago

python3 -m pip install --user marisa-trie There is no member PyTypeObject->tp_print in python 3.9. Python 3.9.2 Linux SPPI 5.10.46-v7l+ #1432 SMP Fri Jul 2 21:17:20 BST 2021 armv7l GNU/Linux

src/marisa_trie.cpp: In function ‘int __Pyx_modinit_type_init_code()’:
    src/marisa_trie.cpp:17944:34: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    17944 |   __pyx_type_11marisa_trie__Trie.tp_print = 0;
          |                                  ^~~~~~~~
    src/marisa_trie.cpp:17968:39: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    17968 |   __pyx_type_11marisa_trie_BinaryTrie.tp_print = 0;
          |                                       ^~~~~~~~
    src/marisa_trie.cpp:17981:46: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    17981 |   __pyx_type_11marisa_trie__UnicodeKeyedTrie.tp_print = 0;
          |                                              ^~~~~~~~
    src/marisa_trie.cpp:17995:33: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    17995 |   __pyx_type_11marisa_trie_Trie.tp_print = 0;
          |                                 ^~~~~~~~
    src/marisa_trie.cpp:18014:38: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18014 |   __pyx_type_11marisa_trie_BytesTrie.tp_print = 0;
          |                                      ^~~~~~~~
    src/marisa_trie.cpp:18039:40: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18039 |   __pyx_type_11marisa_trie__UnpackTrie.tp_print = 0;
          |                                        ^~~~~~~~
    src/marisa_trie.cpp:18052:39: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18052 |   __pyx_type_11marisa_trie_RecordTrie.tp_print = 0;
          |                                       ^~~~~~~~
    src/marisa_trie.cpp:18070:57: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18070 |   __pyx_type_11marisa_trie___pyx_scope_struct____init__.tp_print = 0;
          |                                                         ^~~~~~~~
    src/marisa_trie.cpp:18076:57: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18076 |   __pyx_type_11marisa_trie___pyx_scope_struct_1_genexpr.tp_print = 0;
          |                                                         ^~~~~~~~
    src/marisa_trie.cpp:18082:58: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18082 |   __pyx_type_11marisa_trie___pyx_scope_struct_2_iterkeys.tp_print = 0;
          |                                                          ^~~~~~~~
    src/marisa_trie.cpp:18088:63: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18088 |   __pyx_type_11marisa_trie___pyx_scope_struct_3_iter_prefixes.tp_print = 0;
          |                                                               ^~~~~~~~
    src/marisa_trie.cpp:18094:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18094 |   __pyx_type_11marisa_trie___pyx_scope_struct_4_iteritems.tp_print = 0;
          |                                                           ^~~~~~~~
    src/marisa_trie.cpp:18100:63: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18100 |   __pyx_type_11marisa_trie___pyx_scope_struct_5_iter_prefixes.tp_print = 0;
          |                                                               ^~~~~~~~
    src/marisa_trie.cpp:18106:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18106 |   __pyx_type_11marisa_trie___pyx_scope_struct_6_iteritems.tp_print = 0;
          |                                                           ^~~~~~~~
    src/marisa_trie.cpp:18112:58: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18112 |   __pyx_type_11marisa_trie___pyx_scope_struct_7___init__.tp_print = 0;
          |                                                          ^~~~~~~~
    src/marisa_trie.cpp:18118:57: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18118 |   __pyx_type_11marisa_trie___pyx_scope_struct_8_genexpr.tp_print = 0;
          |                                                         ^~~~~~~~
    src/marisa_trie.cpp:18124:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18124 |   __pyx_type_11marisa_trie___pyx_scope_struct_9_iteritems.tp_print = 0;
          |                                                           ^~~~~~~~
    src/marisa_trie.cpp:18130:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18130 |   __pyx_type_11marisa_trie___pyx_scope_struct_10_iterkeys.tp_print = 0;
          |                                                           ^~~~~~~~
    src/marisa_trie.cpp:18136:59: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18136 |   __pyx_type_11marisa_trie___pyx_scope_struct_11___init__.tp_print = 0;
          |                                                           ^~~~~~~~
    src/marisa_trie.cpp:18142:58: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18142 |   __pyx_type_11marisa_trie___pyx_scope_struct_12_genexpr.tp_print = 0;
          |                                                          ^~~~~~~~
    src/marisa_trie.cpp:18148:60: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18148 |   __pyx_type_11marisa_trie___pyx_scope_struct_13_iteritems.tp_print = 0;
          |                                                            ^~~~~~~~
    src/marisa_trie.cpp:18154:58: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
    18154 |   __pyx_type_11marisa_trie___pyx_scope_struct_14_genexpr.tp_print = 0;
          |                                                          ^~~~~~~~
BoboTiG commented 3 years ago

Have a look at #66 ;)

BoboTiG commented 3 years ago

Fixed in master (b8f0cfd49a53914eb6c92f8d6d26f7cf366f8042).