Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
apa-u opened this issue Jul 3, 2022 · 5 comments
Labels
Duplicate This issue or pull request already exists

Comments

@apa-u
Copy link

apa-u commented Jul 3, 2022

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

@hhtien1408
Copy link

hhtien1408 commented Oct 17, 2022

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

@darodi
Copy link
Collaborator

darodi commented Nov 26, 2022

@hhtien1408

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

Or just install from pypi or source

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

@darodi darodi mentioned this issue Nov 26, 2022
@hhtien1408
Copy link

Great works. Thanks for all!

@darodi darodi added the Duplicate This issue or pull request already exists label Jan 14, 2023
@darodi
Copy link
Collaborator

darodi commented Jan 22, 2023

sould be fixed in version 5.6.0
reopen if needed

@darodi darodi closed this as completed Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants