У меня проблема с pyaudio при сборке с buildozer. Сначала я получал ошибку, не имея рецепта для pyaudio (bin / false 1). Теперь я просто переместил папку pyaudio в каталог моего приложения. затем он не дал ошибки и успешно построить. Но при запуске на моем устройстве Android я получил ошибку portaudio:
09-03 01:20:09.736 2807 2835 I python : Traceback (most recent call last):
09-03 01:20:09.736 2807 2835 I python : File "./speech_recognition/__init__.py", line 108, in get_pyaudio
09-03 01:20:09.738 2807 2835 I python : import pyaudio
09-03 01:20:09.739 2807 2835 I python : File "./pyaudio.py", line 116, in <module>
09-03 01:20:09.740 2807 2835 I python : import _portaudio as pa
09-03 01:20:09.741 2807 2835 I python : ImportError: No module named '_portaudio'
09-03 01:20:09.742 2807 2835 I python :
09-03 01:20:09.742 2807 2835 I python : During handling of the above exception, another exception occurred:
09-03 01:20:09.743 2807 2835 I python :
09-03 01:20:09.743 2807 2835 I python : Traceback (most recent call last):
09-03 01:20:09.744 2807 2835 I python : File "main.py", line 322, in <module>
09-03 01:20:09.746 2807 2835 I python : tApp.run()
09-03 01:20:09.747 2807 2835 I python : File "/data/data/com.traffy.mytraffy/files/app/crystax_python/site-packages/kivy/app.py", line 828, in run
09-03 01:20:09.751 2807 2835 I python : runTouchApp()
09-03 01:20:09.752 2807 2835 I python : File "/data/data/com.traffy.mytraffy/files/app/crystax_python/site-packages/kivy/base.py", line 504, in runTouchApp
09-03 01:20:09.754 2807 2835 I python : EventLoop.window.mainloop()
09-03 01:20:09.755 2807 2835 I python : File "/data/data/com.traffy.mytraffy/files/app/crystax_python/site-packages/kivy/core/window/window_sdl2.py", line 663, in mainloop
09-03 01:20:09.758 2807 2835 I python : self._mainloop()
09-03 01:20:09.758 2807 2835 I python : File "/data/data/com.traffy.mytraffy/files/app/crystax_python/site-packages/kivy/core/window/window_sdl2.py", line 405, in _mainloop
09-03 01:20:09.761 2807 2835 I python : EventLoop.idle()
09-03 01:20:09.761 2807 2835 I python : File "/data/data/com.traffy.mytraffy/files/app/crystax_python/site-packages/kivy/base.py", line 342, in idle
09-03 01:20:09.764 2807 2835 I python : self.dispatch_input()
09-03 01:20:09.764 2807 2835 I python : File "/data/data/com.traffy.mytraffy/files/app/crystax_python/site-packages/kivy/base.py", line 327, in dispatch_input
09-03 01:20:09.766 2807 2835 I python : post_dispatch_input(*pop(0))
09-03 01:20:09.767 2807 2835 I python : File "/data/data/com.traffy.mytraffy/files/app/crystax_python/site-packages/kivy/base.py", line 293, in post_dispatch_input
09-03 01:20:09.769 2807 2835 I python : wid.dispatch('on_touch_up', me)
09-03 01:20:09.769 2807 2835 I python : File "kivy/_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:8191)
09-03 01:20:09.771 2807 2835 I python : File "/data/data/com.traffy.mytraffy/files/app/crystax_python/site-packages/kivy/uix/behaviors/button.py", line 179, in on_touch_up
09-03 01:20:09.772 2807 2835 I python : self.dispatch('on_release')
09-03 01:20:09.773 2807 2835 I python : File "kivy/_event.pyx", line 714, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:8146)
09-03 01:20:09.774 2807 2835 I python : File "kivy/_event.pyx", line 1225, in kivy._event.EventObservers.dispatch (kivy/_event.c:14035)
09-03 01:20:09.775 2807 2835 I python : File "kivy/_event.pyx", line 1109, in kivy._event.EventObservers._dispatch (kivy/_event.c:12816)
09-03 01:20:09.776 2807 2835 I python : File "/data/data/com.traffy.mytraffy/files/app/crystax_python/site-packages/kivy/lang/builder.py", line 64, in custom_callback
09-03 01:20:09.777 2807 2835 I python : exec(__kvlang__.co_value, idmap)
09-03 01:20:09.777 2807 2835 I python : File "/data/data/com.traffy.mytraffy/files/app/traffy.kv", line 321, in <module>
09-03 01:20:09.780 2807 2835 I python : on_release: root.speech_return()
09-03 01:20:09.780 2807 2835 I python : File "main.py", line 284, in speech_return
09-03 01:20:09.782 2807 2835 I python : with sr.Microphone() as source:
09-03 01:20:09.783 2807 2835 I python : File "./speech_recognition/__init__.py", line 79, in __init__
09-03 01:20:09.784 2807 2835 I python : self.pyaudio_module = self.get_pyaudio()
09-03 01:20:09.785 2807 2835 I python : File "./speech_recognition/__init__.py", line 110, in get_pyaudio
09-03 01:20:09.786 2807 2835 I python : raise AttributeError("Could not find PyAudio; check installation")
09-03 01:20:09.787 2807 2835 I python : AttributeError: Could not find PyAudio; check installation
09-03 01:20:09.810 614 614 E WifiTrafficPoller: TRAFFIC_STATS_POLL true Token 1720 num clients 8
09-03 01:20:09.810 614 614 E WifiTrafficPoller: packet count Tx=423904 Rx=524773
09-03 01:20:10.142 2807 2835 I python : Python for android ended.