View Single Post
Old 11-02-2023, 03:55 AM   #190
thelastclown
Junior Member
thelastclown began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2020
Device: none
Hello, DaltonST. I hope you're well.

I see you haven't been active on the site in awhile. Also I see that you've not released any new versions of your plugins since June.

I don't mean to bother you but I'm having an issue with tag scrubbing. I'm getting an "unbalanced parenthesis" error when trying to use the tag scrubber.

System:
OS: Ubuntu 22.04 LTS
Python: 3.10.1
Calibre: 6.28.1

Here is my debug log:
Spoiler:
Code:
QColorSpace attempted constructed from invalid primaries: QPointF(0.313477,0.329102) QPointF(0.692383,0.318359) QPointF(0.266602,0.682617) QPointF(0.151367,0.0546875)
ApplicationPaletteChange event ignored
Using calibre Qt style: True
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
calibre Debug log
calibre 6.28.1  embedded-python: True
Linux-5.15.0-87-generic-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '5.15.0-87-generic', '#97-Ubuntu SMP Mon Oct 2 21:09:21 UTC 2023')
Python 3.10.1
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 5, 0) && DeDRM (10, 0, 3) && Package KFX (from KFX Input) (2, 5, 0) && Action Chains (1, 18, 15) && Audit Log (1, 0, 19) && Author Book Count (2, 2, 3) && Author Book Count Hierarchy (1, 2, 5) && CalibreSpy (1, 0, 92) && Consolidate All Library Metadata (2, 0, 46) && Drop Search Results (1, 0, 14) && English Noun Frequency (1, 0, 16) && Entities Manager (1, 0, 19) && Extract RIS Citations (1, 0, 15) && Favourites Menu (1, 3, 0) && Job Spy (1, 0, 239) && KFX metadata reader (from KFX Input) (2, 5, 0) && KFX Input (2, 5, 0) && Set KFX metadata (from KFX Output) (2, 3, 1) && KFX Output (2, 3, 1) && Library Codes (1, 0, 65) && Library Splitter (1, 0, 7) && Media File Importer (1, 0, 27) && MultiColumnSearch (1, 0, 96) && Open With (1, 8, 1) && Quality Check (1, 13, 6) && QuarantineAndScrub (3, 6, 122) && Reading List (1, 15, 1) && View Manager (1, 10, 2)
calibre 6.28.1  embedded-python: True
Linux-5.15.0-87-generic-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '5.15.0-87-generic', '#97-Ubuntu SMP Mon Oct 2 21:09:21 UTC 2023')
Python 3.10.1
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 5, 0) && DeDRM (10, 0, 3) && Package KFX (from KFX Input) (2, 5, 0) && Action Chains (1, 18, 15) && Audit Log (1, 0, 19) && Author Book Count (2, 2, 3) && Author Book Count Hierarchy (1, 2, 5) && CalibreSpy (1, 0, 92) && Consolidate All Library Metadata (2, 0, 46) && Drop Search Results (1, 0, 14) && English Noun Frequency (1, 0, 16) && Entities Manager (1, 0, 19) && Extract RIS Citations (1, 0, 15) && Favourites Menu (1, 3, 0) && Job Spy (1, 0, 239) && KFX metadata reader (from KFX Input) (2, 5, 0) && KFX Input (2, 5, 0) && Set KFX metadata (from KFX Output) (2, 3, 1) && KFX Output (2, 3, 1) && Library Codes (1, 0, 65) && Library Splitter (1, 0, 7) && Media File Importer (1, 0, 27) && MultiColumnSearch (1, 0, 96) && Open With (1, 8, 1) && Quality Check (1, 13, 6) && QuarantineAndScrub (3, 6, 122) && Reading List (1, 15, 1) && View Manager (1, 10, 2)
QPA platform: xcb
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 127.66492146596858 x 127.59069767441859
[0.00] Starting up...
[0.00] Showing splash screen...
[0.07] splash screen shown
[0.07] Initializing db...
[0.10] db initialized
[0.10] Constructing main UI...
CalibreSpy: initialization_complete
CALM: initialization_complete............
Job Spy has begun initialization...
Calibre, and hence Job Spy, was gracefully shut down last time?  True
Last time daemon started:  never
Last time daemon failed:  never
Total daemon starts inception_to_date:  0
Total daemon failures inception-to-date:  0
JS: ===>>> change_gui_alternating_row_colors()
Job Spy has finished initialization...
[0] un-optimized number of undesirable characters accumulated:  756
[1] optimized number of undesirable characters accumulated:  596
MCS has finished initialization...
[2.17] main UI initialized...
[2.17] Hiding splash screen
Action chains: _get_plugins_resources(): start
Action Chains: _get_plugins_resources(): finished
Action chains: formulas: running on_templates_update()
Action chains: _call_plugins_on_modules_update(): start
Action Chains: _call_plugins_on_modules_update(): finished
Starting QuickView
Starting job: Quarantine And Scrub: Miscellany - Book Level Tag Scrubbing 
Library DB: /media/******/Library/Calibre_Libraries/QuarantineAndScrub_authOK/metadata.db 
Thu Nov  2 00:33:15 2023 
Python: Linux   CPython   3.10.1 
SQLite Version: 3043000  [APSW] 
Database is SHARED, not EXCLUSIVE 
  
