Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Visualization won't show for PulseAudio, due to Python 3.10 #107

Open
renyuneyun opened this issue Mar 2, 2023 · 1 comment · May be fixed by #108
Open

[BUG] Visualization won't show for PulseAudio, due to Python 3.10 #107

renyuneyun opened this issue Mar 2, 2023 · 1 comment · May be fixed by #108
Labels

Comments

@renyuneyun
Copy link

Desktop (please complete the following information):

  • OS: Archlinux
  • Version of Plasma Framework: 5.103.0-1
  • Python: 3.10.9

Describe the bug

The visualization won't show when using PulseAudio as the backend.

Any error message shown in the console
Please execute the following commands in the console and upload the outputs.

git clone https://github.com/rbn42/panon.git
cd panon
git submodule update --init

You need to install plasma-sdk to get plasmoidviewer.

plasmoidviewer --applet ./plasmoid/

The following is shown (the error at the end appears right after choosing PulseAudio as backend).

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(0x555b4499cc10)
QQuickOpenGLShaderEffect: 'source' does not have a matching property!
QQuickOpenGLShaderEffect: 'source' does not have a matching property!
org.kde.plasma.containmentlayoutmanager: Trying to take space not available BasicAppletContainer_QMLTYPE_176_QML_197(0x555b449909a0, parent=0x555b442a14a0, geometry=320,240 640x80)
kf.kio.core: Invalid URL: QUrl("")
kf.kio.core: Malformed JSON protocol file for protocol: "trash" , number of the ExtraNames fields should match the number of ExtraTypes fields
org.kde.plasma.containmentlayoutmanager: Error: cannot change the containment to AppletsLayout
file:///home/ryey/vcs/panon/plasmoid/contents/ui/Spectrum.qml:95:45: QML Image: unknown error qml: 
qml: 
org.kde.plasma.containmentlayoutmanager: Trying to take space not available BasicAppletContainer_QMLTYPE_176_QML_197(0x555b449909a0, parent=0x555b442a14a0, geometry=320,240 640x80)
kf.kio.core: Malformed JSON protocol file for protocol: "trash" , number of the ExtraNames fields should match the number of ExtraTypes fields
kf.kio.core: Malformed JSON protocol file for protocol: "trash" , number of the ExtraNames fields should match the number of ExtraTypes fields
kf.kio.core: Malformed JSON protocol file for protocol: "trash" , number of the ExtraNames fields should match the number of ExtraTypes fields
kf.kio.core: Malformed JSON protocol file for protocol: "trash" , number of the ExtraNames fields should match the number of ExtraTypes fields
kf.kio.core: Malformed JSON protocol file for protocol: "trash" , number of the ExtraNames fields should match the number of ExtraTypes fields
kf.kio.core: Malformed JSON protocol file for protocol: "trash" , number of the ExtraNames fields should match the number of ExtraTypes fields
kf.kio.core: Malformed JSON protocol file for protocol: "trash" , number of the ExtraNames fields should match the number of ExtraTypes fields

.....                   {Lots of repeats}

QProcess: Destroyed while process ("/bin/sh") is still running.
qml: 
qml: 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/ryey/vcs/panon/plasmoid/contents/scripts/panon/backend/client.py", line 53, in <module>
    spectrum_source = source.SoundCardSource(spectrum.NUM_CHANNEL, sample_rate, arguments['--device-index'], cfg_fps)
  File "/home/ryey/vcs/panon/plasmoid/contents/scripts/panon/backend/source.py", line 113, in __init__
    self.start()
  File "/home/ryey/vcs/panon/plasmoid/contents/scripts/panon/backend/source.py", line 172, in start
    stream.__enter__()
  File "/home/ryey/vcs/panon/plasmoid/contents/scripts/soundcard/pulseaudio.py", line 638, in __enter__
    if isinstance(self.channels, collections.Iterable):
AttributeError: module 'collections' has no attribute 'Iterable'
@renyuneyun renyuneyun added the bug label Mar 2, 2023
@renyuneyun renyuneyun changed the title [BUG] Visualization won't show for PulseAudio: AttributeError: module 'collections' has no attribute 'Iterable' [BUG] Visualization won't show for PulseAudio, due to Python 3.10 Mar 2, 2023
@creeloper27
Copy link

This is valid also for python 3.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants