Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 01-26-2023, 09:52 AM   #286
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
[1] Run in DEBUG mode, then post the entire debug log.

[2] The harmonize_enumeration_displays error hints that you have not yet harmonized all of your custom columns yet, especially valid values for Enumeration datatypes. Read the tool-tips. Use the Job Spy tool for creating a matrix of all custom columns in all of your libraries.

I will look at it after you post your debug log.


Added: the sorting of the column by clicking the column header is a Qt 6 error. I worked fine in Qt 5, but Qt 6 requires a more specific instruction. You are the first person to report this (maybe the first to try to sort it since Calibre 6.0.0?). Anyway, the next release of CALM will sort it again, but as always in earlier releases, it will only sort by the Name column.

Added: I have bullet-proofed the error you got re: harmonizing your enumeration custom column values. I will release a new version of CALM soon. You still have to harmonize your enumerations, however; it just won't throw an error. In debug mode, it will print a message of exactly what was wrong with your custom column.


Debug mode via command line: calibre-debug -g



DaltonST

Last edited by DaltonST; 01-26-2023 at 12:07 PM. Reason: sorting issue
DaltonST is offline   Reply With Quote
Old 01-26-2023, 12:50 PM   #287
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Version 2.0.45 Qt6 compatibility. Improve DEBUG Output.

Version 2.0.45 -2023-01-26 Qt6 compatibility. Improve DEBUG for enumeration harmonization.


DaltonST
DaltonST is offline   Reply With Quote
Old 01-29-2023, 11:34 PM   #288
Sue_
Enthusiast
Sue_ began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Mar 2014
Device: Kobo, Bebook One
Source library not found?

I have my calibre libraries on an internal HDD, with opensuse installed on the SSD.
My libraries are in a folder on the HDD, Collections/Calibre/
The collections folder is symlinked to home, and at first I thought maybe that was the issue, so I changed the path for every library in calibre to the direct path, but the issue persists.

When I try to run the get columns, the window pops up for every library - could not open.

The debug: Everything seems fine for all libraries until this point:

Attaching to New Source Library: /datahdd/@/mydata/media/collections/calibre/main library/metadata.db
NOT Attached: /datahdd/@/mydata/media/collections/calibre/main library/metadata.db
CantOpenError: unable to open database: /datahdd/@/mydata/media/collections/calibre/main library/metadata.db
^^^^^^^ Source Library was NOT found: /datahdd/@/mydata/media/collections/calibre/main library


I have used the check function, and the dbs are not corrupt, so I don't know what is causing this issue.
Sue_ is offline   Reply With Quote
Old 01-30-2023, 12:06 AM   #289
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Wild guess: the '/@/' in the path?

Try copying a small test library to a vanilla path for testing.



DaltonST
DaltonST is offline   Reply With Quote
Old 01-30-2023, 01:11 AM   #290
Sue_
Enthusiast
Sue_ began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Mar 2014
Device: Kobo, Bebook One
Quote:
Originally Posted by DaltonST View Post
Wild guess: the '/@/' in the path?

Try copying a small test library to a vanilla path for testing.



DaltonST

I hope thats not it, @ is the filesystem, btrfs subvolume

To move it away, I will have to move huge libraries onto a different drive (so a "real" move)

But the symlink version of the file path, no @, didn't work either....

I will try a library on the other drive, but is there another way to fix it if this is the issue?
Sue_ is offline   Reply With Quote
Old 01-30-2023, 01:32 AM   #291
Sue_
Enthusiast
Sue_ began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Mar 2014
Device: Kobo, Bebook One
Nope, put a couple libraries into a folder on home, same errors.
Very confused, direct doesn't work, symlinked doesn't work, actually in the home folder doesn't work.
Libraries are all checked, not corrupted.
CALM has no trouble creating/deleting/refreshing its own library with all of the filepaths, so why would it not be able to open the other libraries to get the columns?
Sue_ is offline   Reply With Quote
Old 01-30-2023, 09:53 AM   #292
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Idea: the library where you run CALM can be totally random (just not the target CALM library itself). So, switch to one of the source libraries before configuring it for a generation. If it was already, switch it to a library on the same drive as Calibre's executable.

APSW, the SQLite package, appears to have a .db connection failure due to permissions or other basic but annoying issue.

DaltonST
DaltonST is offline   Reply With Quote
Old 01-30-2023, 09:26 PM   #293
Sue_
Enthusiast
Sue_ began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Mar 2014
Device: Kobo, Bebook One
Already was in a Non- CALM library on the same drive

