FotoKilof icon indicating copy to clipboard operation
FotoKilof copied to clipboard

how to run on windows

Open ted423 opened this issue 3 years ago • 3 comments

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):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: image
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

ted423 avatar Feb 24 '22 02:02 ted423

Same issue.

Asinin3 avatar Jun 05 '22 04:06 Asinin3

Can confirm on Windows 11 too

ThomasRettig avatar Jun 05 '22 05:06 ThomasRettig

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

TeaM-TL avatar Jun 05 '22 12:06 TeaM-TL

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")

Hyiker avatar Sep 27 '22 05:09 Hyiker

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

TeaM-TL avatar Sep 27 '22 11:09 TeaM-TL

fixed in 3.8.5

TeaM-TL avatar Sep 27 '22 13:09 TeaM-TL

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

niceslimenotbad avatar Dec 04 '22 15:12 niceslimenotbad

did you use: python -m pip install pywin32 fotokilof

pywin32 has to be installed

TeaM-TL avatar Dec 05 '22 10:12 TeaM-TL

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

TeaM-TL avatar Dec 10 '22 23:12 TeaM-TL