Skip to content

ImageColorizer throws an error - "min() arg is an empty sequence" #4

@AlNexus

Description

@AlNexus

So I tried running the command with python .local/bin/ImageColorizer ~/gravityfallscolorized.png ~/tokyonight.png -c ~/tokyonight and it threw out this weird error:

/bin/sh: line 1: colorer: command not found
Traceback (most recent call last):
  File "/home/archnexus/.local/bin/ImageColorizer", line 8, in <module>
    sys.exit(main())
  File "/home/archnexus/.local/lib/python3.10/site-packages/ImageColorizer/__main__.py", line 52, in main
    img_col.generate(args.input, args.output, show=args.show,
  File "/home/archnexus/.local/lib/python3.10/site-packages/ImageColorizer/ClassModule.py", line 129, in generate
    new_color = min(differences)[1]
ValueError: min() arg is an empty sequence

I don't know anything about Python and I don't know what could be causing this error. I also don't know much about Markdown so I apologized if this issue is malformatted.
Installed ImageColorizer using ./install.sh by the way
image

Here is what my colorscheme file looks like

color0 #414868
color1 #f7768e
color2 #73daca
color3 #e0af68
color4 #7aa2f7
color5 #bb9af7
color6 #7dcfff
color7 #c0caf5
color8 #414868
color9 #f7768e
color10 #73daca
color11 #e0af68
color12 #7aa2f7
color13 #bb9af7
color14 #7dcfff
color15 #c0caf5

Really appreciate your work on this tool!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions