Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
SunyataZero
@SunyataZero_gitlab
@TheRedTomato Cool! If you happen to get the error again please report this (and if you remember the circumstances before you got the issue, like maybe there was a crash of the computer)
TheRedTomato
@TheRedTomato
@SunyataZero_gitlab Will do 👍
vimzim
@vimzim:matrix.org
[m]
Hi. I've installed the program from source. When i press shift during breathing dialog, it crashes
DEBUG: shift key pressed
CRITICAL: Uncaught exception
Traceback (most recent call last):
  File "/home/herman/.local/lib/python3.10/site-packages/matc/main_object.py", line 250, in on_first_breathing_gi
    self.play_br_audio()
  File "/home/herman/.local/lib/python3.10/site-packages/matc/main_object.py", line 255, in play_br_audio
    self.play_audio(br_file_path, br_volume)
  File "/home/herman/.local/lib/python3.10/site-packages/matc/main_object.py", line 212, in play_audio
    self.sound_effect.setSource(audio_source_qurl)
AttributeError: 'NoneType' object has no attribute 'setSource'
QLayout: Attempting to add QLayout "" to ErrorDlg "", which already has a layout
SunyataZero
@SunyataZero_gitlab
@vimzim:matrix.org Hi and thank you for reporting this problem! I'll have a look at it right away, and hopefully will be back with a solution later today
SunyataZero
@SunyataZero_gitlab
@vimzim:matrix.org Okay i've updated the code now so that there will (hopefully!) be no crash. If you download the latest version of the code it should work now
But there is another underlying issue: The audio doesn't seem to work. Is this true for you? Or are you able to hear audio?
vimzim
@vimzim:matrix.org
[m]
doesn't crash now but yes, no sound
I have pyside 6.3.1 from pip
vimzim
@vimzim:matrix.org
[m]
        self.sound_effect = QtMultimedia.QSoundEffect(self)
