dharmx / vile

Waste of time. Smelly widgets feat. Spaghetti code. Built with eww-3.0.

Home Page:https://dharmx.is-a.dev/eww-powermenu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

playerctl.py : no attribute 'img_dark_bright_col'

J4ckTh3R1pper opened this issue · comments

I'm using your playerctl.py script for my own config, but when I play a music ,the script returns an error:

Traceback (most recent call last):
File "/home/u-han/.config/eww/u-han/scripts/playerctl.py", line 277, in
on_metadata(player, player.props.metadata)
File "/home/u-han/.config/eww/u-han/scripts/playerctl.py", line 87, in on_metadata
metadata |= get_bright_dark_from_cover(metadata["mpris:artUrl"])
File "/home/u-han/.config/eww/u-han/scripts/playerctl.py", line 244, in get_bright_dark_from_cover
colors = utils.img_dark_bright_col(image_path)
AttributeError: module 'utils' has no attribute 'img_dark_bright_col'

it seems I don't have the correct Python Package installed, could you provide the python package info?

commented

Hey, there!

The package used in the img_dark_bright_col seems to be Wand which should be mentioned in requirements.txt. You should not have any issue if you installed those packages.
Also, it looks like utils.py and playerctl.py are not on the same location.
Additionally, if you are wondering... I did not update my python packages even once.

Hey, there!

The package used in the img_dark_bright_col seems to be Wand which should be mentioned in requirements.txt. You should not have any issue if you installed those packages. Also, it looks like utils.py and playerctl.py are not on the same location. Additionally, if you are wondering... I did not update my python packages even once.

Thank you very much!I will check your files more carefully

commented

Ay, don't sweat it man. Happens to the best of us.

commented

Closing this ;)