theRealCarneiro / pulsemeeter

Replicating voicemeeter routing functionalities in linux with pulseaudio
MIT License
390 stars 20 forks source link

Upon clicking settings button: 'str' object cannot be interpreted as an integer #111

Closed n1trux closed 1 year ago

n1trux commented 1 year ago

Describe the bug You click the settings/edit button (wrench icon with rectangle in the background) on any of the hardware inputs or outputs and the following error message appears:

[DEBUG] in [audio_server@save_config]: writing config
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pulsemeeter/interface/popovers/device_creation.py", line 137, in edit_popup
    self.create_port_list()
  File "/usr/lib/python3.10/site-packages/pulsemeeter/interface/popovers/device_creation.py", line 96, in create_port_list
    for port in range(device_ports):
TypeError: 'str' object cannot be interpreted as an integer

To Reproduce Steps to reproduce the behavior:

Click on any of those buttons: image

Expected behavior The settings window should open instead of the error appearing.

Desktop (please complete the following information):

n1trux commented 1 year ago

After deleting ~/.config/pulsemeeter and recreating the settings.json it works again. Maybe the config parsing code needs to be a bit more robust?