Permissions shouldn't be an issue either, but I checked and as it should be.
Sue_ is offline   Reply With Quote
Old 01-31-2023, 12:09 AM   #294
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Try creating a new, empty library in a new local drive directory by having Calibre copy the structure of a real one. In CALM, remove all source libraries, then add just the new empty one. Save. See what happens.

I assume LAN drives are not involved, since Calibre doesn't support them.
DaltonST is offline   Reply With Quote
Old 01-31-2023, 02:55 AM   #295
Sue_
Enthusiast
Sue_ began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Mar 2014
Device: Kobo, Bebook One
No change
It's going to be something stupid and small, but those are the hardest to find sometimes............
Sue_ is offline   Reply With Quote
Old 01-31-2023, 07:37 AM   #296
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Added debug statements to the apsw_attach_to_source function

I added some new debug statements to the apsw_attach_to_source function, and increased the busy timeout from 2000 to 4000 milliseconds.

Example of its debug log:

Code:
ATTACH DATABASE 's:/calibre/calibrelibrarycodes/metadata.db'  AS 'SOURCE' ;
length of path:  42
Attaching to New Source Library: s:/calibre/calibrelibrarycodes/metadata.db
Now Attached to New Source Library: s:/calibre/calibrelibrarycodes/metadata.db
PRAGMA SOURCE.busy_timeout = 4000;
Finished: apsw_attach_to_source
Try the attached .zip by loading it from the file in Preferences > Plugins, and restarting.

Random thoughts: path length too long; OS case sensitivity; busy timeout was too short for your hardware; something that makes your flavor of Linux different from all others; using a server Linux instead of a desktop Linux?


DaltonST

Last edited by DaltonST; 02-04-2023 at 05:20 PM.
DaltonST is offline   Reply With Quote
Old 01-31-2023, 07:45 PM   #297
Sue_
Enthusiast
Sue_ began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Mar 2014
Device: Kobo, Bebook One
Longest was 53, is that ok?
Opensuse Tumbleweed is intended for desktop.
Computer not that old, plus a little overloaded with ram, os installed on SSD, speed shouldn't be an issue.

Going to delete all and try again, just in case it decides to like me.
Sue_ is offline   Reply With Quote
Old 01-31-2023, 07:51 PM   #298
Sue_
Enthusiast
Sue_ began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Mar 2014
Device: Kobo, Bebook One
Deleted all and started over, same as before.
Sue_ is offline   Reply With Quote
Old 01-31-2023, 08:41 PM   #299
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
So, to summarize, it fails even if 100%, all, of the source libraries are on the same drive as Calibre is installed and with full read/write/execute permissions for Calibre? And the debug log via calibre-debug -g shows the 'attaching to...' message, but then jumps directly to the fatal error message of 'cannot open'?



DaltonST
DaltonST is offline   Reply With Quote
Old 01-31-2023, 11:55 PM   #300
Sue_
Enthusiast
Sue_ began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Mar 2014
Device: Kobo, Bebook One
The libraries were all on the main drive where os and applications are installed, direct - no symlink.
Calibre itself has no issue interacting with the libraries at all, permissions are normal and as expected in the user home folder.

The same thing happened:

ATTACH DATABASE '/home/susan/calibre/testlibrary/metadata.db' *AS 'SOURCE' ;
length of path: *43
Attaching to New Source Library: /home/susan/calibre/testlibrary/metadata.db
NOT Attached: /home/susan/calibre/testlibrary/metadata.db
CantOpenError: unable to open database: /home/susan/calibre/testlibrary/metadata.db
^^^^^^^ Source Library was NOT found: */home/susan/calibre/testlibrary

This happens on all libraries, but for everything else it seems fine, after these errors it goes on to “source library path added to set" and then “adding source to table _source_libraries” for each library.

The only thing that really makes my system different from most Linux users would be that most Linux installs haven't used btrfs as the default option, but that shouldn't cause an issue?
Sue_ is offline   Reply With Quote
Reply

Tags
calibredb, consolidate, genre, tags


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 492 10-25-2022 08:13 AM
[Metadata Source Plugin] SRU - Library of Congress & GBV (ger) vform Plugins 3 01-28-2014 04:54 PM
Getting custom metadata field in GUI plugin SauliusP. Development 7 02-11-2012 01:31 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM
Can I make Sony Ebook Library consolidate my library? palex481 Sony Reader 5 05-18-2008 07:44 PM


All times are GMT -4. The time now is 04:08 PM.


MobileRead.com is a privately owned, operated and funded community.