gmdfalk / blockify

mute spotify adverts on linux
MIT License
354 stars 42 forks source link

Permanent mute #8

Closed juk47ht closed 10 years ago

juk47ht commented 10 years ago

After an ad is muted successfully, if a song comes up, muting still continues till I manually unmute my system. I'm using GUI (mute tracks and auto add tracks are checked), but problem persist on the normal blockify as well. Is there anyway to fix this?

Great piece of software by the way. Thanks.

System: Ubuntu 14.04

gmdfalk commented 10 years ago

hey there,

i'm rewriting parts of blockify this weekend. Maybe i can fix your issue.

Regards

gmdfalk commented 10 years ago

GUI has changed a lot. Thus, i'm closing this issue, hoping it's resolved.

juk47ht commented 10 years ago

Unfortunately, neither blockify not UI is working on Ubuntu 14.04. When I run UI, my mouse first turns into a plus sign, and when I click several times, it gives this following error:

import.im6: unable to open image blockify': Is a directory @ error/blob.c/OpenBlob/2638. /home/***/blockify-0.7/blockify/blockify_ui.py: line 9: syntax error near unexpected token(' /home/***/blockify-0.7/blockify/blockify_ui.py: line 9: `class Notepad(gtk.Window):'

And save couple of screenshots of my terminal (file names are: glib, gtk, and os) in home folder. Any ideas?

gmdfalk commented 10 years ago

That sounds a lot like you are not using python to run the file but instead some sort of shell. Because import is being treated as imagemagick's import. I removed the shebang from the top of the file but please try starting blockify with either python blockify.py or install it (with pip install .) and then use /usr/bin/blockify (or wherever the binary goes in Ubuntu).

Cheers On 28/04/14 22:01, hu475 wrote:

Unfortunately, neither blockify not UI is working on Ubuntu 14.04. When I run UI, my mouse first turns into a plus sign, and when I click several times, it gives this following error:

import.im6: unable to open image blockify': Is a directory @ error/blob.c/OpenBlob/2638. /home/***/blockify-0.7/blockify/blockify_ui.py: line 9: syntax error near unexpected token(' /home/***/blockify-0.7/blockify/blockify_ui.py: line 9: `class Notepad(gtk.Window):'

And save couple of screenshots of my terminal in home folder. Any ideas?


Reply to this email directly or view it on GitHub: https://github.com/mikar/blockify/issues/8#issuecomment-41605932

juk47ht commented 10 years ago

Thank you for the helpful comment. Now, it gives me this error:

Traceback (most recent call last): File "/home/***/blockify-master/blockify/blockify.py", line 22, in from docopt import docopt ImportError: No module named docopt

I reinstalled pip but still same error.

If I use the script in bin folder, it gives me this:

Traceback (most recent call last): File "/usr/local/bin/blockify-ui", line 9, in load_entry_point('blockify==0.8', 'gui_scripts', 'blockify-ui')() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/usr/local/lib/python2.7/dist-packages/blockify/blockify_ui.py", line 9, in import blockify File "/usr/local/lib/python2.7/dist-packages/blockify/blockify.py", line 22, in from docopt import docopt ImportError: No module named docopt

gmdfalk commented 10 years ago

That's because one of the modules blockify needs is docopt. I made docopt optional for the GUI now though, it should work even without docopt. If it doesn't work, you'll have to install docopt with pip install docopt. Cheers

On 28/04/14 22:39, hu475 wrote:

Thank you for the helpful comment. Now, it gives me this error:

Traceback (most recent call last): File "/home/***/blockify-master/blockify/blockify.py", line 22, in from docopt import docopt ImportError: No module named docopt

I reinstalled pip but still same error.

If I use the script in bin folder, it gives me this:

Traceback (most recent call last): File "/usr/local/bin/blockify-ui", line 9, in load_entry_point('blockify==0.8', 'gui_scripts', 'blockify-ui')() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/usr/local/lib/python2.7/dist-packages/blockify/blockify_ui.py", line 9, in import blockify File "/usr/local/lib/python2.7/dist-packages/blockify/blockify.py", line 22, in from docopt import docopt ImportError: No module named docopt


