tlecomte / friture

Real-time audio visualizations (spectrum, spectrogram, etc.)

Home Page:http://friture.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: setFixedWidth(self, int): argument 1 has unexpected type 'float'

sxiii opened this issue · comments

Greetings!

Found a bug
2022-04-19 07:37:26,047 INFO friture.analyzer: Friture 0.48 starting on Linux (linux)
2022-04-19 07:37:26,048 INFO friture.analyzer: QML path: PyQt5.QtCore.QUrl('file:///usr/lib/python3.10/site-packages/friture/')
2022-04-19 07:37:26,169 INFO friture.audiobackend: Initializing audio backend
2022-04-19 07:37:26,169 INFO friture.audiobackend: Found 12 input devices and 17 output devices
2022-04-19 07:37:26,183 INFO friture.audiobackend: Supported formats for 'default' on 'ALSA': ['22050 Hz, float32', '22050 Hz, int16', '22050 Hz, int8', '44100 Hz, float32', '44100 Hz, int16', '44100 Hz, int8', '48000 Hz, float32', '48000 Hz, int16', '48000 Hz, int8', '96000 Hz, float32', '96000 Hz, int16', '96000 Hz, int8']
2022-04-19 07:37:26,183 INFO friture.audiobackend: Opening the stream for device 'default'
2022-04-19 07:37:26,184 INFO friture.audiobackend: Device claims 42 ms latency
2022-04-19 07:37:26,184 INFO friture.audiobackend: Success
2022-04-19 07:37:26,354 CRITICAL friture.exceptionhandler: Unhandled exception: Traceback (most recent call last):
  File "/usr/bin/friture", line 10, in <module>
    main()
  File "/usr/lib/python3.10/site-packages/friture/analyzer.py", line 395, in main
    window = Friture()
  File "/usr/lib/python3.10/site-packages/friture/analyzer.py", line 128, in __init__
    self.level_widget = Levels_Widget(self, self.qml_engine)
  File "/usr/lib/python3.10/site-packages/friture/levels.py", line 69, in __init__
    self.onWidthChanged()
  File "/usr/lib/python3.10/site-packages/friture/levels.py", line 108, in onWidthChanged
    self.quickWidget.setFixedWidth(self.qmlObject.width())
TypeError: setFixedWidth(self, int): argument 1 has unexpected type 'float'

2022-04-19 07:37:32,286 INFO friture.exceptionhandler: Try to continue
2022-04-19 07:37:42,513 INFO friture.analyzer: Friture 0.48 starting on Linux (linux)
2022-04-19 07:37:42,514 INFO friture.analyzer: QML path: PyQt5.QtCore.QUrl('file:///usr/lib/python3.10/site-packages/friture/')
2022-04-19 07:37:42,605 INFO friture.audiobackend: Initializing audio backend
2022-04-19 07:37:42,605 INFO friture.audiobackend: Found 12 input devices and 17 output devices
2022-04-19 07:37:42,616 INFO friture.audiobackend: Supported formats for 'default' on 'ALSA': ['22050 Hz, float32', '22050 Hz, int16', '22050 Hz, int8', '44100 Hz, float32', '44100 Hz, int16', '44100 Hz, int8', '48000 Hz, float32', '48000 Hz, int16', '48000 Hz, int8', '96000 Hz, float32', '96000 Hz, int16', '96000 Hz, int8']
2022-04-19 07:37:42,616 INFO friture.audiobackend: Opening the stream for device 'default'
2022-04-19 07:37:42,617 INFO friture.audiobackend: Device claims 42 ms latency
2022-04-19 07:37:42,617 INFO friture.audiobackend: Success
2022-04-19 07:37:42,738 CRITICAL friture.exceptionhandler: Unhandled exception: Traceback (most recent call last):
  File "/usr/bin/friture", line 10, in <module>
    main()
  File "/usr/lib/python3.10/site-packages/friture/analyzer.py", line 395, in main
    window = Friture()
  File "/usr/lib/python3.10/site-packages/friture/analyzer.py", line 128, in __init__
    self.level_widget = Levels_Widget(self, self.qml_engine)
  File "/usr/lib/python3.10/site-packages/friture/levels.py", line 69, in __init__
    self.onWidthChanged()
  File "/usr/lib/python3.10/site-packages/friture/levels.py", line 108, in onWidthChanged
    self.quickWidget.setFixedWidth(self.qmlObject.width())
TypeError: setFixedWidth(self, int): argument 1 has unexpected type 'float'

OS: Garuda Linux Soaring (White-tailed-eagle) (Archlinux-alike)
System audio server: pipewire (libpipewire 0.3.50)
Kernel: 5.15.34-1-lts

Probably something easy to fix. Please let me know if you need any additional details. Thanks!

Note: AppImage version from the website works OK, but the one from AUR (ArchLinux User Repos) - don't. Might be the reason lack of python 3.10 support?

This bug was fixed in Friture 0.49 with #208. I cannot comment on the package built for ArchLinux. If the problem persists, you might want to report it to the maintainers of ArchLinux User Repos. Thanks!