06-27-2016, 12:13 PM | #31 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
@petzi:
I have attached a proper Zotero CSV file with only column headings. Your CSV file apparently has different column headings, including perhaps a column with no heading at all. The latter is likely what caused: "Error: file attachments column not found in dict. Cannot proceed." Please confirm that your CSV file is the generic Zotero export CSV file with a proper first row with the column headings, and that all columns have a heading. If there are columns to the far right of column "Legislative Body", which is the last column in the generic CSV file, then ensure they have a column heading too. ZMI reads the first row for the column headings, then maps each CSV column to the correct #zotero_xxxxx custom column in Calibre. It is okay to add new columns the CSV. They just will not be updated in Calibre until they are on the "official list", which is to say, there is a Zotero custom column to map it to. I am going to change ZMI to more gracefully handle corrupt columns. It will still issue the error message, but then will thereafter ignore that corrupt column. Be sure to always use the most recent version of ZMI. Calibre updates its list of plug-ins to pick from only once an hour at the bottom of the hour plus a few minutes. If you want it sooner, you must go to the Original Post and manually download and install it via Preferences > Plug-ins > Load from file. Thanks. DaltonST n.b. Mobileread.com will not allow you to upload a file with a file extension of .csv, so change it to .txt instead. It will also not allow a .7z extension, so you have to use .zip instead. |
06-27-2016, 12:52 PM | #32 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Version 1.0.9 New CSV-related error messages
Version 1.0.9 - 2016-06-27 New CSV-related error messages to assist in correcting CSV data issues.
I hope that you never see these new messages. DaltonST |
Advert | |
|
06-27-2016, 06:05 PM | #33 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Version 1.0.10 - 2016-06-27 Major enhancements.
Version 1.0.10 - 2016-06-27 Major enhancements.
Everyone should upgrade to 1.0.10. DaltonST |
06-27-2016, 06:41 PM | #34 | |||
Connoisseur
Posts: 93
Karma: 13884
Join Date: Dec 2009
Location: Austria
Device: Kindle Oasis, Amazon Fire 7 Tablet, iPad mini 4, iPhone XS
|
Quote:
[2] I have attached the .csv file. I exported it from a collection and left the checkmark "Notes" (or Annotation) unchecked. It is a generic file, I have not touched it, opened it or whatsever. I just zipped it. And I have used the newest ZMI version 1.0.9. (It would be nice if you could include the version number in the ZMI dialog window.) Quote:
In some of my latest trials (starting with version 1.0.6 I believe) I sometimes got different error messages about a "TECHNICAL FAILURE". Quote:
Columns: I have compared your file with my column names. They appear exactly as in my trials. I had no column without a header and I used a generic (default) column setting, when I created the new library. After each trial I deleted the (empty) library and also the folder where the files should go, because there were two metadata files in it. So essentially I started each trial with a complete new session: new library, new .csv-file and so on. PS.: Due to other obligations I do not know when I will have time to look into this issue again. I hope that I will next Monday online again. |
|||
06-27-2016, 09:27 PM | #35 | |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
@petzi:
Calibredb appears to take in the given filename, and "cleans it" to be harmonious with Calibre. It then adds it to Calibre. However, if several filenames become identical after the cleaning process, then only the very first one will be added to Calibre. Calibre will say "duplicate book", and ignore it. It really is not a duplicate in the Zotero storage folder, but remember that Calibre "cleans it", making duplicates dynamically. Example of leading characters in a filename that calibredb will pretend are not there when given to it via the command-line parameter: "." "_" "._" and similar. [1] Try renaming your filenames so none start with "." or "_" or any other characters that calibredb will "clean" so that calibredb does not treat the path differently than it was given to it by ZMI per the Zotero CSV. When it treats it differently, it will of course not be able to find the file to import it! [2] You have many file attachments that have multiple file paths in the same column of the same row, separated by a semicolon (";"). Example: Code:
/Users/peterb/Library/Application Support/Firefox/Profiles/6kbcf8zv.Standard/zotero/storage/EVS5ZD7H/Austria_piaac-erhebung_2011_12.pdf; /Users/peterb/Library/Application Support/Firefox/Profiles/6kbcf8zv.Standard/zotero/storage/PV6N9NSG/idcplg.pdf [3] You have file attachments with single quotes in their filenames. Calibre will "clean" it, and hence never be able to find it. Example: ._[THESIS TITLE GOES HERE] - 'Georgia' Tech Thesis Office.pdf is treated by calibredb as if it were: [THESIS TITLE GOES HERE] - Georgia Tech Thesis Office.pdf [4] Could you please test this very specific file attachment? I can find nothing wrong with it, and it should work perfectly. If it does not, please send me the debug log for that execution of ZMI. Quote:
[5] You have a lot of .html files as attachments. Do you want those imported into Calibre too? Not just .pdf, .epub, etc.? DaltonST |
|
Advert | |
|
06-28-2016, 02:48 AM | #36 | |||
Connoisseur
Posts: 93
Karma: 13884
Join Date: Dec 2009
Location: Austria
Device: Kindle Oasis, Amazon Fire 7 Tablet, iPad mini 4, iPhone XS
|
Quote:
Quote:
Quote:
|
|||
06-28-2016, 06:18 AM | #37 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
@petzi:
Calibre is cross-platform. Use Calibre itself to go into debug mode. Do this: Right-click the Preferences button. Left Click "Restart in Debug Mode". Calibre will restart, giving you a message. Run ZMI for that specific file. Then, exit from Calibre. Immediately afterwards, a text file with the debug log will pop open. Please zip it and send it. Thanks. DaltonST |
06-28-2016, 08:18 AM | #38 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Version 1.0.11 - 2016-06-28 Enhancements.
Version 1.0.11 - 2016-06-28 Enhancements.
Please remember to check Calibre status bar in the lower right corner for a message about which of your installed plug-ins have an update available. Click the message to update ZMI. You should also add the "Plug-in Updater" to your Calibre ToolBar via Preferences. CALIBRE_TEMP_DIR: If you implement CALIBRE_TEMP_DIR, then as a minimum make TMPDIR = CALIBRE_TEMP_DIR. If you want total flexibility, read the Original Post about Special OS Comments, especial item [5]. DaltonST Last edited by DaltonST; 06-28-2016 at 04:40 PM. Reason: New information |
06-28-2016, 02:46 PM | #39 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Version 1.0.12 - 2016-06-28 Major Enhancements.
Version 1.0.12 - 2016-06-28 Major Enhancements.
I have changed ZMI so that calibredb never looks into Zotero for the books. Instead, ZMI copies them into a temporary directory, sanitizes their names while it still know what their Zotero Key is, and then points calibredb to that temporary directory using their Zotero Key to create an Identifier with which to match their metadata automatically. This was necessary due to the complexity of Unicode symbols in some Zotero file attachments (books) that otherwise would never be able to be "found" by calibredb. DaltonST |
06-28-2016, 02:57 PM | #40 | |
Connoisseur
Posts: 93
Karma: 13884
Join Date: Dec 2009
Location: Austria
Device: Kindle Oasis, Amazon Fire 7 Tablet, iPad mini 4, iPhone XS
|
Quote:
|
|
06-28-2016, 04:25 PM | #41 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
@petzi:
Thank you. Could you now upgrade to Version 1.0.12 of ZMI that was heavily enhanced using your Zotero CSV as test data? Then, do the testing again? Thanks. DaltonST |
06-28-2016, 04:58 PM | #42 |
Connoisseur
Posts: 93
Karma: 13884
Join Date: Dec 2009
Location: Austria
Device: Kindle Oasis, Amazon Fire 7 Tablet, iPad mini 4, iPhone XS
|
Sorry, again the same error. Log file attached.
|
06-28-2016, 05:29 PM | #43 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
@petzi,
Thank you. Excellent. You need to purge all books from your Zotero Calibre Library before running the test book. Remember, you must populate your Zotero Calibre Library exclusively with ZMI, and ZMI is evolving rapidly. So, you must do what I do. I delete all of my Zotero Calibre Library books and start over with the exported CSV file. Otherwise, you are mixing apples and oranges (different ZMI versions). Once ZMI reaches steady-state, you will not have to purge the books every time you run a test. ZMI is less than a week old now, and your test data is what is driving its development at the moment. It can handle all of @excaliber's data, but yours...not yet. But soon. Thanks again. DaltonST |
06-28-2016, 06:02 PM | #44 |
Connoisseur
Posts: 93
Karma: 13884
Join Date: Dec 2009
Location: Austria
Device: Kindle Oasis, Amazon Fire 7 Tablet, iPad mini 4, iPhone XS
|
Actually during the test sessions with you I am always deleting the Zotero Calibre Library and then deleting the folder where still some metadata are stored. I always start form scratch. I do not understand the duplicate message…
Anyway I attached the debug log from the new test iteration. There is now a more detailed error message. But the hint with the manual update I do not understand. There are no books in my new database to update manually. [Just another small issue: Whenever I start from scratch I will get the notification from Calibre (calibre-notifier) that some column are missing and I should wait. But actually nothing will happen before I press the ZMI button for “Autovalidate/Generate Current Library…". Only then the missing columns will be generated. No big deal but could user confuse.] |
06-28-2016, 06:09 PM | #45 | |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
@petzi:
Your Calibre library metadata.db appears to need fixing. Calibre > Library Button > Library Maintenance > Check Library. Then, tell it to delete all of the invalid entries it finds. Do this after you have deleted all of the books. Quote:
DaltonST |
|
Tags |
ris, zotero |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Consolidate All Library Metadata (CALM) | DaltonST | Plugins | 334 | 02-02-2025 03:28 PM |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 496 | 01-28-2025 10:48 AM |
[GUI Plugin] OPML Importer (RSS feeds from feedly/google reader) | fem | Plugins | 14 | 07-19-2014 11:41 AM |
Getting custom metadata field in GUI plugin | SauliusP. | Development | 7 | 02-11-2012 02:31 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |