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

NotADirectoryError while converting a cbz to mobi #4

Open
hex007 opened this issue May 12, 2021 · 7 comments
Open

NotADirectoryError while converting a cbz to mobi #4

hex007 opened this issue May 12, 2021 · 7 comments

Comments

@hex007
Copy link

hex007 commented May 12, 2021

Calibre version 5.17

NotADirectoryError: [Errno 20] Not a directory: '~/.config/calibre/plugins/Kindle Comics Input.zip/kindle_comic_lib/text_unidecode/../..'

Traceback (most recent call last):
  File "runpy.py", line 194, in _run_module_as_main
  File "runpy.py", line 87, in _run_code
  File "site.py", line 45, in <module>
  File "site.py", line 41, in main
  File "calibre/utils/ipc/worker.py", line 216, in main
  File "calibre/gui2/convert/gui_conversion.py", line 41, in gui_convert_override
  File "calibre/gui2/convert/gui_conversion.py", line 28, in gui_convert
  File "calibre/ebooks/conversion/plumber.py", line 1105, in run
  File "calibre/customize/conversion.py", line 245, in __call__
  File "calibre_plugins.kindle_comics.__init__", line 41, in convert
  File "calibre_plugins.kindle_comics.make_book", line 28, in make_book
  File "calibre_plugins.kindle_comics.make_book", line 50, in sanitize_tree
  File "calibre_plugins.kindle_comics.make_book", line 73, in _slugify
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "calibre/customize/zipplugin.py", line 192, in exec_module
  File "calibre_plugins.kindle_comics.kindle_comic_lib.__init__", line 3, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "calibre/customize/zipplugin.py", line 192, in exec_module
  File "calibre_plugins.kindle_comics.kindle_comic_lib.slugify", line 19, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "calibre/customize/zipplugin.py", line 192, in exec_module
  File "calibre_plugins.kindle_comics.kindle_comic_lib.text_unidecode.__init__", line 15, in <module>
  File "zipfile.py", line 1251, in __init__
NotADirectoryError: [Errno 20] Not a directory: '~/.config/calibre/plugins/Kindle Comics Input.zip/kindle_comic_lib/text_unidecode/../..'
@Bouilloire-dot
Copy link

Same for me! (I’m running calibre on Ubuntu)

@pavelzw pavelzw mentioned this issue Jul 11, 2021
@pavelzw
Copy link
Owner

pavelzw commented Jul 11, 2021

Hey guys,
sorry for the late reply.
I'll try to reproduce and fix the error in a few weeks when I have a bit more time.

@hex007
Copy link
Author

hex007 commented Jul 11, 2021

I have the solution. The '../..' is not resolving properly on *nix systems. Wrapping it with "os.path.abspath(path_with_..)" works

I will submit a PR for it

@pavelzw
Copy link
Owner

pavelzw commented Jul 11, 2021

Alright, thanks!

@acbakhit
Copy link

@hex007 I'm still experiencing this issue, was a solution ever pushed? Any advice on how I can resolve this?

@nadavsavio
Copy link

I'm also getting this error way up here in 2024.

@combbbb
Copy link

combbbb commented Oct 28, 2024

same here, any solutions or is this project not maintained anymore? thanks!

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

6 participants