Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-11-2017, 03:01 AM   #1
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,609
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Problem with "," in series

Hi,

I'm trying to store in calibre a book which series name includes a ",". It isn't possible, however, because calibre raises an error:

Spoiler:
calibre, version 2.99.12
ERROR: Excepción no considerada: <b>ConstraintError</b>:ConstraintError: UNIQUE constraint failed: series.name

calibre 2.99.12 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.10240-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.10240')
Python 2.7.12+
Windows: ('10', '10.0.10240', 'SP0', u'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM (6, 5, 2) && Search The Internet (1, 7, 6) && Generate Cover (1, 5, 21) && KoboTouchExtended (2, 8, 2) && Import List (1, 1, 5) && Barnes & Noble (1, 2, 14) && Owned Books Goodreads (0, 0, 4) && Overdrive Link (2, 13, 0) && Goodreads (1, 1, 12) && Consolidate All Library Metadata (2, 0, 29) && Annotations (1, 4, 11) && Save Composite Custom Columns (1, 1, 0) && SmartEject (2, 0, 6) && Reading List (1, 6, 6) && EpubSplit (2, 2, 0) && Favourites Menu (1, 0, 4) && My Tools (0, 0, 19) && View Manager (1, 4, 1) && Edit Columns (0, 0, 1) && Fantastic Fiction (1, 1, 6) && Goodreads Sync (1, 10, 8) && GetFileName (0, 0, 13) && Modify ePub (1, 4, 3) && Count Pages (1, 7, 3) && Ex Libris (1, 0, 20) && EpubMerge (2, 1, 0) && Extract ISBN (1, 4, 4) && Quality Check (1, 9, 11) && Diaps Editing Toolbag (0, 3, 4) && Find Duplicates (1, 6, 2) && Kobo Utilities (2, 5, 4) && Overdrive Link* (2, 13, 0)
Traceback (most recent call last):
File "site-packages\calibre\gui2\metadata\single.py", line 583, in accept
File "site-packages\calibre\gui2\metadata\single.py", line 558, in apply_changes
File "site-packages\calibre\gui2\metadata\basic_widgets.py", line 635, in commit
File "site-packages\calibre\db\legacy.py", line 810, in func
File "site-packages\calibre\db\cache.py", line 62, in call_func_with_lock
File "site-packages\calibre\db\cache.py", line 1088, in set_field
File "site-packages\calibre\db\write.py", line 544, in set_books
File "site-packages\calibre\db\write.py", line 317, in many_one
File "site-packages\calibre\db\write.py", line 271, in get_db_id
File "site-packages\calibre\db\backend.py", line 842, in execute
File "c:\t\t\apsw-j6gj96\apsw-3.13.0-r1\src\cursor.c", line 236, in resetcursor
ConstraintError: ConstraintError: UNIQUE constraint failed: series.name


I'll remove the "," but I only wanted to report it here because it can happen to more people.
Terisa de morgan is offline   Reply With Quote
Old 06-11-2017, 04:12 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,364
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
It works fine for me. I tried Edit Metadata (Single), editing in the spreadsheet, and editing in the tag browser.

My concern is that there is something wrong with your database. The constraint failure says that the series name is already in the database, but calibre isn't finding it when it checks. That implies that there is something strange, perhaps an odd character encoding or leading/trailing spaces, that prevents calibre from finding the series name in its in memory cache but doesn't prevent sqlite from finding it when it does a constrain check on the actual database.

I note that you have installed CALM. Does it fail on a non-CALM database? Does it fail on a new library?
chaley is offline   Reply With Quote
Advert
Old 06-11-2017, 04:44 AM   #3
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,609
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by chaley View Post
It works fine for me. I tried Edit Metadata (Single), editing in the spreadsheet, and editing in the tag browser.
It was in Edit Metadata (Single), so it should work.

Quote:
Originally Posted by chaley View Post
My concern is that there is something wrong with your database. The constraint failure says that the series name is already in the database, but calibre isn't finding it when it checks. That implies that there is something strange, perhaps an odd character encoding or leading/trailing spaces, that prevents calibre from finding the series name in its in memory cache but doesn't prevent sqlite from finding it when it does a constrain check on the actual database.
I have to check another idea related with it.

Quote:
Originally Posted by chaley View Post
I note that you have installed CALM. Does it fail on a non-CALM database? Does it fail on a new library?
If by non-CALM you mean one that is not included in the plugin, I don't know. If you mean in a database created by CALM, this isn't. And new, I see I have the comma in another library. Blame my alarm to lack of sleep. I have to check you ideas and some more.
Terisa de morgan is offline   Reply With Quote
Old 06-11-2017, 04:53 AM   #4
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,609
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
It was something more strange: the book was there but it didn't appear at the library, so my guess is that the series wasn't found either. After restart the library, the book has appeared and all has worked.
Terisa de morgan is offline   Reply With Quote
Old 06-11-2017, 04:55 AM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,364
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Terisa de morgan View Post
It was something more strange: the book was there but it didn't appear at the library, so my guess is that the series wasn't found either. After restart the library, the book has appeared and all has worked.
Was the book added using the command line, auto-add, or some other non-GUI way while the GUI was running? If so then it is possible that the GUI wasn't fully refreshed, although I would be surprised if Kovid didn't test these cases.
chaley is offline   Reply With Quote
Advert
Old 06-11-2017, 04:59 AM   #6
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,609
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by chaley View Post
Was the book added using the command line, auto-add, or some other non-GUI way while the GUI was running? If so then it is possible that the GUI wasn't fully refreshed, although I would be surprised if Kovid didn't test these cases.
It was moved from a library (which at that moment was open at the content server) to another one, and later a I switched to the destination library, where the problem appeared.
Terisa de morgan is offline   Reply With Quote
Old 06-11-2017, 07:49 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,252
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What exactly were the steps you used?

1) Start calibre
2) open content server and browse the library currently showing in calibre
3) move books from library to another library in calibre
4) switch to library to which you moved book
5) the newly moved book is not visible?

Is that right?
kovidgoyal is offline   Reply With Quote
Old 06-11-2017, 03:10 PM   #8
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,609
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Steps are:
  1. Start calibre in library A
  2. Start content server
  3. Browse library B in content server
  4. Switch calibre gui to library B
  5. Copy book from library B to library A
  6. Switch the gui to library A

Anyway, perhaps I did something wrong, I don't know.
Terisa de morgan is offline   Reply With Quote
Old 06-12-2017, 02:33 AM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,252
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
With those steps the copied book shows up in library A for me when I switch back to it.

Does it happen again for you if you try the steps yourself?
kovidgoyal is offline   Reply With Quote
Old 06-12-2017, 02:37 AM   #10
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,609
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
I'll check it and I'll be back to you.
Terisa de morgan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aura Display "next in series" instead of "finished"? Calibrefan Kobo Reader 3 10-11-2014 12:44 PM
Problem "installing" "Kindle library extractor" dhdurgee Kindle Developer's Corner 7 11-24-2012 07:09 PM
PRS-T1 Sony "Collections" vs Calibre "Series" ted13b Sony Reader 3 02-20-2012 09:46 AM


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


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