Beginning Miscellaneous Scrubbing 
Book Level Tag Scrubbing for Selected Books 
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ 
  
Number of books selected for Tag Scrubbing: 163 
New Work Tags also will be derived from Comments per table _tags_by_comment. 
New Work Tags also will be derived per table _tag_combination_rules. 
  
Job: "Quarantine And Scrub: Miscellany - Book Level Tag Scrubbing" failed with error: 
Traceback (most recent call last):
  File "calibre_plugins.quarantine_and_scrub.booklevel", line 6847, in scrub_tags
    p1 = re.compile(re1, re.IGNORECASE)
  File "re.py", line 251, in compile
  File "re.py", line 303, in _compile
  File "sre_compile.py", line 764, in compile
  File "sre_parse.py", line 962, in parse
re.error: unbalanced parenthesis at position 27

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre/gui2/threaded_jobs.py", line 82, in start_work
  File "calibre_plugins.quarantine_and_scrub.miscellany", line 122, in main_scrub_miscellany
    Scrub_Control(my_db, my_cursor, notifications, log)
  File "calibre_plugins.quarantine_and_scrub.miscellany", line 155, in Scrub_Control
    misc3_control(my_db, my_cursor, notifications, log)
  File "calibre_plugins.quarantine_and_scrub.miscellany", line 511, in misc3_control
    scrub_tags(my_db, my_cursor, my_current_book, notifications, log,probable_tags_to_add)
  File "calibre_plugins.quarantine_and_scrub.booklevel", line 6864, in scrub_tags
    log("Table _tag_rules REGEX Rule Compile Error:" + e)
TypeError: can only concatenate str (not "error") to str
 
Called with args: (<calibre_plugins.quarantine_and_scrub.ui.QuarantineAndScrub object at 0x7f013bba8dc0>, <calibre.db.legacy.LibraryDatabase object at 0x7f01973ed000>, '3', 'X', [2819, 2820, 2821, 2822, 2823, 2824, 2825, 2826, 2827, 2828, 2829, 2830, 2831, 2832, 2833, 2834, 2835, 2836, 2837, 2838, 2839, 2840, 2841, 2842, 2843, 2844, 2845, 2846, 2847, 2848, 2849, 2850, 2851, 2852, 2853, 2854, 2855, 2856, 2857, 2858, 2859, 2860, 2861, 2862, 2863, 2864, 2865, 2866, 2867, 2868, 2869, 2870, 2871, 2872, 2873, 2874, 2875, 2876, 2877, 2878, 2879, 2880, 2881, 2882, 2883, 2884, 2885, 2886, 2887, 2888, 2889, 2890, 2891, 2892, 2893, 2894, 2895, 2896, 2897, 2898, 2899, 2900, 2901, 2902, 2903, 2904, 2905, 2906, 2907, 2908, 2909, 2910, 2911, 2912, 2913, 2914, 2915, 2916, 2917, 2918, 2919, 2920, 2921, 2922, 2923, 2924, 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2933, 2934, 2935, 2936, 2937, 2938, 2939, 2940, 2941, 2942, 2943, 2944, 2945, 2946, 2947, 2948, 2949, 2950, 2951, 2952, 2953, 2954, 2955, 2956, 2957, 2958, 2959, 2960, 2961, 2962, 2963, 2964, 2965, 2966, 2967, 2968, 2969, 2970, 2971, 2972, 2973, 2974, 2975, 2976, 2977, 2978, 2979, 2980, 2981]) {'notifications': <queue.Queue object at 0x7f0197639330>, 'abort': <threading.Event object at 0x7f013adc4130>, 'log': <calibre.utils.logging.GUILog object at 0x7f013adb2080>} 

