kcc icon indicating copy to clipboard operation
kcc copied to clipboard

One of workers crashed. Cause: 'float' object cannot be interpreted as an integer

Open apa-u opened this issue 2 years ago • 1 comments

Hi, Iḿ trying to convert my mangas to MOBI however im having issues that some of the codes are in float and not int. I've atached screenshot below for reference.

Traceback: File "/home/jpvergara/kcc/kindlecomicconverter/comic2ebook.py", line 563, in imgFileProcessing img.autocontrastImage() File "/home/jpvergara/kcc/kindlecomicconverter/image.py", line 261, in autocontrastImage self.image = ImageOps.autocontrast(Image.eval(self.image, lambda a: 255 * (a / 255.) ** gamma)) File "/usr/lib64/python3.10/site-packages/PIL/Image.py", line 3100, in eval return image.point(args[0]) File "/usr/lib64/python3.10/site-packages/PIL/Image.py", line 1676, in point return self._new(self.im.point(lut, mode))

apa-u avatar Jul 03 '22 22:07 apa-u

see

  • https://github.com/ciromattia/kcc/issues/406
  • https://github.com/ciromattia/kcc/pull/426

darodi avatar Jul 26 '22 17:07 darodi

see

* [Work-around to "RuntimeError... 'float' object cannot be interpreted as an integer during execution" for kcc-c2e.py powershell/CLI #406](https://github.com/ciromattia/kcc/issues/406)

* [Fix program to work with new dependency versions #426](https://github.com/ciromattia/kcc/pull/426)

I cannot fix this issue with KCC 5.5.2 flatpak version in Linux Mint 20.3. Anyway to use GUI or CLI perfectly on Linux Mint? Beta 5.5.3-6 for Linux users available somewhere? Under Windows and MacOS, KCC 5.5.3-6 Darodi work perfectly. I have difficulty finding path /app/lib/python3.10/... in the error dialog to edit code as suggested by Carleslc

Hope you could help me, Darodi! Thanks a lot!

image

hhtien1408 avatar Oct 17 '22 03:10 hhtien1408

@hhtien1408

I added an appImage and a docker it in this fork:

  • https://github.com/darodi/kcc/releases
  • https://github.com/darodi/kcc/pkgs/container/kcc | https://github.com/darodi/kcc#docker

Or just install from pypi or source

  • https://github.com/darodi/kcc#pypi
  • https://github.com/darodi/kcc#install-from-sources

I might add a flatpak generation if I find some time.

darodi avatar Nov 26 '22 09:11 darodi

Great works. Thanks for all!

hhtien1408 avatar Dec 03 '22 08:12 hhtien1408

sould be fixed in version 5.6.0 reopen if needed

darodi avatar Jan 22 '23 09:01 darodi