That’s normal. And it’s not an issue, I’ve just checked.
That’s not the issue either, I’ve just checked
by changing the image type to png from jpeg
by renaming the files “Img_1.png” and not only 0001.png
Can you check if you don’t have hidden files in the zip ? Unzip your processed file, move to the folder (it should contain the html file, the mokuro file and the raw image folder) and either press down Command+Shift+ . (period key) or, in terminal, type
(to go back to hidden files, just type the same, but change true to false)
Do you have hidden (greyed out) files, usually named .DS_STORE and __MACOSX ?
As I told you, I used to have them all the time, and they caused problem, but it seems they no longer appear, and I’m guessing it might have to do with your OS version…
Also, can you try in Safari on Mac (not iOS) to load not the zipped file, but a folder, like this (same process as a zip file, but with “choose directory”) ?
Indeed there “was/is” an issue with said __MACOSX folder.
You had mentioned it before so I was aware of it.
I did get an error due to __MACOSX when attempting to mokuro ocr process without realizing at the time that macos had created a __MACOSX for the images.
The error occurred when I converted images from png → jpg. I did not realized that macos has hidden the __MACOSX!
Was forced to delete entire folder/images and start again with new manga/img and keep to png extension.
error: __MACOSX/TheBlackMagicOfLamia/._IMG_0519.jpeg.
raise InvalidImage()
└ <class 'mokuro.manga_page_ocr.InvalidImage'>
mokuro.manga_page_ocr.InvalidImage: Animation file, Corrupted file or Unsupported type
2024-07-28 22:16:15.365 | INFO | mokuro.run:run:146 - Processed successfully: 0/1
Currently there are no error when performing a mokuro ocr process from original image format
I have confirmed that the same zipped file created earlier once unzipped
is working from macOS → chrome browser mokuro-reader app
The contents of local mokuro-reader main directory:
My local main directory where the manga/img + .mokuro + html other folders is along with the zipped manga/img + .mokuro + html.
Gotta be honest I am stumped! Thanks in advance again for all your help and patients!
~/mokuro-reader mokuro /Users/myUsers/mokuro-reader/blackjack01
Found 1 volumes:
/Users/myUsers/mokuro-reader/blackjack01 (unprocessed)
Each of the paths above will be treated as one volume.
2024-07-29 12:07:38.384 | INFO | mokuro.run:run:133 - Processing 1/1: /Users/myUsers/mokuro-reader/blackjack01
Processing pages...: 0%| | 0/5 [00:00<?, ?it/s]2024-07-29 12:07:38.897 | INFO | mokuro.manga_page_ocr:__init__:41 - Initializing text detector, using device cpu
2024-07-29 12:07:39.442 | INFO | manga_ocr.ocr:__init__:15 - Loading OCR model from kha-white/manga-ocr-base
2024-07-29 12:07:45.382 | INFO | manga_ocr.ocr:__init__:28 - Using MPS
2024-07-29 12:08:02.084 | INFO | manga_ocr.ocr:__init__:38 - OCR ready
Processing pages...: 100%|
5/5 [00:58<00:00, 11.77s/it]
2024-07-29 12:08:37.745 | INFO | mokuro.run:run:146 - Processed successfully: 1/1
Also, you seem to have some safari extensions running on the Mokuro page (puzzle piece icon on the left of the address bar). Could there be something in here that’s interfering (ad blocker/pop-up blocker/whatever) ? Though obviously not 10ten, that works.
Any chance that you could get his zip file and try it or the other way around, send them a zip file that you have tested OK? Maybe just take a random jpg from the internet
This is exactly what’ve been meaning to try but didn’t know how to go about it.
Maybe I can send a link to my google drive with the zip file in question!? @Magyarapointe
Would love to try out your zip file as well!
You were right!! The issue is my macOS archiver tool compress!
I used google’s zipping process to create my own zip file and it worked.
I guess this was exactly what I did the first time without realizing it and uploaded to mokuro-reader successfully but was not able to successfully reproduce the same results after zipping from my local machine!
Yay I love it when we get a happy ending in this thread! Good job on sticking with trying until you got it and all the super detailed reports and thanks @Magyarapointe for the help!!
(I don’t know why they didn’t show up when you checked on your computer, though)
TL;DR : if you’re zipping files on Mac, quite often, hidden files are created which can mess with programs. Try getting rid of those, you should be fine afterwards.
My god! Even after purposely looking for it! I will be dealing with permanently!
You’ve given me yet another reason as to why I really NEED my apple M2 chip
Thanks for the link on how to deal with the __MACOSX folder.
Here to trouble ya’ll again! I’m trying to install Mokuro on another device, and I’ve followed the same installation process as before (I even had everything written down from last time).
I’ve downloaded Python and made sure to check the box labeled “Add Python to PATH.” However, the pip3 install mokuro command doesn’t seem to work. I also tried uninstalling and reinstalling everything several times.
Is there a consensus on which version of Python is needed for each major operating system? I have it working with 3.11.8 on Linux. If we had a list of which ones it does and does not work with, I could add it to the first post.
For Windows, I wrote in one of my posts “Install Python 3.10 and not newer”, I don’t remember where I got that from, when I look at GitHub - kha-white/mokuro: Read Japanese manga inside browser with selectable text. it just says “You need Python 3.6 or newer”. But I believe it still holds. People have had success with 3.9 but not with newer than 3.10.
I think it’s a good idea to put it in the first post.
Ahh okay so I installed Mokuro and tried it out with one manga, but Yomitan still can’t scan the text, even though the HTML file was created. Let me try using Python 3.9 lol