Reply to this email directly or view it on GitHub: https://github.com/mikar/blockify/issues/8#issuecomment-41610464

juk47ht commented 10 years ago

Well, thanks. I was able to open it this time, however my original problem still persists: permanent mute. I wonder if it's because of Ubuntu or me.

gmdfalk commented 10 years ago

i am guessing ubuntu used pulseaudio instead of alsa which might result in some sort of conflict. i was planning to add support for pulseaudio anyway, so i guess i'll look into that later.

meanwhile, if you're so inclined, you could try installing docopt, start blockify (the cli, not the gui) with python blockify.py -vvv and see if it spits out any errors. without any more information i can only guess what the real issue is here.

cheers!

juk47ht commented 10 years ago

Here you go.

$ python /home/blockify-master/blockify/blockify.py -vvv 2014-04-28 22:30:35 DEBUG Added logging console handler. 2014-04-28 22:30:35 INFO Loglevel is 10. 2014-04-28 22:30:35 DEBUG Loading blockfile from /home/.blockify_list. 2014-04-28 22:30:35 INFO Blockify started. 2014-04-28 22:30:35 INFO Unmuting. 2014-04-28 22:46:33 INFO Muting Spotify – Start following people on Spotify. 2014-04-28 22:47:10 INFO Unmuting.

After a song came up and I had to manually unmute the system. Thanks for the efforts.

gmdfalk commented 10 years ago

Thanks, that's useful. It means only the unmute part doesn't work, i'll look into that.

Cheers

On 28/04/14 23:46, hu475 wrote:

Here you go.

ck@ck-linux:~$ python /home/ck/blockify-master/blockify/blockify.py -vvv 2014-04-28 22:30:35 DEBUG Added logging console handler. 2014-04-28 22:30:35 INFO Loglevel is 10. 2014-04-28 22:30:35 DEBUG Loading blockfile from /home/ck/.blockify_list. 2014-04-28 22:30:35 INFO Blockify started. 2014-04-28 22:30:35 INFO Unmuting. 2014-04-28 22:46:33 INFO Muting Spotify – Start following people on Spotify. 2014-04-28 22:47:10 INFO Unmuting.

After a song came up and I had to manually unmute the system.


Reply to this email directly or view it on GitHub: https://github.com/mikar/blockify/issues/8#issuecomment-41617828

gmdfalk commented 10 years ago

Comment or delete line 124: "if self.muted:" and see if that solves this issue. I'd also be interested in the output of "amixer". Thanks!

On 28/04/14 23:46, hu475 wrote:

Here you go.

ck@ck-linux:~$ python /home/ck/blockify-master/blockify/blockify.py -vvv 2014-04-28 22:30:35 DEBUG Added logging console handler. 2014-04-28 22:30:35 INFO Loglevel is 10. 2014-04-28 22:30:35 DEBUG Loading blockfile from /home/ck/.blockify_list. 2014-04-28 22:30:35 INFO Blockify started. 2014-04-28 22:30:35 INFO Unmuting. 2014-04-28 22:46:33 INFO Muting Spotify – Start following people on Spotify. 2014-04-28 22:47:10 INFO Unmuting.

After a song came up and I had to manually unmute the system.


Reply to this email directly or view it on GitHub: https://github.com/mikar/blockify/issues/8#issuecomment-41617828

juk47ht commented 10 years ago

I commented the line 122, "if.self.muted:", but didn't solve it. At the same time, this happens in terminal, goes on like forever:

