adenzu / Manga-Panel-Extractor

A simple program that takes manga pages and outputs the panels on them. Website: https://adenzu.github.io/Manga-Panel-Extractor/
https://adenzu.github.io/Manga-Panel-Extractor/
MIT License
17 stars 0 forks source link

Crash when running python code on Windows 10 #4

Closed Stanestane closed 7 months ago

Stanestane commented 7 months ago

Trying to run Python code results in the following error: D:\Manga-Panel-Extractor>python main.py -g Traceback (most recent call last): File "D:\Manga-Panel-Extractor\main.py", line 374, in run for i, image in enumerate(load_images(self.input_dir)): ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Manga-Panel-Extractor\main.py", line 90, in load_images return [load_image(directory_path, image_name, convert_to_grayscale) for image_name in image_names] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Manga-Panel-Extractor\main.py", line 74, in load_image return ImageWithFilename(image, image_name, convert_to_grayscale) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: ImageWithFilename.init() takes 3 positional arguments but 4 were given

adenzu commented 7 months ago

Yeah my foolish mistake. I fixed the code but I can't give an exact time for the compiled release for I don't have an immediate access to a Windows machine. Thanks for the error message, greatly appreciated.

adenzu commented 7 months ago

It should be now fixed. Here you can find the new executables. I've tried both on Ubuntu 22.04 and Windows 10 respectively with the images in test-in, they seem to be working. Thanks for your patience.