this indeed throws NameError: name 'QtMultimedia' is not defined
vimzim
@vimzim:matrix.org
[m]
maybe pyside from pip does not include qtmultimedia?
SunyataZero
@SunyataZero_gitlab
@vimzim:matrix.org Again, thank you for taking time to report this issue. I have been looking into this but cannot see that QtMultimedia would have to be installed separately. Could you copy and send me everything that you have in systray_menu -> help -> system_information?
@/all Has anyone else had this issue?
vimzim
@vimzim:matrix.org
[m]
Application name: mindfulness-at-the-computer
Application version: 1.0.0-alpha.11
Config path: /home/herman/.config/mindfulness-at-the-computer
Module path: /home/herman/.local/lib/python3.10/site-packages/matc
Python version: 3.10.6 (main, Aug 25 2022, 17:41:54) [GCC 11.3.0]
Qt version: 6.3.1
Plugins path: /home/herman/.local/lib/python3.10/site-packages/PySide6/Qt/plugins
OS name and version: Gentoo Linux
Kernel type and version: linux 5.15.59-gentoo-x86_64
buildCpuArchitecture: x86_64
currentCpuArchitecture: x86_64
System Localization: en_US
herman@delta ~/.local/lib/python3.10/site-packages/PySide6/Qt/plugins 0
$ ls
assetimporters         geometryloaders     platforminputcontexts  printsupport   sceneparsers    tls                                  wayland-graphics-integration-server
designer               iconengines         platforms              qmltooling     scxmldatamodel  virtualkeyboard                      wayland-shell-integration
egldeviceintegrations  imageformats        platformthemes         renderers      sensors         wayland-decoration-client            xcbglintegrations
generic                networkinformation  position               renderplugins  sqldrivers      wayland-graphics-integration-client
vimzim
@vimzim:matrix.org
[m]
idk if its related but qt 6 is not yet available in gentoo
there is qtmultimedia package in gentoo repository that provides /usr/lib64/qt5/plugins/{audio,mediaservice} but only for qt 5
maybe pyside6 from pip does not have qtmultimedia in its plugins dir (they are the same for all people because pyside comes from pip, right?) and it tries to find the plugin in a global dir which I do not have there
SunyataZero
@SunyataZero_gitlab
Hm, okay. Can you look in this directory /home/sunyata/.local/lib/python3.10/site-packages/PySide6/Qt/lib/
and see if you have the file libQt6Multimedia.so.6? This file is available in the virtual environment that i have set up when developing so really should be included in the pip package that you install
1 reply
(It's also available in my own normal system installation)
In Qt 6.2 QtMultimedia was added (from what i've read)
@vimzim:matrix.org
It's possible there is some problem with the linking, i've had issues with this when building binary packages with pyinstaller
2 replies
vimzim
@vimzim:matrix.org
[m]
yes, now it works and I have sound
so it was gentoo-specific thing, my system package manager has built gstreamer without wayland symbols because they were not required, but qtmultimedia expected a full lib, so I had to enable wayland use-flag
SunyataZero
@SunyataZero_gitlab
@vimzim:matrix.org I'm glad it's now working for you!
I don't know anything about linking, but i'm glad you do and were able to solve the issue
I'll try to document this problem in case anyone else happens to have this issue
Could you send me the procedure you followed to get this working? (if you have the terminal history easily available)
vimzim
@vimzim:matrix.org
[m]
Gentoo, because it builds all packages from source, allows to configure what parts of a package needs to be build via use-flags. Each package in the repository has a set of use-flags. This is the set of use flags for gst-plugins-base
the symbol in the error when I import qtmultimedia in python is obviously related to wayland, so I enable it for example with
sudo euse --enable wayland to enable it globally
or by writing media-libs/gst-plugins-base wayland to /etc/portage/package.use/media-libs/gst-plugins-base to enable it only for this package
and then re-install the package (which causes it to be rebuild from source again now with wayland support)
vimzim
@vimzim:matrix.org
[m]
so its a gentoo-specific thing, I don't think it needs to be documented
SunyataZero
@SunyataZero_gitlab
@vimzim:matrix.org Thank you for this explanation!
Also, can i ask what you think of the application in general?
(I'm curious how people use it and if it helps them)
vimzim
@vimzim:matrix.org
[m]
yes, no problem
SunyataZero
@SunyataZero_gitlab
Btw do you know where i could report this issue? Is there an issue list for Gentoo that covers this sort of thing?
SunyataZero
@SunyataZero_gitlab
@innsaei_gitlab Can we discuss your MR 447?
Pablo Tomeo
@innsaei_gitlab
@SunyataZero_gitlab of course, if I understood correctly all discussions should be done here and not in the MR right?
SunyataZero
@SunyataZero_gitlab
@innsaei_gitlab Thank you for your contribution, i've now merged the MR into master. It looks much better! I regret it took me so long to get to this. I was first uncertain about some of the code you wrote but looking closer i see it's probably best they way that you've done it. (Have you worked with Qt before?)
SunyataZero
@SunyataZero_gitlab

if I understood correctly all discussions should be done here and not in the MR right?

i'm not sure, what do you think is best? maybe having discussions in the MR itself is better?

Pablo Tomeo
@innsaei_gitlab
I’m glad you find it helpful. I’ve never worked with either Qt or python really.
@SunyataZero_gitlab I would suggest having discussions on the MR themselves. Sometimes one wants to know why a certain approach was taken for solving a problem and then you keep a record that would otherwise get lost on gitter.
SunyataZero
@SunyataZero_gitlab
agreed! it makes sense
Frank DeNunzio
@sillyjaybird_gitlab
@SunyataZero_gitlab the app has been running fine until today when I got this error screen. Edit: I need to post this @GitLab to include screenshot.
SunyataZero
@SunyataZero_gitlab
@sillyjaybird_gitlab Thanks for reporting/creating the issue, i have also been running the application without problem but just earlier today i got a crash on one of my installations
Frank DeNunzio
@sillyjaybird_gitlab
@SunyataZero_gitlab I can't run it at all. I suspect something changed in Windows 11 after recent update. Just a hunch and not based on any technical reasoning.
sunyata_zero
@sunyata_zero:matrix.org
[m]
(I'm on my phone and am having a cold now so will just respond in brief) Can you try to rename or remove (rename in case you want to keep your customizations) your settings file? It's the one with the JSON suffix. Most likely the problem is a corrupt Json settings file. @sillyjaybird_gitlab:
Frank DeNunzio
@sillyjaybird_gitlab
@SunyataZero_gitlab OK, that worked. Thank you. Hope you feel well soon. I'm still masking up in crowds because we've all lost immunity to colds, flu, etc. since the pandemic.