2014-04-28 23:44:57 INFO Unmuting. 2014-04-28 23:44:58 INFO Unmuting. 2014-04-28 23:44:59 INFO Unmuting. 2014-04-28 23:45:00 INFO Unmuting. 2014-04-28 23:45:01 INFO Unmuting. 2014-04-28 23:45:02 INFO Unmuting. 2014-04-28 23:45:03 INFO Unmuting. 2014-04-28 23:45:04 INFO Unmuting. 2014-04-28 23:45:05 INFO Unmuting. 2014-04-28 23:45:06 INFO Unmuting. 2014-04-28 23:45:07 INFO Unmuting. 2014-04-28 23:45:08 INFO Unmuting. 2014-04-28 23:45:09 INFO Unmuting. 2014-04-28 23:45:10 INFO Unmuting. 2014-04-28 23:45:11 INFO Unmuting. 2014-04-28 23:45:12 INFO Unmuting. 2014-04-28 23:45:13 INFO Unmuting. 2014-04-28 23:45:14 INFO Unmuting.

this is amixer:

Simple mixer control 'Master',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 64 Mono: Playback 41 [64%] [-23.00dB] [on] Simple mixer control 'Headphone',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 64 Mono: Front Left: Playback 64 [100%] [0.00dB] [on] Front Right: Playback 64 [100%] [0.00dB] [on] Simple mixer control 'Speaker',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 64 Mono: Front Left: Playback 64 [100%] [0.00dB] [on] Front Right: Playback 64 [100%] [0.00dB] [on] Simple mixer control 'PCM',0 Capabilities: pvolume Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono: Front Left: Playback 253 [99%] [-0.40dB] Front Right: Playback 253 [99%] [-0.40dB] Simple mixer control 'Mic Boost',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 2 Front Left: 0 [0%] [0.00dB] Front Right: 0 [0%] [0.00dB] Simple mixer control 'Beep',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 12 Mono: Front Left: Playback 0 [0%] [-24.00dB] [off] Front Right: Playback 0 [0%] [-24.00dB] [off] Simple mixer control 'Capture',0 Capabilities: cvolume cswitch Capture channels: Front Left - Front Right Limits: Capture 0 - 31 Front Left: Capture 10 [32%] [-1.50dB] [on] Front Right: Capture 10 [32%] [-1.50dB] [on] Simple mixer control 'Auto-Mute Mode',0 Capabilities: enum Items: 'Disabled' 'Enabled' Item0: 'Enabled' Simple mixer control 'Internal Mic Boost',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 2 Front Left: 2 [100%] [40.00dB] Front Right: 2 [100%] [40.00dB]

Happy to help.

gmdfalk commented 10 years ago

I'm working on a pulseaudio mute_option right now, I'm hoping that will do the trick. And yeah, you can add back the if self.muted: line.

On 29/04/14 00:46, hu475 wrote:

I commented the line 122, "if.self.muted:", but didn't solve it. At the same time, this happens in terminal, goes on like forever:

2014-04-28 23:44:57 INFO Unmuting. 2014-04-28 23:44:58 INFO Unmuting. 2014-04-28 23:44:59 INFO Unmuting. 2014-04-28 23:45:00 INFO Unmuting. 2014-04-28 23:45:01 INFO Unmuting. 2014-04-28 23:45:02 INFO Unmuting. 2014-04-28 23:45:03 INFO Unmuting. 2014-04-28 23:45:04 INFO Unmuting. 2014-04-28 23:45:05 INFO Unmuting. 2014-04-28 23:45:06 INFO Unmuting. 2014-04-28 23:45:07 INFO Unmuting. 2014-04-28 23:45:08 INFO Unmuting. 2014-04-28 23:45:09 INFO Unmuting. 2014-04-28 23:45:10 INFO Unmuting. 2014-04-28 23:45:11 INFO Unmuting. 2014-04-28 23:45:12 INFO Unmuting. 2014-04-28 23:45:13 INFO Unmuting. 2014-04-28 23:45:14 INFO Unmuting.

this is amixer:

