dylanaraps / pywal

🎨 Generate and change color-schemes on the fly.
MIT License
8.42k stars 327 forks source link

Pywal errors #525

Open vaskark opened 4 years ago

vaskark commented 4 years ago

Latest git updates are producing this error:

  File "/usr/local/bin/wal", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/pywal/__main__.py", line 231, in main
    parse_args(parser)
  File "/usr/local/lib/python3.7/dist-packages/pywal/__main__.py", line 208, in parse_args
    export.every(colors_plain)
  File "/usr/local/lib/python3.7/dist-packages/pywal/export.py", line 121, in every
    template(colors, file.path, join(output_dir, file.name))
  File "/usr/local/lib/python3.7/dist-packages/pywal/export.py", line 60, in template
    new_color_clean = new_color.replace('[', '_').replace(']', '_')
AttributeError: 'float' object has no attribute 'replace'

Things I've noticed:

~/.cache/wal/colors not being generated ~/.cache/wal/colors-kitty.conf not being generated Polybar not reloading colors (Xresources) Some custom templates are being ignored (ex. rofi-dark)

Nitrogen:

nitrogen --set-zoom-fill is distorting some images when pywal is using it, but acts as expected when used by itself.

XenHat commented 4 years ago

I also have this error when running wal

ColeW-Picaro commented 4 years ago

Just got this error on master as well.

vaskark commented 4 years ago

Regarding nitrogen in my OP:

pywal 3.3.0 is using my default nitrogen setting --set-zoom-fill just fine. pywal 3.3.1 (latest git) seems to be using --set-scaled instead.

Just thought I'd clarify.