You are not logged in.

#1 2018-09-16 13:06:15

nicocot
Member
Registered: 2018-02-04
Posts: 7

Issue with Pywal (unsupported relocations)

Hi there,

I'm trying to use Pywal (python-pywal) to change i3's colors dynamically.

Unfortunately, I get the following errors:

wal -i ~/Images/Wallpapers/tropics_beach_palm_trees_sink_90647_2560x1080.jpg
[I] image: Using image tropics_beach_palm_trees_sink_90647_2560x1080.jpg.
[I] colors: Generating a colorscheme.
[I] colors: Using wal backend.
Error: 4 unsupported relocations
Error: 4 unsupported relocations
Error: 4 unsupported relocations
Error: 4 unsupported relocations
Error: 4 unsupported relocations
Traceback (most recent call last):
  File "/usr/bin/wal", line 11, in <module>
    load_entry_point('pywal==3.1.0', 'console_scripts', 'wal')()
  File "/usr/lib/python3.7/site-packages/pywal/__main__.py", line 198, in main
    parse_args(parser)
  File "/usr/lib/python3.7/site-packages/pywal/__main__.py", line 154, in parse_args
    sat=args.saturate)
  File "/usr/lib/python3.7/site-packages/pywal/colors.py", line 149, in get
    colors = getattr(backend, "get")(img, light)
  File "/usr/lib/python3.7/site-packages/pywal/backends/wal.py", line 77, in get
    colors = gen_colors(img)
  File "/usr/lib/python3.7/site-packages/pywal/backends/wal.py", line 38, in gen_colors
    raw_colors = imagemagick(20, img, has_im())
  File "/usr/lib/python3.7/site-packages/pywal/backends/wal.py", line 19, in imagemagick
    return subprocess.check_output([*magick_command, img, *flags]).splitlines()
  File "/usr/lib/python3.7/subprocess.py", line 376, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.7/subprocess.py", line 468, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['magick', 'convert', '~/Images/Wallpapers/tropics_beach_palm_trees_sink_90647_2560x1080.jpg[0]', '-resize', '25%', '-colors', '20', '-unique-colors', 'txt:-']' 

Could anyone help me with that?

Many thanks,

Offline

#2 2018-09-16 22:42:38

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 415

Re: Issue with Pywal (unsupported relocations)

subprocess.CalledProcessError: Command '['magick', 'convert', '~/Images/Wallpapers/tropics_beach_palm_trees_sink_90647_2560x1080.jpg[0]', '-resize', '25%', '-colors', '20', '-unique-colors', 'txt:-']' 

Is imagemagick installed? Try running that subprocess command manually to see what magick return as error?

Offline

#3 2018-09-17 18:58:21

nicocot
Member
Registered: 2018-02-04
Posts: 7

Re: Issue with Pywal (unsupported relocations)

twelveeighty wrote:
subprocess.CalledProcessError: Command '['magick', 'convert', '~/Images/Wallpapers/tropics_beach_palm_trees_sink_90647_2560x1080.jpg[0]', '-resize', '25%', '-colors', '20', '-unique-colors', 'txt:-']' 

Is imagemagick installed? Try running that subprocess command manually to see what magick return as error?

Hi twelveeighty,

Thanks for your message.

Yes, imagemagick 7.0.8.11-1 is installed on my machine.

I've tried to do what you said and I get:

magick convert ~/Images/Wallpapers/tropics_beach_palm_trees_sink_90647_2560x1080.jpg -resize 25% -colors 20 -unique-colors txt:-                                                            :(
Error: 4 unsupported relocations
Error: 4 unsupported relocations
Error: 4 unsupported relocations
Error: 4 unsupported relocations
Error: 4 unsupported relocations
[1]    2698 segmentation fault (core dumped)  magick convert  -resize 25% -colors 20 -unique-colors txt:-

Any idea?

Offline

#4 Yesterday 15:27:47

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 415

Re: Issue with Pywal (unsupported relocations)

Well, at least that narrows down the problem to either the image itself, or imagemagick, and not Pywal. Have you tried opening that image in a viewer? Is the image corrupted somehow? How about trying to run that command on a different image, do you get the same error?

Offline

#5 Yesterday 18:03:20

nicocot
Member
Registered: 2018-02-04
Posts: 7

Re: Issue with Pywal (unsupported relocations)

twelveeighty wrote:

Well, at least that narrows down the problem to either the image itself, or imagemagick, and not Pywal. Have you tried opening that image in a viewer? Is the image corrupted somehow? How about trying to run that command on a different image, do you get the same error?

Yes, unfortunately I get the same error whatever the image.  So, the issue seems to be with imagemagick.
Can it be this issue: https://github.com/Alexpux/MINGW-packages/issues/2995 ?

Offline

Board footer

Powered by FluxBB