Simple mixer control 'Master',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 64 Mono: Playback 41 [64%] [-23.00dB] [on] Simple mixer control 'Headphone',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 64 Mono: Front Left: Playback 64 [100%] [0.00dB] [on] Front Right: Playback 64 [100%] [0.00dB] [on] Simple mixer control 'Speaker',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 64 Mono: Front Left: Playback 64 [100%] [0.00dB] [on] Front Right: Playback 64 [100%] [0.00dB] [on] Simple mixer control 'PCM',0 Capabilities: pvolume Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono: Front Left: Playback 253 [99%] [-0.40dB] Front Right: Playback 253 [99%] [-0.40dB] Simple mixer control 'Mic Boost',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 2 Front Left: 0 [0%] [0.00dB] Front Right: 0 [0%] [0.00dB] Simple mixer control 'Beep',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 12 Mono: Front Left: Playback 0 [0%] [-24.00dB] [off] Front Right: Playback 0 [0%] [-24.00dB] [off] Simple mixer control 'Capture',0 Capabilities: cvolume cswitch Capture channels: Front Left - Front Right Limits: Capture 0 - 31 Front Left: Capture 10 [32%] [-1.50dB] [on] Front Right: Capture 10 [32%] [-1.50dB] [on] Simple mixer control 'Auto-Mute Mode',0 Capabilities: enum Items: 'Disabled' 'Enabled' Item0: 'Enabled' Simple mixer control 'Internal Mic Boost',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 2 Front Left: 2 [100%] [40.00dB] Front Right: 2 [100%] [40.00dB]

Happy to help.


Reply to this email directly or view it on GitHub: https://github.com/mikar/blockify/issues/8#issuecomment-41623691

gmdfalk commented 10 years ago

Thanks, if you're up for it you could try the new update i just pushed. It includes a pulseaudio mute version which i cannot test myself.

On 29/04/14 00:46, hu475 wrote:

I commented the line 122, "if.self.muted:", but didn't solve it. At the same time, this happens in terminal, goes on like forever:

2014-04-28 23:44:57 INFO Unmuting. 2014-04-28 23:44:58 INFO Unmuting. 2014-04-28 23:44:59 INFO Unmuting. 2014-04-28 23:45:00 INFO Unmuting. 2014-04-28 23:45:01 INFO Unmuting. 2014-04-28 23:45:02 INFO Unmuting. 2014-04-28 23:45:03 INFO Unmuting. 2014-04-28 23:45:04 INFO Unmuting. 2014-04-28 23:45:05 INFO Unmuting. 2014-04-28 23:45:06 INFO Unmuting. 2014-04-28 23:45:07 INFO Unmuting. 2014-04-28 23:45:08 INFO Unmuting. 2014-04-28 23:45:09 INFO Unmuting. 2014-04-28 23:45:10 INFO Unmuting. 2014-04-28 23:45:11 INFO Unmuting. 2014-04-28 23:45:12 INFO Unmuting. 2014-04-28 23:45:13 INFO Unmuting. 2014-04-28 23:45:14 INFO Unmuting.

this is amixer:

Simple mixer control 'Master',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 64 Mono: Playback 41 [64%] [-23.00dB] [on] Simple mixer control 'Headphone',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 64 Mono: Front Left: Playback 64 [100%] [0.00dB] [on] Front Right: Playback 64 [100%] [0.00dB] [on] Simple mixer control 'Speaker',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 64 Mono: Front Left: Playback 64 [100%] [0.00dB] [on] Front Right: Playback 64 [100%] [0.00dB] [on] Simple mixer control 'PCM',0 Capabilities: pvolume Playback channels: Front Left - Front Right Limits: Playback 0 - 255 Mono: Front Left: Playback 253 [99%] [-0.40dB] Front Right: Playback 253 [99%] [-0.40dB] Simple mixer control 'Mic Boost',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 2 Front Left: 0 [0%] [0.00dB] Front Right: 0 [0%] [0.00dB] Simple mixer control 'Beep',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 12 Mono: Front Left: Playback 0 [0%] [-24.00dB] [off] Front Right: Playback 0 [0%] [-24.00dB] [off] Simple mixer control 'Capture',0 Capabilities: cvolume cswitch Capture channels: Front Left - Front Right Limits: Capture 0 - 31 Front Left: Capture 10 [32%] [-1.50dB] [on] Front Right: Capture 10 [32%] [-1.50dB] [on] Simple mixer control 'Auto-Mute Mode',0 Capabilities: enum Items: 'Disabled' 'Enabled' Item0: 'Enabled' Simple mixer control 'Internal Mic Boost',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 2 Front Left: 2 [100%] [40.00dB] Front Right: 2 [100%] [40.00dB]

