Package Details: python-wyoming-openwakeword 1.10.0-1

Git Clone URL: https://aur.archlinux.org/python-wyoming-openwakeword.git (read-only, click to copy)
Package Base: python-wyoming-openwakeword
Description: Wyoming Server for OpenWakeWord
Upstream URL: https://github.com/rhasspy/wyoming-openwakeword
Licenses: MIT
Submitter: gilcu3
Maintainer: gilcu3
Last Packager: gilcu3
Votes: 0
Popularity: 0.000000
First Submitted: 2023-11-02 23:57 (UTC)
Last Updated: 2024-06-05 07:05 (UTC)

Latest Comments

sixtyfive commented on 2025-01-15 19:48 (UTC)

Understood, makes sense, will do. Thank you for the quick response & explanations!

gilcu3 commented on 2025-01-15 17:37 (UTC)

@sixtyfive thank you for sharing the solution you found.

Indeed, the situation is not the best. What you propose seems like a workaround in the sense that python-tflite-runtime is not really equivalent to python-tensorflow.

Officially the upstream package depends only on tflite-runtime (https://github.com/rhasspy/wyoming-openwakeword/blob/master/requirements.txt) which is deprecated and should get substituted by an alternative compatible with python3.12+ at some point. Until that changes I am reluctant to change the package here. Please open an issue there if you want to help this get fixed.

sixtyfive commented on 2025-01-15 17:10 (UTC) (edited on 2025-01-15 17:12 (UTC) by sixtyfive)

@gilcu3 thank you ... I have it working now. A few changes to my PKGBUILDs:

  • python-wyoming-openwakeword should not specify any of python-openwakeword's dependencies again, but let python-openwakeword pull these in; notably, the python-tflite-runtime dependency should to be removed

  • python-openwakeword should depend on EITHER python-tflite-runtime OR python-tensorflow OR python-tensorflow-opt OR python-tensorflow-cuda

As for tflite-runtime, it looks like these are indeed prebuilt binaries and there's nothing the maintainer of python-tflite-runtime can do to upgrade them at the moment. Python 3.11 is unfortunately the limit there.

By the way, it's even worse on ArchLinux (I'm on Manjaro) because that's on Python 3.13 by now, and the error message is much less clear there.

gilcu3 commented on 2025-01-15 15:59 (UTC)

@sixtyfive that error appears because one of the dependencies of this package depends on python3.11, and you are using python3.12. Until that gets fixed (and that depends on binaries being published) I would advice installing this as python pip packages in a virtual env instead of using the AUR variants.

sixtyfive commented on 2025-01-15 15:40 (UTC)

Anyone an idea how to fix this?

$ wyoming-openwakeword
Traceback (most recent call last):
  File "/usr/bin/wyoming-openwakeword", line 5, in <module>
    from wyoming_openwakeword.__main__ import run
  File "/usr/lib/python3.12/site-packages/wyoming_openwakeword/__main__.py", line 12, in <module>
    from .handler import OpenWakeWordEventHandler, ensure_loaded
  File "/usr/lib/python3.12/site-packages/wyoming_openwakeword/handler.py", line 21, in <module>
    from .openwakeword import ww_proc
  File "/usr/lib/python3.12/site-packages/wyoming_openwakeword/openwakeword.py", line 9, in <module>
    import tflite_runtime.interpreter as tflite
  File "/usr/lib/python3.12/site-packages/tflite_runtime/interpreter.py", line 33, in <module>
    from tflite_runtime import _pywrap_tensorflow_interpreter_wrapper as _interpreter_wrapper
ImportError: Python version mismatch: module was compiled for Python 3.11, but the interpreter version is incompatible: 3.12.7 (main, Oct  1 2024, 11:15:50) [GCC 14.2.1 20240910].