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

Mokuro doesn't work on folders named with only numbers #117

Open
MakkyMTC opened this issue Dec 21, 2024 · 0 comments
Open

Mokuro doesn't work on folders named with only numbers #117

MakkyMTC opened this issue Dec 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@MakkyMTC
Copy link

It's not a big issue, but I kept getting this error and I didn't understand why it wasn't working, so I'm sharing in case anyone else finds the same issue. After I changed the folder name from "42" to "c42" it started working. Just adding any letter is enough to solve this issue.

D:\FOLDER FOR MANGAAAAA\pixiv>mokuro 42 2024-12-20 23:09:53.231 | WARNING | mokuro.run:run:55 - Legacy HTML output is deprecated and will not be further developed. It's recommended to use .mokuro format and web reader instead. Legacy HTML will be disabled by default in the future. To explicitly enable it, run with option --legacy-html. 2024-12-20 23:09:53.232 | INFO | mokuro.run:run:63 - Scanning paths... Traceback (most recent call last): File "C:\Users\Diana\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Diana\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Diana\AppData\Local\Programs\Python\Python39\Scripts\mokuro.exe\__main__.py", line 7, in <module> File "C:\Users\Diana\AppData\Local\Programs\Python\Python39\lib\site-packages\mokuro\__main__.py", line 7, in main fire.Fire(run) File "C:\Users\Diana\AppData\Local\Programs\Python\Python39\lib\site-packages\fire\core.py", line 141, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File "C:\Users\Diana\AppData\Local\Programs\Python\Python39\lib\site-packages\fire\core.py", line 475, in _Fire component, remaining_args = _CallAndUpdateTrace( File "C:\Users\Diana\AppData\Local\Programs\Python\Python39\lib\site-packages\fire\core.py", line 691, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) File "C:\Users\Diana\AppData\Local\Programs\Python\Python39\lib\site-packages\mokuro\run.py", line 67, in run path_normalized = Path(path).expanduser().absolute() File "C:\Users\Diana\AppData\Local\Programs\Python\Python39\lib\pathlib.py", line 1082, in __new__ self = cls._from_parts(args, init=False) File "C:\Users\Diana\AppData\Local\Programs\Python\Python39\lib\pathlib.py", line 707, in _from_parts drv, root, parts = self._parse_args(args) File "C:\Users\Diana\AppData\Local\Programs\Python\Python39\lib\pathlib.py", line 691, in _parse_args a = os.fspath(a) TypeError: expected str, bytes or os.PathLike object, not int

@kha-white kha-white added the bug Something isn't working label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants