friture
friture copied to clipboard
ModuleNotFoundError on start
After not having used the app for a couple of months, it longer opens. Each time a try to do so, a window with the title "Opps! Something went wrong!" opens and reports the following error:
2022-08-21, 21:47:21 (Friture 0.49)
Traceback (most recent call last):
File "/usr/bin/friture", line 8, in
from friture.analyzer import main
File "/usr/lib/python3.10/site-packages/friture/analyzer.py", line 39, in
from friture.about import About_Dialog # About dialog
File "/usr/lib/python3.10/site-packages/friture/about.py", line 26, in
from friture.statisticswidget import StatisticsWidget
File "/usr/lib/python3.10/site-packages/friture/statisticswidget.py", line 21, in
from friture.audiobackend import AudioBackend
File "/usr/lib/python3.10/site-packages/friture/audiobackend.py", line 25, in
import rtmixer
File "/usr/lib/python3.10/site-packages/rtmixer.py", line 9, in
from pa_ringbuffer import init as _init_ringbuffer
ModuleNotFoundError: No module named 'pa_ringbuffer'
try installing pa-ringbuffer with pip install pa-ringbuffer
I reinstalled Friture and if I now run pip install pa-ringbuffer, it says Requirement already satisfied. I get a different error this time.
2022-10-11, 07:20:43 (Friture 0.49)
Traceback (most recent call last):
File "/usr/bin/friture", line 10, in
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 154, in __init__
self.restoreAppState()
File "/usr/lib/python3.10/site-packages/friture/analyzer.py", line 258, in restoreAppState
self.dockmanager.restoreState(settings)
File "/usr/lib/python3.10/site-packages/friture/dockmanager.py", line 78, in restoreState
dock.restoreState(settings)
File "/usr/lib/python3.10/site-packages/friture/dock.py", line 125, in restoreState
self.audiowidget.restoreState(settings)
File "/usr/lib/python3.10/site-packages/friture/generator.py", line 308, in restoreState
generator.settingsWidget().restoreState(settings)
File "/usr/lib/python3.10/site-packages/friture/generators/sweep.py", line 159, in restoreState
self.spinBox_sweep_startfrequency.setValue(sweep_start_frequency)
TypeError: setValue(self, int): argument 1 has unexpected type 'float'
try deleting all config files, looks like it's trying to load in a frequency that is a float, and should be an int
Sorry about the initial error about pa_ringbuffer. I'm glad it got resolved by resinstalling.
Regarding the 2nd error, it has been fixed in https://github.com/tlecomte/friture/pull/242. You can get it by getting the latest from Github, or it will be included in the next binary release (0.50).