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

ModuleNotFoundError: No module named 'zim.formats.zim-markdown' #9

Open
jssilva25 opened this issue Sep 13, 2021 · 2 comments
Open

Comments

@jssilva25
Copy link

Hello,
Just got the following issue:

`This is zim 0.73.5
Platform: posix
Locale: pt_PT UTF-8
FS encoding: utf-8
Python: (3, 8, 12, 'final', 0)
PyGObject: (3, 38, 0)

======= Traceback =======
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/gui/widgets.py", line 3075, in do_response
destroy = self.do_response_ok()
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/gui/notebookdialog.py", line 368, in do_response_ok
self.callback(self.result)
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/gui/uiactions.py", line 140, in open_notebook
ZIM_APPLICATION.run('--gui', uri)
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/main/init.py", line 687, in run
self._run_cmd(cmd, args) # test seam
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/main/init.py", line 698, in _run_cmd
w = cmd.run()
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/main/init.py", line 268, in run
notebook, page = self.build_notebook()
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/main/init.py", line 240, in build_notebook
notebook, uripage = build_notebook(notebookinfo) # can raise FileNotFound
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/notebook/init.py", line 115, in build_notebook
notebook = Notebook.new_from_dir(dir)
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/notebook/notebook.py", line 254, in new_from_dir
layout = FilesLayout(
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/notebook/layout.py", line 86, in init
self.default_format = get_format(default_format)
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/formats/init.py", line 211, in get_format
return get_format_module(name)
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/formats/init.py", line 221, in get_format_module
return zim.plugins.get_module('zim.formats.' + canonical_name(name))
File "/Applications/Zim.app/Contents/Resources/zim-markdown/zim/utils.py", line 35, in get_module
mod = import(name)
ModuleNotFoundError: No module named 'zim.formats.zim-markdown'`

Am I doing something wrong?

@jssilva25
Copy link
Author

Think I just solved it myself. Just renamed:
$ mv zim/formats/zim_markdown.py zim/formats/zim-markdown.py

But maybe it should be renamed somewhere else. It works though.

@jssilva25
Copy link
Author

I'm now having a silent crash when opening a page containing a code block; the page was exported to .md from Joplin.

Would this be related to the above rename? Or is this a new issue?

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

1 participant