View Single Post
Old 03-11-2021, 06:08 AM   #1053
Rob557
Zealot
Rob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-books
 
Posts: 108
Karma: 810
Join Date: Jul 2012
Device: Kobo
PROBLEM SOLVED re: Search ePub hanging

Quote:
Originally Posted by davidfor View Post
... hanging ... when the dialog is opened. If so, the most likely reason is that the dialog is actually opening off screen. Were you using a second monitor the last time it work? If you press escape, does control return to calibre? Or pressing enter start the search?
PROBLEM SOLVED !
Thank you davidfor !
First I'll confirm that Calibre was hanging immediately on clicking on 'Search ePub', and before any dialog was displayed on screen (no second monitor being used).
I can also confirm that you are correct that when I now pressed the escape key (something that I've tried unsuccessfully in past to stop problematic search criteria but had not tried for this problem), control did immediately return to Calibre! and (more surprisingly) when I then clicked on Search ePub again, the normal criteria dialog display did appear and all seems ok now!
Since I had saved the pre-edit change to gui.json, I exited Calibre and switched back to that version of gui.json and again found that pressing the escape key immediately resolved the problem. Rebooting Calibre again showed that I no longer had to use the escape key.
So the criteria list itself does not seem to have been the problem.
I was thinking of comparing both gui.json versions (in their entirety) but unfortunately I have now used the escape key using both versions.
I did use the Win 10 Command box to rerun "calibre-debug -g" to compare the results with the log results provided earlier, and FWIW the following were the lines that had appeared previously that no longer appear in the start-up log:
Code:
60  - C:\Users\D>calibre-debug -g
61  - calibre 5.12 [64bit]  embedded-python: True is64bit: True
62  - Windows-10-10.0.18362 Windows ('64bit', 'WindowsPE')
63  - ('Windows', '10', '10.0.18362')
64  - Python 3.8.5
65  - Windows: ('10', '10.0.18362', '', 'Multiprocessor Free')
66  - Interface language: None
67  - Failed to initialize plugin: 'C:\\Users\\D\\AppData\\Roaming\\calibre\\plugins\\Barnes & Noble.zip'
68  - Traceback (most recent call last):
69  -   File "calibre\customize\ui.py", line 703, in initialize_plugins
70  -   File "calibre\customize\ui.py", line 61, in load_plugin
71  -   File "calibre\customize\zipplugin.py", line 293, in load
72  -   File "importlib\__init__.py", line 127, in import_module
73  -   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
74  -   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
75  -   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
76  -   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
77  -   File "calibre\customize\zipplugin.py", line 192, in exec_module
78  -   File "calibre_plugins.barnes_noble.__init__", line 11, in <module>
79  - ImportError: cannot import name 'quote' from 'urllib' (C:\Program Files\Calibre2\app\bin\python-lib.bypy.frozen\urllib\__init__.pyc)
80  - Failed to initialize plugin: 'C:\\Users\\D\\AppData\\Roaming\\calibre\\plugins\\DeDRM.zip'
81  - Traceback (most recent call last):
82  -   File "calibre\customize\ui.py", line 703, in initialize_plugins
83  -   File "calibre\customize\ui.py", line 61, in load_plugin
84  -   File "calibre\customize\zipplugin.py", line 293, in load
85  -   File "importlib\__init__.py", line 127, in import_module
86  -   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
87  -   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
88  -   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
89  -   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
90  -   File "calibre\customize\zipplugin.py", line 185, in exec_module
91  -   File "calibre\customize\zipplugin.py", line 181, in get_code
92  -   File "calibre_plugins.dedrm.__init__", line 132
93  -     except Exception, e:
94  -                     ^
95  - SyntaxError: invalid syntax
96  - Failed to initialize plugin: 'C:\\Users\\D\\AppData\\Roaming\\calibre\\plugins\\FictionDB.zip'
97  - Traceback (most recent call last):
98  -   File "calibre\customize\ui.py", line 703, in initialize_plugins
99  -   File "calibre\customize\ui.py", line 61, in load_plugin
100 -  File "calibre\customize\zipplugin.py", line 293, in load
101 -  File "importlib\__init__.py", line 127, in import_module
102 -  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
103 -  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
104 -  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
105 -  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
106 -  File "calibre\customize\zipplugin.py", line 192, in exec_module
107 -  File "calibre_plugins.fictiondb.__init__", line 11, in <module>
108 - ImportError: cannot import name 'quote' from 'urllib' (C:\Program Files\Calibre2\app\bin\python-lib.bypy.frozen\urllib\__init__.pyc)
109 - Successfully initialized third party plugins: Count Pages (1, 11, 0) && EpubMerge (2, 11, 0) && Find Duplicates (1, 8, 4) && Generate Cover (2, 0, 1) && Goodreads (1, 5, 1) && Modify ePub (1, 6, 2) && Quality Check (1, 11, 0) && Reading List (1, 7, 1) && Resize Cover (1, 1, 0) && Search The Internet (1, 8, 1)
110 - Turning on automatic hidpi scaling
111 - devicePixelRatio: 1.0
112 - logicalDpi: 96.0 x 96.0
113 - physicalDpi: 101.6 x 101.6
114 - Using calibre Qt style: True

145 - EpubMerge: DEBUG: 2021-03-11 05:33:57,090: calibre_plugins.epubmerge.epubmerge_plugin(158): macmenuhack file_path:C:\Users\D\AppData\Roaming\calibre\plugins\fanficfare_macmenuhack.txt
If the above log messages don't offer any clues then it'll remain a mystery whatever I had done that required a reset using the Escape key.
Thanks again for your help. All seems functional now!
Rob557 is offline   Reply With Quote