TeaM-TL/FotoKilof

UnboundLocalError: local variable 'result' referenced before assignment (MacOs)

frinsen opened this issue · 3 comments

I am running MacOs

tried:

  1. python3 -m pip install fotokilof
  2. fotokilof

Result:

Traceback (most recent call last):
File "/opt/homebrew/bin/fotokilof", line 5, in
from src import main
File "/opt/homebrew/lib/python3.10/site-packages/src/main.py", line 2371, in
GM_or_IM_data = magick.check_magick()
File "/opt/homebrew/lib/python3.10/site-packages/src/magick.py", line 227, in check_magick
if check_imagemagick(suffix) is not None:
File "/opt/homebrew/lib/python3.10/site-packages/src/magick.py", line 268, in check_imagemagick
return result
UnboundLocalError: local variable 'result' referenced before assignment

Hi
Thanks for bug report. Now I have continuous access to macos and i will solve it in next days

fixed in 3.8.4, I hope that tomorrow I will be able to publish it.
But if you encounter this error it means that you did not install imagemagick, or imagemagics is not in PATH. Please check it

re-adding imagemagick to the path did the job :)