View Single Post
Old 03-26-2019, 07:02 AM   #3
karl1c
Connoisseur
karl1c has become a pillar of the MobileRead communitykarl1c has become a pillar of the MobileRead communitykarl1c has become a pillar of the MobileRead communitykarl1c has become a pillar of the MobileRead communitykarl1c has become a pillar of the MobileRead communitykarl1c has become a pillar of the MobileRead communitykarl1c has become a pillar of the MobileRead communitykarl1c has become a pillar of the MobileRead communitykarl1c has become a pillar of the MobileRead communitykarl1c has become a pillar of the MobileRead communitykarl1c has become a pillar of the MobileRead community
 
Posts: 56
Karma: 15570
Join Date: Jul 2017
Device: iPad
Log file

The plugin was working last night on my MacBook. I went to produce the log file this morning and did this:

> calibre-customize -b .
> Plugin updated: KyBook3 Sync (1, 0, 1)

Started Calibre and Restart in Debug Mode from the toolbar and got this:
Spoiler:
Traceback (most recent call last):
File "site-packages/calibre/gui2/ui.py", line 157, in __init__
File "site-packages/calibre/gui2/ui.py", line 171, in init_iaction
File "site-packages/calibre/customize/__init__.py", line 612, in load_actual_plugin
File "lib/python2.7/importlib/__init__.py", line 37, in import_module
File "site-packages/calibre/customize/zipplugin.py", line 184, in load_module
File "calibre_plugins.kybook3_sync.ui", line 18, in <module>
File "site-packages/calibre/customize/zipplugin.py", line 184, in load_module
File "calibre_plugins.kybook3_sync.main", line 23, in <module>
File "site-packages/calibre/customize/zipplugin.py", line 184, in load_module
File "calibre_plugins.kybook3_sync.cal2ky3", line 26, in <module>
File "site-packages/calibre/customize/zipplugin.py", line 184, in load_module
File "calibre_plugins.kybook3_sync.requests.__init_ _", line 43, in <module>
ImportError: No module named urllib3
calibre Debug log
calibre 3.34 embedded-python: True is64bit: True
Darwin-17.3.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '17.3.0', 'Darwin Kernel Version 17.3.0: Thu Nov 9 18:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X86_64')
Python 2.7.12
OSX: ('10.13.2', ('', '', ''), 'x86_64')
Interface language: en_GB
Successfully initialized third party plugins: KyBook3 Sync (1, 0, 1)
calibre 3.34 embedded-python: True is64bit: True
Darwin-17.3.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '17.3.0', 'Darwin Kernel Version 17.3.0: Thu Nov 9 18:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X86_64')
Python 2.7.12
OSX: ('10.13.2', ('', '', ''), 'x86_64')
Interface language: en_GB
Successfully initialized third party plugins: KyBook3 Sync (1, 0, 1)
devicePixelRatio: 1.0
logicalDpi: 72.0 x 72.0
physicalDpi: 114.000001712 x 114.000001712
Using calibre Qt style: True
[0.00] Starting up...
[0.02] Showing splash screen...
[0.22] splash screen shown
[0.22] Initializing db...
[0.24] db initialized
[0.24] Constructing main UI...
[2.04] main UI initialized...
[2.04] Hiding splash screen
[2.08] splash screen hidden
[2.08] Started up in 2.08 seconds with 8 books


So it seems it is intermittently failing to find urllib3. (Or, possibly, other modules when it fails.) As I said, if I comment out the code and put it back in again the problem goes away and randomly comes back again. Is it a memory issue? As I'm loading quite a lot of Python code to get the Requests module.

Last edited by karl1c; 03-26-2019 at 06:57 PM.
karl1c is offline   Reply With Quote