Happy to help.


Reply to this email directly or view it on GitHub: https://github.com/mikar/blockify/issues/8#issuecomment-41623691

rfariasc commented 10 years ago

Hey! i had the same issue, so i googled a while and solved it with this:

subprocess.Popen(["amixer", "-D", "pulse" , "set", channel, state])

hope it helps!

juk47ht commented 10 years ago

I can confirm that the current version of Blockify works flawlessly in Ubuntu 14.04. Thank you mikar.

gmdfalk commented 10 years ago

Happy to do it. The positive side effect is that with PulseAudio blockify will now only mute the Spotify sink instead of all system sound.

On 29/04/14 09:58, hu475 wrote:

I can confirm that the current version of Blockify works flawlessly in Ubuntu 14.04. Thank you mikar.


Reply to this email directly or view it on GitHub: https://github.com/mikar/blockify/issues/8#issuecomment-41650264

Dan-cer commented 9 years ago

Hi, mikar! I installed blockify with this code from https://github.com/mikar/blockify#direct-pipsetuppy: sudo apt-get install python-pip python-wnck sudo pip install http://github.com/mikar/blockify/archive/v1.7.2.zip

Create optional desktop icon

echo -e '[Desktop Entry]\nName=Blockify\nComment=Blocks Spotify commercials\nExec=blockify-ui\nIcon='$(python -c 'import pkg_resources; print pkg_resources.resource_filename("blockify", "data/icon-red-512.png")')'\nType=Application\nCategories=AudioVideo' | sudo tee /usr/share/applications/blockify.desktop

But it doesn't start. Starting with terminal:

No handlers could be found for logger "dbus" Traceback (most recent call last): File "/usr/local/bin/blockify", line 9, in load_entry_point('blockify==1.7.2', 'console_scripts', 'blockify')() File "/usr/local/lib/python2.7/dist-packages/blockify/blockify.py", line 382, in main blockify = initialize() File "/usr/local/lib/python2.7/dist-packages/blockify/blockify.py", line 375, in initialize blockify = Blockify(blocklist.Blocklist()) File "/usr/local/lib/python2.7/dist-packages/blockify/blockify.py", line 63, in init import interludeplayer File "/usr/local/lib/python2.7/dist-packages/blockify/interludeplayer.py", line 7, in import gst ImportError: No module named gst

any suggestions? thank you for your answer - and for the program!

gmdfalk commented 9 years ago

You're missing gstreamer plugins. See if sudo apt-get install gstreamer-0.10 fixes it for you.

Dan-cer commented 9 years ago

I installed that and got only this: rainer@rainer-desktop:~$ blockify No handlers could be found for logger "dbus" Traceback (most recent call last): File "/usr/local/bin/blockify", line 9, in load_entry_point('blockify==1.7.2', 'console_scripts', 'blockify')() File "/usr/local/lib/python2.7/dist-packages/blockify/blockify.py", line 382, in main blockify = initialize() File "/usr/local/lib/python2.7/dist-packages/blockify/blockify.py", line 375, in initialize blockify = Blockify(blocklist.Blocklist()) File "/usr/local/lib/python2.7/dist-packages/blockify/blockify.py", line 63, in init import interludeplayer File "/usr/local/lib/python2.7/dist-packages/blockify/interludeplayer.py", line 7, in import gst ImportError: No module named gst

gmdfalk commented 9 years ago

sudo apt-get install python-gst0.10

For your next time, please consider this:

You posted your problem in a completely unrelated issue tab. This is a very simple problem, one most web search engines should give you a solution for.

On 25.01.2015 21:15, Dan-cer wrote:

