TeaM-TL / FotoKilof

GUI for ImageMagick and Wand
MIT License
306 stars 17 forks source link

how to run on windows #118

Closed ted423 closed 2 years ago

ted423 commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

python -m pip install FotoKilof-3.8.3-py3-none-any.whl
Processing e:\downloads\fotokilof-3.8.3-py3-none-any.whl
Requirement already satisfied: tkcolorpicker in d:\dropbox\sync programs\mediatool\x264_launcher\extra\vapoursynth-64\lib\site-packages (from FotoKilof==3.8.3) (2.1.3)
Requirement already satisfied: pillow in d:\dropbox\sync programs\mediatool\x264_launcher\extra\vapoursynth-64\lib\site-packages (from FotoKilof==3.8.3) (8.3.1)
FotoKilof is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.

the path is already add

after run fotokilof ,no window come out ,and no keep in task manager

windows 10

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

Asinin3 commented 2 years ago

Same issue.

ThomasRettig commented 2 years ago

Can confirm on Windows 11 too

TeaM-TL commented 2 years ago

Thank you for info. Currently I have no access to Windows 11 to check it. As I see you forgot to install pywin32 as described here, it is neccessary under Windows, try python -m pip install pywin32 fotokilof

Hyiker commented 2 years ago

I encountered the same problem. By debugging the source code, I figured it out that this problem is probably due to non-utf8 system encoding instead of Windows 11. The error log was like:

C:\Users\xxx\AppData\Local\Temp\fotokilof_carbene_fonts_list
Traceback (most recent call last):
  File "C:\Users\xxx\Projects\FotoKilof\src\fotokilof.py", line 2381, in <module>
    img_text_font_dict = fonts()    # Reading available fonts
  File "C:\Users\xxx\Projects\FotoKilof\src\fotokilof.py", line 610, in fonts
    result = magick.get_fonts_dict(GM_or_IM)
  File "C:\Users\xxx\Projects\FotoKilof\src\magick.py", line 163, in get_fonts_dict
    for line in file:
UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 6025: illegal multibyte sequence

And it can be solved simply by specifying the encoding utf-8(src/magick.src, line 148):

file = open(file_font, "r", encoding="utf-8")
TeaM-TL commented 2 years ago

Thanks a lot for hint with encoding. I will update it today, we will see ;-)

TeaM-TL commented 2 years ago

fixed in 3.8.5

niceslimenotbad commented 2 years ago

bug repeats again. fotokilof command does not open a window in windows 11

TeaM-TL commented 2 years ago

did you use\: python -m pip install pywin32 fotokilof

pywin32 has to be installed

TeaM-TL commented 1 year ago

try latest version 4.0.0 install: python -m pip install pywin32 wand fotokilof during install ImageMagick, enable libraries! and add to path