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 after updating distro, inicial issue "from manga_ocr import MangaOcr ModuleNotFoundError: No module named 'manga_ocr'" Resolved, new issue does not have any indications of what is happening (more info in comments) #6

Open
Katsumi-III opened this issue Jan 3, 2024 · 7 comments

Comments

@Katsumi-III
Copy link

$ transformers_ocr recognize [or transformers_ocr start, yields identical result]
/usr/bin/transformers_ocr: line 64: kill: (29717) - No such process
Started manga_ocr listener.
[katsumi@localhost ~]$ Traceback (most recent call last):
  File "/usr/lib/transformers_ocr/listener.py", line 8, in <module>
    from manga_ocr import MangaOcr
ModuleNotFoundError: No module named 'manga_ocr'

Attempted transformers_ocr download and got this error in the bottom.
Screenshot from 2024-01-03 09-48-26

My attempts were:

  • Downloading multiple versions of torch (there is no torch version 1.0 but, 1.11 and beyond)
  • Switching to xOrg from Wayland
    There's isn't much I can think of to solve this as a layman towards these things.
@tatsumoto-ren
Copy link
Member

transformers_ocr purge
then
transformers_ocr download

@Katsumi-III
Copy link
Author

Katsumi-III commented Jan 8, 2024

@tatsumoto-ren copied it to the terminal, but the command does not exist

[katsumi@localhost ~]$ transformers_ocr purge
Unknown command.
Usage: transformers_ocr [COMMAND]

An OCR script that uses maim and manga-ocr.

Options:
recognize  OCR a part of the screen.
download   Download manga-ocr files.
start      Start listening.
stop       Stop listening.
help       Show this help screen.
[katsumi@localhost ~]$ 

Did transformers_ocr start just in case but to no avail

[katsumi@localhost ~]$ transformers_ocr start
/usr/bin/transformers_ocr: line 64: kill: (14294) - No such process
Started manga_ocr listener.
[katsumi@localhost ~]$ Traceback (most recent call last):
  File "/usr/lib/transformers_ocr/listener.py", line 8, in <module>
    from manga_ocr import MangaOcr
ModuleNotFoundError: No module named 'manga_ocr'

[katsumi@localhost ~]$ transformers_ocr purge
Unknown command.
Usage: transformers_ocr [COMMAND]

An OCR script that uses maim and manga-ocr.

Options:
recognize  OCR a part of the screen.
download   Download manga-ocr files.
start      Start listening.
stop       Stop listening.
help       Show this help screen.
[katsumi@localhost ~]$ 

Also used transformers_ocr stop before your suggested command yielding an identical output

@Katsumi-III
Copy link
Author

The error I opened an issue with is now gone after I have replaced the previous transformers_ocr file in my home directory and installed again with makefile. Now having access to the purge command, I initiated and afterwards initiated the download command. Though, a new issue appears;

[katsumi@localhost ~]$ transformers_ocr recognize 
Started manga_ocr listener.

After I have initiated with the command transformers_ocr recognize , it maintains this in the terminal, and after I have taken a screenshot, nothing happens, nothing is saved in my clipboard. If there's anything you want me to do, to better understand this issue, please do tell.

@Katsumi-III
Copy link
Author

Attempted restarting my pc as the layman's last resort to no avail

@tatsumoto-ren
Copy link
Member

Are you using gnome?

@Katsumi-III
Copy link
Author

Yes. I'm sorry to be wasting your time on something that likely is a rare issue or just simple mistake in my part

@tatsumoto-ren
Copy link
Member

Yes, I don't understand what can possibly go wrong here.

@Katsumi-III Katsumi-III changed the title Error found after upgrading Fedora 38 to 39: from manga_ocr import MangaOcr ModuleNotFoundError: No module named 'manga_ocr' Error after updating distro, inicial issue "from manga_ocr import MangaOcr ModuleNotFoundError: No module named 'manga_ocr'" Resolved, new issue does not have any indications of what is happening (more info in comments) Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants