WojciechMula / pyahocorasick

Python module (C extension and plain python) implementing Aho-Corasick algorithm
BSD 3-Clause "New" or "Revised" License
937 stars 122 forks source link

problem installation with python 3.10 and windows 10 not with python 3.8 #155

Closed echidne closed 2 years ago

echidne commented 2 years ago

Hi, When I try to install in a python 3.10 environnement the installation fail because multiple syntax errors :

> running build
    running build_ext
    building 'ahocorasick' extension
    creating build
    creating build\temp.win-amd64-3.10
    creating build\temp.win-amd64-3.10\Release
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DAHOCORASICK_UNICODE= -IC:\Program Files\Python310\include -IC:\Program Files\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tcpyahocorasick.c /Fobuild\temp.win-amd64-3.10\Release\pyahocorasick.obj
    pyahocorasick.c
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(59): error C2061: erreur de syntaxeÿ: identificateur 'ssize_t'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(60): error C2061: erreur de syntaxeÿ: identificateur 'words_count'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(60): error C2059: erreur de syntaxeÿ: ';'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(61): error C2061: erreur de syntaxeÿ: identificateur 'longest_word'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(61): error C2059: erreur de syntaxeÿ: ';'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(62): error C2061: erreur de syntaxeÿ: identificateur 'links_count'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(62): error C2059: erreur de syntaxeÿ: ';'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(63): error C2061: erreur de syntaxeÿ: identificateur 'sizeof_node'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(63): error C2059: erreur de syntaxeÿ: ';'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(64): error C2061: erreur de syntaxeÿ: identificateur 'total_size'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(64): error C2059: erreur de syntaxeÿ: ';'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(65): error C2059: erreur de syntaxeÿ: '}'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(80): error C2061: erreur de syntaxeÿ: identificateur 'AutomatonStatistics'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(81): error C2059: erreur de syntaxeÿ: '}'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(87): error C2143: erreur de syntaxeÿ: absence de ')' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(87): error C2143: erreur de syntaxeÿ: absence de '{' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(88): error C2371: 'PyObject'ÿ: red‚finitionÿ; types de base diff‚rents
    C:\Program Files\Python310\include\object.h(109): note: voir la d‚claration de 'PyObject'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(88): error C2143: erreur de syntaxeÿ: absence de ';' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(89): error C2371: 'PyObject'ÿ: red‚finitionÿ; types de base diff‚rents
    C:\Program Files\Python310\include\object.h(109): note: voir la d‚claration de 'PyObject'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(89): error C2143: erreur de syntaxeÿ: absence de ';' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(90): error C2059: erreur de syntaxeÿ: ')'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(105): error C2061: erreur de syntaxeÿ: identificateur 'automaton_len'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(105): error C2059: erreur de syntaxeÿ: ';'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\Automaton.h(105): error C2059: erreur de syntaxeÿ: '<parameter-list>'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(20): error C2143: erreur de syntaxeÿ: absence de ')' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(20): error C2143: erreur de syntaxeÿ: absence de '{' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(20): warning C4142: 'uint32_t'ÿ: red‚finition b‚nigne du type
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\stdint.h(24): note: voir la d‚claration de 'uint32_t'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(20): error C2370: 'uint32_t'ÿ: red‚finitionÿ; classe de stockage diff‚rente
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\stdint.h(24): note: voir la d‚claration de 'uint32_t'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(20): warning C4228: extension non standard utilis‚eÿ: les qualificateurs situ‚s aprŠs la virgule dans la liste des d‚clarateurs sont ignor‚s
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(20): error C2143: erreur de syntaxeÿ: absence de ';' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(20): error C2371: 'size_t'ÿ: red‚finitionÿ; types de base diff‚rents
    pyahocorasick.c: note: voir la d‚claration de 'size_t'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(20): warning C4228: extension non standard utilis‚eÿ: les qualificateurs situ‚s aprŠs la virgule dans la liste des d‚clarateurs sont ignor‚s
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(20): error C2146: erreur de syntaxeÿ: absence de ';' avant l'identificateur 'wordlen'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(20): error C2371: 'bool'ÿ: red‚finitionÿ; types de base diff‚rents
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\common.h(93): note: voir la d‚claration de 'bool'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(20): error C2059: erreur de syntaxeÿ: ')'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(24): error C2143: erreur de syntaxeÿ: absence de ')' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(24): error C2143: erreur de syntaxeÿ: absence de '{' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(24): warning C4142: 'uint32_t'ÿ: red‚finition b‚nigne du type
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\stdint.h(24): note: voir la d‚claration de 'uint32_t'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(24): error C2370: 'uint32_t'ÿ: red‚finitionÿ; classe de stockage diff‚rente
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\stdint.h(24): note: voir la d‚claration de 'uint32_t'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(24): warning C4228: extension non standard utilis‚eÿ: les qualificateurs situ‚s aprŠs la virgule dans la liste des d‚clarateurs sont ignor‚s
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(24): error C2143: erreur de syntaxeÿ: absence de ';' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(24): error C2371: 'size_t'ÿ: red‚finitionÿ; types de base diff‚rents
    pyahocorasick.c: note: voir la d‚claration de 'size_t'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(24): warning C4228: extension non standard utilis‚eÿ: les qualificateurs situ‚s aprŠs la virgule dans la liste des d‚clarateurs sont ignor‚s
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(24): error C2146: erreur de syntaxeÿ: absence de ';' avant l'identificateur 'wordlen'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\trie.h(24): error C2059: erreur de syntaxeÿ: ')'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIter.h(29): error C2061: erreur de syntaxeÿ: identificateur 'Automaton'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIter.h(43): error C2059: erreur de syntaxeÿ: '}'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIter.h(48): error C2143: erreur de syntaxeÿ: absence de ')' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIter.h(48): error C2143: erreur de syntaxeÿ: absence de '{' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIter.h(49): error C2371: 'PyObject'ÿ: red‚finitionÿ; types de base diff‚rents
    C:\Program Files\Python310\include\object.h(109): note: voir la d‚claration de 'PyObject'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIter.h(49): error C2143: erreur de syntaxeÿ: absence de ';' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIter.h(50): error C2059: erreur de syntaxeÿ: 'type'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIter.h(53): error C2059: erreur de syntaxeÿ: ')'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIterLong.h(21): error C2061: erreur de syntaxeÿ: identificateur 'Automaton'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIterLong.h(23): error C2371: 'object'ÿ: red‚finitionÿ; types de base diff‚rents
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIter.h(49): note: voir la d‚claration de 'object'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIterLong.h(29): error C2371: 'index'ÿ: red‚finitionÿ; types de base diff‚rents
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIter.h(35): note: voir la d‚claration de 'index'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIterLong.h(30): error C2371: 'shift'ÿ: red‚finitionÿ; types de base diff‚rents
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIter.h(36): note: voir la d‚claration de 'shift'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIterLong.h(31): error C2371: 'end'ÿ: red‚finitionÿ; types de base diff‚rents
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIter.h(37): note: voir la d‚claration de 'end'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIterLong.h(32): error C2059: erreur de syntaxeÿ: '}'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIterLong.h(37): error C2143: erreur de syntaxeÿ: absence de ')' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIterLong.h(37): error C2143: erreur de syntaxeÿ: absence de '{' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIterLong.h(38): error C2371: 'PyObject'ÿ: red‚finitionÿ; types de base diff‚rents
    C:\Program Files\Python310\include\object.h(109): note: voir la d‚claration de 'PyObject'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIterLong.h(38): error C2143: erreur de syntaxeÿ: absence de ';' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIterLong.h(39): error C2059: erreur de syntaxeÿ: 'type'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonSearchIterLong.h(41): error C2059: erreur de syntaxeÿ: ')'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(35): error C2061: erreur de syntaxeÿ: identificateur 'Automaton'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(51): error C2059: erreur de syntaxeÿ: '}'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(57): error C2143: erreur de syntaxeÿ: absence de ')' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(57): error C2143: erreur de syntaxeÿ: absence de '{' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(58): warning C4142: 'uint32_t'ÿ: red‚finition b‚nigne du type
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\stdint.h(24): note: voir la d‚claration de 'uint32_t'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(58): error C2370: 'uint32_t'ÿ: red‚finitionÿ; classe de stockage diff‚rente
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\stdint.h(24): note: voir la d‚claration de 'uint32_t'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(58): warning C4228: extension non standard utilis‚eÿ: les qualificateurs situ‚s aprŠs la virgule dans la liste des d‚clarateurs sont ignor‚s
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(58): error C2143: erreur de syntaxeÿ: absence de ';' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(59): warning C4228: extension non standard utilis‚eÿ: les qualificateurs situ‚s aprŠs la virgule dans la liste des d‚clarateurs sont ignor‚s
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(59): error C2146: erreur de syntaxeÿ: absence de ';' avant l'identificateur 'wordlen'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(61): error C2371: 'bool'ÿ: red‚finitionÿ; types de base diff‚rents
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\common.h(93): note: voir la d‚claration de 'bool'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(61): warning C4228: extension non standard utilis‚eÿ: les qualificateurs situ‚s aprŠs la virgule dans la liste des d‚clarateurs sont ignor‚s
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(61): error C2146: erreur de syntaxeÿ: absence de ';' avant l'identificateur 'use_wildcard'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(61): error C2371: 'use_wildcard'ÿ: red‚finitionÿ; types de base diff‚rents
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(48): note: voir la d‚claration de 'use_wildcard'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(62): warning C4142: 'uint32_t'ÿ: red‚finition b‚nigne du type
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\stdint.h(24): note: voir la d‚claration de 'uint32_t'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(62): error C2370: 'uint32_t'ÿ: red‚finitionÿ; classe de stockage diff‚rente
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\stdint.h(24): note: voir la d‚claration de 'uint32_t'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(62): warning C4228: extension non standard utilis‚eÿ: les qualificateurs situ‚s aprŠs la virgule dans la liste des d‚clarateurs sont ignor‚s
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(62): error C2146: erreur de syntaxeÿ: absence de ';' avant l'identificateur 'wildcard'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(62): warning C4142: 'wildcard'ÿ: red‚finition b‚nigne du type
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(49): note: voir la d‚claration de 'wildcard'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(64): error C2370: 'PatternMatchType'ÿ: red‚finitionÿ; classe de stockage diff‚rente
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(29): note: voir la d‚claration de 'PatternMatchType'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(64): warning C4228: extension non standard utilis‚eÿ: les qualificateurs situ‚s aprŠs la virgule dans la liste des d‚clarateurs sont ignor‚s
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(64): error C2146: erreur de syntaxeÿ: absence de ';' avant l'identificateur 'matchtype'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\AutomatonItemsIter.h(65): error C2059: erreur de syntaxeÿ: ')'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(63): error C2146: erreur de syntaxeÿ: absence de ')' avant l'identificateur 'size'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(63): error C2061: erreur de syntaxeÿ: identificateur 'size'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(63): error C2059: erreur de syntaxeÿ: ';'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(63): error C2059: erreur de syntaxeÿ: ')'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(63): error C2449: trouv‚ '{' au niveau de la port‚e du fichier (en-tˆte de fonction manquantÿ?)
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(84): error C2059: erreur de syntaxeÿ: '}'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(145): error C2143: erreur de syntaxeÿ: absence de ')' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(145): error C2081: 'ssize_t'ÿ: nom non conforme dans la liste de paramŠtres formels
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(145): error C2143: erreur de syntaxeÿ: absence de '{' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(145): error C2040: 'wordlen'ÿ: les niveaux d'indirection de 'int *' et de 'int' sont diff‚rents
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(145): error C2371: 'bool'ÿ: red‚finitionÿ; types de base diff‚rents
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\common.h(93): note: voir la d‚claration de 'bool'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(145): error C2143: erreur de syntaxeÿ: absence de ';' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(145): error C2059: erreur de syntaxeÿ: ')'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(145): error C2054: '(' attendu aprŠs 'is_copy'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(238): error C2143: erreur de syntaxeÿ: absence de ')' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(238): error C2081: 'ssize_t'ÿ: nom non conforme dans la liste de paramŠtres formels
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(238): error C2143: erreur de syntaxeÿ: absence de '{' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(238): error C2059: erreur de syntaxeÿ: ')'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(238): error C2040: 'wordlen'ÿ: les niveaux d'indirection de 'int *' et de 'int' sont diff‚rents
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(238    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(281): error C2143: erreur de syntaxeÿ: absence de ')' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(281): error C2081: 'ssize_t'ÿ: nom non conforme dans la liste de paramŠtres formels
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(281): error C2143: erreur de syntaxeÿ: absence de '{' avant '*'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(281    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(281): error C2040: 'wordlen'ÿ: les niveaux d'indirection de 'int *' et de 'int' sont diff‚rents
): error C2054: '(' attendu aprŠs 'wordlen'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(296): error C2146: erreur de syntaxeÿ: absence de ')' avant l'identificateur 'min'
    C:\Users\Philippe\AppData\Local\Temp\pip-install-e_f3b45t\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\utils.c(296): fatal error C1003: le nombre d'erreurs est sup‚rieur … 100ÿ; arrˆt de la compilation
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Program Files\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Philippe\\AppData\\Local\\Temp\\pip-install-e_f3b45t\\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\\setup.py'"'"'; __file__='"'"'C:\\Users\\Philippe\\AppData\\Local\\Temp\\pip-install-e_f3b45t\\pyahocorasick_f828c2d19f234cc1a3d7eb10bb529b45\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Philippe\AppData\Local\Temp\pip-record-x7fudkuj\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Philippe\AppData\Roaming\Python\Python310\Include\pyahocorasick' Check the logs for full command output.

no problem with a Python 3.8 environnement

pombredanne commented 2 years ago

@echidne There is a bug that was fixed by @dgrunwald in https://github.com/WojciechMula/pyahocorasick/commit/e6419b13c1ce8707adb2541f7e1f74324fb7c9d4

pombredanne commented 2 years ago

And this will be in the upcoming 1.4.3. I am closing this now! Thanks!