[4.31] splash screen hidden
[4.32] Started up in 4.32 seconds with 163 books
Job: 0 Quarantine And Scrub: Miscellany - Book Level Tag Scrubbing finished
Starting job: Quarantine And Scrub: Miscellany - Book Level Tag Scrubbing 
	Library DB: /media/******/Library/Calibre_Libraries/QuarantineAndScrub_authOK/metadata.db 
	Thu Nov  2 00:33:15 2023 
	Python: Linux   CPython   3.10.1 
	SQLite Version: 3043000  [APSW] 
	Database is SHARED, not EXCLUSIVE 
	  
	Beginning Miscellaneous Scrubbing 
	Book Level Tag Scrubbing for Selected Books 
	═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ 
	  
	Number of books selected for Tag Scrubbing: 163 
	New Work Tags also will be derived from Comments per table _tags_by_comment. 
	New Work Tags also will be derived per table _tag_combination_rules. 
	  
	Job: "Quarantine And Scrub: Miscellany - Book Level Tag Scrubbing" failed with error: 
	Traceback (most recent call last):
	  File "calibre_plugins.quarantine_and_scrub.booklevel", line 6847, in scrub_tags
	    p1 = re.compile(re1, re.IGNORECASE)
	  File "re.py", line 251, in compile
	  File "re.py", line 303, in _compile
	  File "sre_compile.py", line 764, in compile
	  File "sre_parse.py", line 962, in parse
	re.error: unbalanced parenthesis at position 27
	
	During handling of the above exception, another exception occurred:
	
	Traceback (most recent call last):
	  File "calibre/gui2/threaded_jobs.py", line 82, in start_work
	  File "calibre_plugins.quarantine_and_scrub.miscellany", line 122, in main_scrub_miscellany
	    Scrub_Control(my_db, my_cursor, notifications, log)
	  File "calibre_plugins.quarantine_and_scrub.miscellany", line 155, in Scrub_Control
	    misc3_control(my_db, my_cursor, notifications, log)
	  File "calibre_plugins.quarantine_and_scrub.miscellany", line 511, in misc3_control
	    scrub_tags(my_db, my_cursor, my_current_book, notifications, log,probable_tags_to_add)
	  File "calibre_plugins.quarantine_and_scrub.booklevel", line 6864, in scrub_tags
	    log("Table _tag_rules REGEX Rule Compile Error:" + e)
	TypeError: can only concatenate str (not "error") to str
	 
	Called with args: (<calibre_plugins.quarantine_and_scrub.ui.QuarantineAndScrub object at 0x7f013bba8dc0>, <calibre.db.legacy.LibraryDatabase object at 0x7f01973ed000>, '3', 'X', [2819, 2820, 2821, 2822, 2823, 2824, 2825, 2826, 2827, 2828, 2829, 2830, 2831, 2832, 2833, 2834, 2835, 2836, 2837, 2838, 2839, 2840, 2841, 2842, 2843, 2844, 2845, 2846, 2847, 2848, 2849, 2850, 2851, 2852, 2853, 2854, 2855, 2856, 2857, 2858, 2859, 2860, 2861, 2862, 2863, 2864, 2865, 2866, 2867, 2868, 2869, 2870, 2871, 2872, 2873, 2874, 2875, 2876, 2877, 2878, 2879, 2880, 2881, 2882, 2883, 2884, 2885, 2886, 2887, 2888, 2889, 2890, 2891, 2892, 2893, 2894, 2895, 2896, 2897, 2898, 2899, 2900, 2901, 2902, 2903, 2904, 2905, 2906, 2907, 2908, 2909, 2910, 2911, 2912, 2913, 2914, 2915, 2916, 2917, 2918, 2919, 2920, 2921, 2922, 2923, 2924, 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932, 2933, 2934, 2935, 2936, 2937, 2938, 2939, 2940, 2941, 2942, 2943, 2944, 2945, 2946, 2947, 2948, 2949, 2950, 2951, 2952, 2953, 2954, 2955, 2956, 2957, 2958, 2959, 2960, 2961, 2962, 2963, 2964, 2965, 2966, 2967, 2968, 2969, 2970, 2971, 2972, 2973, 2974, 2975, 2976, 2977, 2978, 2979, 2980, 2981]) {'notifications': <queue.Queue object at 0x7f0197639330>, 'abort': <threading.Event object at 0x7f013adc4130>, 'log': <calibre.utils.logging.GUILog object at 0x7f013adb2080>}


Thank you so much for any time you are able to give to this issue. Even if you are unable to give any more time, thank you so much for all that you've contributed to this community.
thelastclown is offline   Reply With Quote