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

ModuleNotFoundError on start #232

Closed
devgioele opened this issue Aug 21, 2022 · 4 comments
Closed

ModuleNotFoundError on start #232

devgioele opened this issue Aug 21, 2022 · 4 comments

Comments

@devgioele
Copy link

devgioele commented Aug 21, 2022

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'
@kittybwained
Copy link

try installing pa-ringbuffer with pip install pa-ringbuffer

@devgioele
Copy link
Author

devgioele commented Oct 11, 2022

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'

@kittybwained
Copy link

try deleting all config files, looks like it's trying to load in a frequency that is a float, and should be an int

@tlecomte
Copy link
Owner

tlecomte commented May 5, 2024

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 #242. You can get it by getting the latest from Github, or it will be included in the next binary release (0.50).

@tlecomte tlecomte closed this as completed May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants