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

Error During Conversion For All CBZ Files | Mac OS #528

Closed
chenobies opened this issue May 28, 2023 · 16 comments · Fixed by #553 or #566
Closed

Error During Conversion For All CBZ Files | Mac OS #528

chenobies opened this issue May 28, 2023 · 16 comments · Fixed by #553 or #566

Comments

@chenobies
Copy link

Adding CBZ file > EPUB > Convert: "Error during conversion!" but no specific reason as to why

Toggled on for Kindle PW 11 + Manga Mode, All Files are under 500 MB. First time using the converter so any fixes?

@Sojiroh
Copy link

Sojiroh commented May 31, 2023

Adding CBZ file > EPUB > Convert: "Error during conversion!" but no specific reason as to why

Toggled on for Kindle PW 11 + Manga Mode, All Files are under 500 MB. First time using the converter so any fixes?

I was having the same problem on Windows, I fixed it by adding 7z to my PATH. I don't know if this applies for es Mac Os version

@sparkirat
Copy link

Adding CBZ file > EPUB > Convert: "Error during conversion!" but no specific reason as to why
Toggled on for Kindle PW 11 + Manga Mode, All Files are under 500 MB. First time using the converter so any fixes?

I was having the same problem on Windows, I fixed it by adding 7z to my PATH. I don't know if this applies for es Mac Os version

What is the path could you please tell me?

@Sojiroh
Copy link

Sojiroh commented Jun 9, 2023

@sparkirat Google "add 7z to path [Windows/mac]" depending on your OS. @chenobies can you provide a screenshot of KCC when you first open it?

I have the same problem on mac, when i first open it it doesn't give me any warning (unlike windows that warns me that7z is missing)
image

And this is after I try to convert a file to epub
image

@Sojiroh
Copy link

Sojiroh commented Jun 9, 2023

@Sojiroh can you try with latest version of kcc? 5.6.2 or if you feel brave running from source?

I tried 5.6.2 and it gives the same error. I tried the version posted on the "How to build M1" guide and it works perfectly
image

So maybe it's a arm compatibility issue?
Anyways i'm trying to build from source using those steps and will let you know if it works

@sparkirat
Copy link

@Sojiroh can you try with latest version of kcc? 5.6.2 or if you feel brave running from source?

I tried 5.6.2 and it gives the same error. I tried the version posted on the "How to build M1" guide and it works perfectly image

So maybe it's a arm compatibility issue? Anyways i'm trying to build from source using those steps and will let you know if it works

Hey it looks like you ver able to fix the issue can you post the link to the guide that helped you with this. Many thanks

@Sojiroh
Copy link

Sojiroh commented Jun 11, 2023

@Sojiroh can you try with latest version of kcc? 5.6.2 or if you feel brave running from source?

I tried 5.6.2 and it gives the same error. I tried the version posted on the "How to build M1" guide and it works perfectly
So maybe it's a arm compatibility issue? Anyways i'm trying to build from source using those steps and will let you know if it works

Hey it looks like you ver able to fix the issue can you post the link to the guide that helped you with this. Many thanks

@sparkirat darodi#4 (comment)

@sparkirat
Copy link

Are you able to run the python version straight from the repo to see if it generates an error? Otherwise, can you tell me the file structure of the cbz? Is it just images in the cbz or are their also folders or both? It will fail if their are mixed images and folders on the same folder level. It will also fail of another program was recently using the cbz.

How do I run the python version straight from the repo? there are many python files and also I don't know how to manually install it other than running the dmg appplication

@sparkirat
Copy link

@Sojiroh can you try with latest version of kcc? 5.6.2 or if you feel brave running from source?

I tried 5.6.2 and it gives the same error. I tried the version posted on the "How to build M1" guide and it works perfectly
So maybe it's a arm compatibility issue? Anyways i'm trying to build from source using those steps and will let you know if it works

Hey it looks like you ver able to fix the issue can you post the link to the guide that helped you with this. Many thanks

@sparkirat darodi#4 (comment)

I saw this guide it seems confusing I'm not sure how to use it

@axu2
Copy link
Collaborator

axu2 commented Jul 5, 2023

Can you test with extracting the file first using Unarchiver? Then use KCC with the extracted image folder?

Looks like Mac has trouble with RAR/CBR files

#553 fixes the unhelpful error message of none

Don't forget to

brew install p7zip

@maxthiel
Copy link

Hi,

I have the same issue on a M1 Mac, with 5.6.2.
I've tried with KCC installed via DMG or with Homebrew.
I did brew install p7zip and have it in my path.

I tried to unzip/re-zip the cbz just to check if the file was the issue but no luck.
When processing the extracted image, I end up with the correct epub.
Extracting the cbz directly with 7z in the terminal works without issue.

Thank you!

@axu2
Copy link
Collaborator

axu2 commented Jul 30, 2023

@maxthiel Can you try the dmg file provided in #565

https://github.com/axu2/kcc/actions/runs/5708082883

7z is in a different location on Apple Silicon vs normal Macs. But you probably didn't see that error message since errors are bugged in the release from 3 months ago.

Here's the install from source guide: https://github.com/ciromattia/kcc/wiki/Installation#install-from-sources

@maxthiel
Copy link

Thank you @axu2
I'm now getting an "Unsupported archive format" error.
kcc cbz

@axu2
Copy link
Collaborator

axu2 commented Jul 30, 2023

What happens when you run the exact command that KCC runs:

~~7z l -y -p1 "/Users/YOU/Downloads/manga.cbz"~~

Actually, try this: https://github.com/axu2/kcc/actions/runs/5708295759

It looks like the pre-included versions of 7z are being used and they are buggy on AS

@maxthiel
Copy link

Thanks for digging into this.

The 7zip command lists the files in the archive properly:

mt@computer Mangas % 7z l -y -p1 "manga.cbz" 

7-Zip [64] 17.05 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.05 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,10 CPUs LE)

Scanning the drive for archives:
1 file, 32199333 bytes (31 MiB)

Listing archive: manga..cbz

--
Path = manga.cbz
Type = zip
Physical Size = 32199333

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
2011-07-06 13:35:26 D....            0            0             Manga
2020-06-22 19:53:57 ....A       115671       109462  Manga/01_000.jpg
[...]

I get the same error with the version you've just posted.

@axu2
Copy link
Collaborator

axu2 commented Jul 30, 2023

OK, missed something, this one fixes it for sure: https://github.com/axu2/kcc/actions/runs/5709825357

I've removed the pre-included 7z binaries entirely so KCC will only look for homebrew installed 7z.

@maxthiel

I'll say that building from source is way faster running, GitHub is Rosetta only. But you'll need to merge in the apple silicon PR too

@maxthiel
Copy link

Thanks @axu2, this last version works!

  • I got the "KCC request access to your files" popup
  • The conversion worked as intended

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants