Closed suvanbanerjee closed 4 months ago
Seems to be related to PocketSphinx.
error: implicit declaration of function ‘SWIG_Python_str_AsChar’; did you mean ‘SWIG_Python_str_FromChar’? [-Wimplicit-function-declaration]\n 5791 | arg3[i] = SWIG_Python_str_AsChar(o);\n | ^~~~~~~~~~~~~~~~~~~~~~\n | SWIG_Python_str_FromChar\n deps/sphinxbase/swig/sphinxbase_wrap.c:5791:17: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]\n 5791 | arg3[i] = SWIG_Python_str_AsChar(o);\n | ^\n deps/sphinxbase/swig/sphinxbase_wrap.c:5808:9: error: implicit declaration of function ‘SWIG_Python_str_DelForPy3’; did you mean ‘SWIG_Python_str_FromFormat’? [-Wimplicit-function-declaration]\n 5808 | SWIG_Python_str_DelForPy3(arg3[i]);\n | ^~~~~~~~~~~~~~~~~~~~~~~~~\n | SWIG_Python_str_FromFormat\n error: command '/usr/bin/gcc' failed with exit code 1\n [end of output]\n \n note: This error originates from a subprocess, and is likely not a problem with pip.\n ERROR: Failed building wheel for pocketsphinx\nERROR: Could not build wheels for pocketsphinx, which is required to install pyproject.toml-based projects
But I see as well Python 3.12 from the screenshot you shared which should be 3.11.
I think more testers are required to confirm this issue
Just migrated from Fedora 40 to openSUSE Tumbleweed :sweat_smile:
I'm able to replicate on a VM.
Ok, i just found the problem. turns out python 3.11 is completely unsupported. meaning you will have to downgrade to 3.10 to use this module
Found this online
Python 3.11.2 works fine but 3.11.9 (Fedora 40) seems to brake something.
Tested.
System info:
Logs: https://sprunge.us/YWJMwK
I think more testers are required to confirm this issue