Mokuro: Read Japanese manga with selectable text inside a browser

I’ve updated the “Manga Text Search: Python Version” script so now it caches a list of _ocr folders.

This allows for faster searching after the first search.

If a new series is added to the manga folder, simply delete the “ocr_folders.txt” file that creates alongside the Python file and it will create a new cache file on the next run.

@Gorbit99 I hope it’s okay to lure you here. I don’t want to spam the Book Club thread with my Mokuro related questions.

So, I’m trying to run this on my Macbook using Chrome. So far I was able to download all the images and saved them in a single folder. Now I’m opening my Terminal using the code

mokubo/path/to/here goes the path for the folder I guess

When I hit enter I get the following: mokuro/path/to/XXXX: No such file or directory

Maybe something is wrong with my file path…I don’t know. It looks like

Users/here goes my name/Downloads/HorimiyaV1

Any idea what I’m missing here? :cold_sweat:

So first of all, “mokuro”, not “mokubo”, make sure that’s right.

Afterwards, there needs to be a space after mokuro. The idea is that the program you run is “mokuro”, so that should be the first part separated from the others. You can just run mokuro like that, it should spit an error back telling you that you need to specify a folder.

The folder path should come after. I recommend going into the directory where your folder is. So if you have a structure like this:

- My Awesome Books
    - Some series I like
        - something001.jpg
        - something002.jpg
        ....
    - Some other series

Then go into the “My Awesome Books” folder.
Afterwards you can run mokuro on the "Some series I like folder like so:
mokuro "./Some Series I like"

For future reference, because for the sake of understanding, I’ll use it. Normally in guides, commands are preceded by some indicator character, usually $. So for example if I had:

$ ls

That would mean "run the ls command`. The $ represents the terminal.

Sure! Mokuro!
Just to be on the safe side here…I’m doing all this with my MacBooks Terminal window?
I have a “mokuro-master” folder in Downloads folder, but I can’t see any executable file in there.

Feeling pretty stupid right now…

I wouldn’t recommend downloading mokuro like that.
Just run the following command:

$ pip install mokuro

it should install mokuro system wide, afterwards, if it succeeded, run

$ reset

which should reload your terminal window. Afterwards you should be able to run mokuro anywhere in the terminal.

Okay…I’m on the trail of the matter!
It seems as if I got an error message while installing Mokuro with Pip3

I used $ pip3 install mokuro

Then the process begins and at the end there is an error:

Getting requirements to build wheel … error
error: subprocess-exited-with-error
x Getting requirements to build wheel did not run successfully.

:face_with_spiral_eyes:

make sure you didn’t include the $ in the command. If you didn’t, try

$ pip install wheel

first (without the $ again), and then, if that succeeds, try the previous command.

And of course, when using pip3 for the other command, use pip3 also for this command as well.

With modern mac, pip should be symlinked to pip3, at least as far as I’m aware

This is kinda frustrating! I’m about to throw the towel!! I just hate it when I can’t help myself…
New error messages incoming:

  • python setup.py egg_info did not run successfully
  • metadata-generation-failed

I have installed Phython directly from the website.

Ok try to run

$ pip install --upgrade pip

it should upgrade, well, itself

Already done that. When I try to enter the command again: Requirement already satisfied…

Can you run

$ python -v

And tell me what it spit back?

-bash: python: command not found

Can you try the same with

python3 -v

?

It is spitting a lot :sweat_smile:
Here’s a screenshot of the last few lines…too much to copy it all:

Ok, wonderful, that works, then try

$ pip3 install mokuro

Maybe that will work

Ohh, that’s a much nicer error.
Try

$ pip3 install mecab-python3

and if that worked, repeat the mokuro install