View Single Post
Old 04-17-2020, 10:42 AM   #8
The_book
Zealot
The_book began at the beginning.
 
Posts: 100
Karma: 10
Join Date: Aug 2019
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Run calibre in debug mode (right click preferences button) and you will get more information
After checking, it happens in src\calibre\customize\ui.py line 713
Code:
    for zfp in list(external_plugins) + builtin_plugins:
        try:
            if not isinstance(zfp, type):
                # We have a plugin name
                pname = zfp
                zfp = os.path.join(plugin_dir, zfp+'.zip')
                if not os.path.exists(zfp):
                    zfp = external_plugins[pname]
            try:
                plugin = load_plugin(zfp) if not isinstance(zfp, type) else zfp
            except PluginNotFound:
                continue
            if perf:
                st = time.time()
            plugin = initialize_plugin(plugin, None if isinstance(zfp, type) else zfp)
            if perf:
                times[plugin.name] = time.time() - st
            _initialized_plugins.append(plugin)
        except:
            print('Failed to initialize plugin:', repr(zfp))
            traceback.print_exc()
            if DEBUG:
                traceback.print_exc()
with
Quote:
Traceback (most recent call last):
File "D:\workplace\program\open-sourse\calibre-src\src\calibre\customize\ui.py", line 703, in initialize_plugins
File "D:\workplace\program\open-sourse\calibre-src\src\calibre\customize\ui.py", line 61, in load_plugin
File "D:\workplace\program\open-sourse\calibre-src\src\calibre\customize\zipplugin.py", line 203, in load
File "importlib\__init__.py", line 37, in import_module
File "D:\workplace\program\open-sourse\calibre-src\src\calibre\customize\zipplugin.py", line 185, in load_module
File "calibre_plugins.markdown_output.__init__", line 3, in <module>
File "D:\workplace\program\open-sourse\calibre-src\src\calibre\customize\zipplugin.py", line 185, in load_module
File "calibre_plugins.markdown_output.markdown_outp ut", line 3, in <module>
File "D:\workplace\program\open-sourse\calibre-src\src\calibre\customize\zipplugin.py", line 185, in load_module
File "calibre_plugins.markdown_output.ui", line 1, in <module>
File "D:\workplace\program\open-sourse\calibre-src\src\calibre\gui2\convert\txt_output.py", line 10, in <module>
ImportError: cannot import name Widget

Last edited by The_book; 04-17-2020 at 10:45 AM.
The_book is offline   Reply With Quote