OpenVoiceOS / ovos-installer

Open Voice OS and/or HiveMind installer using Ansible with an intuitive and easy Text-based User Interface
https://www.openvoiceos.org
68 stars 20 forks source link

[BUG] not working on Fedora 40 #81

Closed suvanbanerjee closed 4 months ago

suvanbanerjee commented 4 months ago

System info:

WhatsApp Image 2024-05-09 at 11 14 04 AM

Logs: https://sprunge.us/YWJMwK

I think more testers are required to confirm this issue

goldyfruit commented 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.

goldyfruit commented 4 months ago

I think more testers are required to confirm this issue

Just migrated from Fedora 40 to openSUSE Tumbleweed :sweat_smile:

goldyfruit commented 4 months ago

I'm able to replicate on a VM.

suvanbanerjee commented 4 months ago

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

https://stackoverflow.com/questions/74562577/pocketsphinx-error-could-not-build-wheels-for-pocketsphinx-which-is-required-t

Found this online

goldyfruit commented 4 months ago

Python 3.11.2 works fine but 3.11.9 (Fedora 40) seems to brake something.

goldyfruit commented 4 months ago

Tested.