pywal icon indicating copy to clipboard operation
pywal copied to clipboard

AttributeError

Open sleepntsheep opened this issue 4 years ago • 4 comments

➜ ~ wal -i Pictures/wall.jpg [I] image: Using image wall.jpg. [I] theme: Set theme to _home_sheep_Pictures_wall_jpg_dark_None_None_1.1.0.json. [I] colors: Found cached colorscheme. [I] wallpaper: Set the new wallpaper. [I] sequences: Set terminal colors.

Traceback (most recent call last): File "/usr/bin/wal", line 33, in sys.exit(load_entry_point('pywal==3.3.0', 'console_scripts', 'wal')()) File "/home/sheep/.local/lib/python3.10/site-packages/pywal/main.py", line 208, in main parse_args(parser) File "/home/sheep/.local/lib/python3.10/site-packages/pywal/main.py", line 185, in parse_args export.every(colors_plain) File "/home/sheep/.local/lib/python3.10/site-packages/pywal/export.py", line 68, in every template(colors, file.path, join(output_dir, file.name)) File "/home/sheep/.local/lib/python3.10/site-packages/pywal/export.py", line 15, in template template_data = "".join(template_data).format(**colors) AttributeError: 'Color' object has no attribute 'alpha_dec'. Did you mean: 'alpha_num'?

sleepntsheep avatar Dec 13 '21 12:12 sleepntsheep

I am also getting this for {background.red}. Do we have a fix for this?

UtkarshVerma avatar Feb 17 '22 05:02 UtkarshVerma

I am also getting this for {background.red}. Do we have a fix for this?

I'm getting the same here lol

RandomExplosion avatar Apr 18 '22 05:04 RandomExplosion

The source and docs both suggest that this should work.

RandomExplosion avatar Apr 18 '22 05:04 RandomExplosion

It seems that adding alpha_dec = "100" inside the Color class in util.py works for solving this issue. The alpha_dec format is missing from util.py

Null-Tillas avatar Jan 11 '24 03:01 Null-Tillas