rbn42 / panon

An Audio Visualizer Widget in KDE Plasma
GNU General Public License v3.0
191 stars 31 forks source link

Panon Loop Error #89

Closed arty-airbourne closed 1 year ago

arty-airbourne commented 2 years ago

Desktop: Ryzen 3 2200G with Vega 8 Graphics, 8GB Ram 200GB storage.

The widget shows up but reacts to no audio, and when put through ./test.sh it displays a loop error

The log goes as such:

QML debugging is enabled. Only use this in a safe environment. qml: View QML loaded kf.plasma.quick: Applet preload policy set to 1 Toolbox not loading, toolbox package is either invalid or disabled. qml: New Containment: ContainmentInterface(0x55ae81b98900) QQuickOpenGLShaderEffect: 'source' does not have a matching property! QQuickOpenGLShaderEffect: 'source' does not have a matching property! kf.kio.core: Invalid URL: QUrl("") Trying to take space not available BasicAppletContainer_QMLTYPE_182_QML_193(0x55ae81969ce0, parent=0x55ae81bd00e0, geometry=320,240 640x96) qt.svg: :303:256: Could not add child element to parent element because the types are incorrect. qt.svg: :303:461: Could not add child element to parent element because the types are incorrect. qt.svg: :303:657: Could not add child element to parent element because the types are incorrect. qt.svg: :303:911: Could not add child element to parent element because the types are incorrect. qt.svg: :303:1047: Could not add child element to parent element because the types are incorrect. qt.svg: :303:1249: Could not add child element to parent element because the types are incorrect. qt.svg: :303:1451: Could not add child element to parent element because the types are incorrect. qt.svg: :303:1629: Could not add child element to parent element because the types are incorrect. qt.svg: :303:1737: Could not add child element to parent element because the types are incorrect. qt.svg: :303:1978: Could not add child element to parent element because the types are incorrect. qt.svg: :303:2221: Could not add child element to parent element because the types are incorrect. Error: cannot change the containment to AppletsLayout file:///home/desariahairbourne/panon/plasmoid/contents/ui/Spectrum.qml:95:45: QML Image: Unknown error Trying to take space not available BasicAppletContainer_QMLTYPE_182_QML_193(0x55ae81969ce0, parent=0x55ae81bd00e0, geometry=320,240 640x96) qml: qml: qml: qml: ALSA lib pcm_dsnoop.c:601:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1032:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card' ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card' ALSA lib pcm_dmix.c:1032:(snd_pcm_dmix_open) unable to open slave Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock /home/desariahairbourne/panon/plasmoid/contents/scripts/panon/backend/client.py:125: DeprecationWarning: There is no current event loop asyncio.get_event_loop().run_until_complete(mainloop()) Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/desariahairbourne/panon/plasmoid/contents/scripts/panon/backend/client.py", line 125, in asyncio.get_event_loop().run_until_complete(mainloop()) File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "/home/desariahairbourne/panon/plasmoid/contents/scripts/panon/backend/client.py", line 62, in mainloop async with websockets.connect(arguments['']) as websocket: File "/usr/lib/python3/dist-packages/websockets/legacy/client.py", line 604, in aenter return await self File "/usr/lib/python3/dist-packages/websockets/legacy/client.py", line 622, in __await_impl transport, protocol = await self._create_connection() File "/usr/lib/python3.10/asyncio/base_events.py", line 1089, in create_connection transport, protocol = await self._create_connection_transport( File "/usr/lib/python3.10/asyncio/base_events.py", line 1107, in _create_connection_transport protocol = protocol_factory() File "/usr/lib/python3/dist-packages/websockets/legacy/client.py", line 160, in init super().init(**kwargs) File "/usr/lib/python3/dist-packages/websockets/legacy/protocol.py", line 154, in init self._drain_lock = asyncio.Lock( File "/usr/lib/python3.10/asyncio/locks.py", line 78, in init super().init(loop=loop) File "/usr/lib/python3.10/asyncio/mixins.py", line 17, in init__ raise TypeError( TypeError: As of 3.10, the loop parameter was removed from Lock() since it is no longer necessary

sandmor commented 2 years ago

I solve this updating the websockets package with pip, you can run sudo pip install -U websockets, the python3-websockets package is outdated and not works very well with Python 3.10.

Because #78 you also need to run sed -i 's/collections.Iterable/collections.abc.Iterable/g' *.py on soundcard directory to let panon working