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 when closing manga-ocr #66

Open
alan-ford opened this issue May 17, 2024 · 1 comment
Open

Error when closing manga-ocr #66

alan-ford opened this issue May 17, 2024 · 1 comment

Comments

@alan-ford
Copy link

When I close manga-ocr with CTRL+C, this error message appears

Traceback (most recent call last): File "/home/bishop/.local/bin/manga_ocr", line 8, in <module> sys.exit(main()) ^^^^^^ File "/home/bishop/.local/lib/python3.11/site-packages/manga_ocr/__main__.py", line 7, in main fire.Fire(run) File "/home/bishop/.local/lib/python3.11/site-packages/fire/core.py", line 141, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bishop/.local/lib/python3.11/site-packages/fire/core.py", line 475, in _Fire component, remaining_args = _CallAndUpdateTrace( ^^^^^^^^^^^^^^^^^^^^ File "/home/bishop/.local/lib/python3.11/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^ File "/home/bishop/.local/lib/python3.11/site-packages/manga_ocr/run.py", line 89, in run img = ImageGrab.grabclipboard() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bishop/.local/lib/python3.11/site-packages/PIL/ImageGrab.py", line 170, in grabclipboard p = subprocess.run(args, capture_output=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 550, in run stdout, stderr = process.communicate(input, timeout=timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1207, in communicate stdout, stderr = self._communicate(input, endtime, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 2059, in _communicate ready = selector.select(timeout) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/selectors.py", line 415, in select fd_event_list = self._selector.poll(timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ KeyboardInterrupt

@HighLiuk
Copy link

@alan-ford why is this an issue? Every python code throws error if interrupted.

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