1

Wand needs the ImageMagick library to perform. When I do as they explain here my code works just fine on my computer.

However, when I freeze it with cx_freeze it misses the extra library. I don't know how to add that library to the zip. I know how to add .dll files into the folder, but I can't figure out which .dlls Wand needs. When I tried putting all the .dlls in the folder it ran but it couldn't convert images.

Update:

So I included CORE_RL_wand_*.dll and CORE_RL_magick_*.dll in the folder. Running it I gives me an error:

can't start because CORE_RL_bzlib_.dll is missing

I added that one and 20 others as it needed them. After that the app starts, but when I try to open and resize and covert an image, I get:

wand\resource.py line 223, wand.exception.MissingDelegateError: NoDecodeDelegateForThisImageFormat 'pathblah.jpg' @ error/constitute.c/ReadImage/552

I don't know how to get rid of this.

Bono
  • 4,757
  • 6
  • 48
  • 77
Kiarash
  • 7,378
  • 10
  • 44
  • 69

1 Answers1

1

You need to include CORE_RL_wand_*.dll and CORE_RL_magick_*.dll to the zip.

minhee
  • 5,688
  • 5
  • 43
  • 81
  • so I included those two dlls in the folder. running it I get an error, "can't start because CORE_RL_bzlib_.dll is missing" and I added that one and 20 others as it needed them. After that the app starts but when I try to open and resize and covert an image, I get "wand\resource.py line 223, wand.exception.MissingDelegateError: NoDecodeDelegateForThisImageFormat 'pathblah.jpg' @ error/constitute.c/ReadImage/552 – Kiarash Jun 22 '13 at 07:21
  • @Kiarash Try adding the entire modules directory as well. – minhee Jun 22 '13 at 08:06
  • I tried copying "modules" as a folder or copying all the content in the main folder, neither worked. – Kiarash Jun 22 '13 at 08:14
  • @Kiarash It might be, try that as well. – minhee Jun 22 '13 at 08:19
  • nope. it's not working. tried copying all xml files as well as "lib" and "include" folders. how can we get a more descriptive error ? – Kiarash Jun 22 '13 at 08:23
  • can I changed the Wand code locally to get more descriptive errors? – Kiarash Jun 22 '13 at 11:46