I installed that and got only this: rainer@rainer-desktop:~$ blockify No handlers could be found for logger "dbus" Traceback (most recent call last): File "/usr/local/bin/blockify", line 9, in load_entry_point('blockify==1.7.2', 'console_scripts', 'blockify')() File "/usr/local/lib/python2.7/dist-packages/blockify/blockify.py", line 382, in main blockify = initialize() File "/usr/local/lib/python2.7/dist-packages/blockify/blockify.py", line 375, in initialize blockify = Blockify(blocklist.Blocklist()) File "/usr/local/lib/python2.7/dist-packages/blockify/blockify.py", line 63, in init import interludeplayer File "/usr/local/lib/python2.7/dist-packages/blockify/interludeplayer.py", line 7, in import gst ImportError: No module named gst

— Reply to this email directly or view it on GitHub https://github.com/mikar/blockify/issues/8#issuecomment-71390537.

Dan-cer commented 9 years ago

Thank you, mikar! That solved it.

Dan-cer commented 9 years ago

Hi mikar! After upgrading Ubuntu to 15.04 and new installing Blockify I got this:

rainer@rainer-pc:~/blockify$ blockify
No handlers could be found for logger "util"
2015-05-22 22:52:00 ERROR    util     Could not parse option autodetect for section general. Using default value.
2015-05-22 22:52:00 ERROR    util     Could not parse option automute for section general. Using default value.
2015-05-22 22:52:00 ERROR    util     Could not parse option substring_search for section general. Using default value.
2015-05-22 22:52:00 ERROR    util     Could not parse option pacmd_muted_value for section general. Using default value.
2015-05-22 22:52:00 ERROR    util     Could not parse option update_interval for section cli. Using default value.
2015-05-22 22:52:00 ERROR    util     Could not parse option unmute_delay for section cli. Using default value.
2015-05-22 22:52:00 ERROR    util     Could not parse option use_cover_art for section gui. Using default value.
2015-05-22 22:52:00 ERROR    util     Could not parse option autohide_cover for section gui. Using default value.
2015-05-22 22:52:00 ERROR    util     Could not parse option update_interval for section gui. Using default value.
2015-05-22 22:52:00 ERROR    util     Could not parse option unmute_delay for section gui. Using default value.
2015-05-22 22:52:00 ERROR    util     Could not parse option use_interlude_music for section interlude. Using default value.
2015-05-22 22:52:00 ERROR    util     Could not parse option start_shuffled for section interlude. Using default value.
2015-05-22 22:52:00 ERROR    util     Could not parse option autoresume for section interlude. Using default value.
2015-05-22 22:52:00 ERROR    util     Could not parse option radio_timeout for section interlude. Using default value.
2015-05-22 22:52:00 ERROR    util     Could not parse option playback_delay for section interlude. Using default value.
2015-05-22 22:52:00 ERROR    util     Could not parse option playlist for section interlude. Using default value.
amixer: Mixer attach default error: No such file or directory
Traceback (most recent call last):
  File "/usr/local/bin/blockify", line 9, in <module>
    load_entry_point('blockify==1.8.6', 'console_scripts', 'blockify')()
  File "/usr/local/lib/python2.7/dist-packages/blockify/blockify.py", line 452, in main
    blockify = initialize()
  File "/usr/local/lib/python2.7/dist-packages/blockify/blockify.py", line 445, in initialize
    blockify = Blockify(blocklist.Blocklist())
  File "/usr/local/lib/python2.7/dist-packages/blockify/blockify.py", line 56, in __init__
    self.channels = self.init_channels()
  File "/usr/local/lib/python2.7/dist-packages/blockify/blockify.py", line 101, in init_channels
    amixer_output = subprocess.check_output("amixer")
  File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'amixer' returned non-zero exit status 1

I'm sorry can't solve that problem. Can You give me advice again zu solve it? Thank You very much!

gmdfalk commented 9 years ago

Hi,

sounds like a configuration issue with your default sound card. I don't know how to solve that but you could start by googling amixer: Mixer attach default error: No such file or directory.

Dan-cer commented 9 years ago

Today I got the solution of this problem. Blockify is running now as before! I had to write a new /etc/asound.conf.