shichao-an / soundmeter

Simple real-time sound meter
https://soundmeter.shichao.io
BSD 2-Clause "Simplified" License
82 stars 27 forks source link

No section named in config #28

Open TheUnriashol opened 5 years ago

TheUnriashol commented 5 years ago

Hi there, I am using your script for the first time and I have connected a USB webcam, when using alsa I can record from the mic without any issues but when I try using your script I get an error saying that there is an invalid number of channels. So I am trying to overwrite the config, I created the config file and added a section but I get the following error:

Traceback (most recent call last): File "/usr/local/bin/soundmeter", line 11, in load_entry_point('soundmeter==0.1.5', 'console_scripts', 'soundmeter')() File "/usr/local/lib/python2.7/dist-packages/soundmeter-0.1.5-py2.7.egg/soundmeter/meter.py", line 321, in main m = Meter(**kwargs) File "/usr/local/lib/python2.7/dist-packages/soundmeter-0.1.5-py2.7.egg/soundmeter/meter.py", line 56, in init self.config = Config(profile) File "/usr/local/lib/python2.7/dist-packages/soundmeter-0.1.5-py2.7.egg/soundmeter/settings.py", line 59, in init raise Exception('No section named "%s" in config' % section) Exception: No section named "test" in config

I added the config file in ~/.soundmeter/ but it doesn't work. Any idea why?