10-28-2024, 01:04 AM | #1 |
E-Book Enthusiast
Posts: 9
Karma: 10
Join Date: Nov 2013
Location: New Jersey, USA
Device: Droid X2
|
Exporting highlights to file in Viewer on Windows 10 is not working
Hello,
I am not able to export highlights to file from the Viewer on Windows 10. I am clicking Export (from bottom of Highlights panel), then Save to File. After finding the folder to save to and clicking Save, I get this error: Full file name is shown, then, 'File not found. Check the file name and try again.' It is trying to find the file name, that you are trying to create as a new file, to contain the exported highlights. This happens for all 3 formats. Copy to clipboard works. I confirmed with the plain text format, by pasting the clipboard contents into a new .txt file. The Export, Save to file used to work fine with my Windows 10 laptop, but is now not working. Thank you. |
10-28-2024, 05:34 AM | #2 |
creator of calibre
Posts: 44,604
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Works fine for me on my windows 11 machine. Make sure you are using a normal folder not some virtual or networked or similar folder as the destination.
|
10-30-2024, 10:32 PM | #3 |
E-Book Enthusiast
Posts: 9
Karma: 10
Join Date: Nov 2013
Location: New Jersey, USA
Device: Droid X2
|
Thanks for your quick reply. I am trying to save to normal files, not virtual, networked, etc. I always get the error on my windows 10 machine now. Never got it before. The last time I saved highlights was 9/17/23 and it worked fine.
Since the error is complaining that it 'can't find the filename', I tried saving when a file of the same name actually does exist (in this case highlights.txt). In that case, I get this message: Confirm Save As. highlights.txt already exists. Do you want to replace it? Then after clicking Yes button, I get this error: Error: Unhandled exception. OSError:[Errno 69] Bad file descriptor. With the following under Show detail: calibre 6.23 embedded-python: True Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19045') Python 3.10.1 Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free') Interface language: None Traceback (most recent call last): File "calibre\gui2\library\annotations.py", line 280, in save_to_file OSError: [Errno 9] Bad file descriptor During handling of the above exception, another exception occurred: Traceback (most recent call last): File "calibre\gui2\library\annotations.py", line 278, in save_to_file OSError: [Errno 9] Bad file descriptor |
10-30-2024, 11:23 PM | #4 |
E-Book Enthusiast
Posts: 9
Karma: 10
Join Date: Nov 2013
Location: New Jersey, USA
Device: Droid X2
|
Thanks for your quick reply.
I am trying to save highlights to normal folders, not virtual or networked, etc. I always get the error now when trying to use Export>Save file (from highlights panel), on my Windows 10 machine. But I've used this many time before with no problems (last time was 9/17/23). |
10-31-2024, 12:02 AM | #5 |
creator of calibre
Posts: 44,604
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
First of all why are you using such an outdated version of calibre, update.
|
11-04-2024, 12:19 AM | #6 |
E-Book Enthusiast
Posts: 9
Karma: 10
Join Date: Nov 2013
Location: New Jersey, USA
Device: Droid X2
|
Hi Kovid,
I didn't realize I was running an old version, but I see now the message at the bottom right. So, I upgraded and retried, and I am having the same problems still. |
11-04-2024, 01:19 AM | #7 |
Bibliophagist
Posts: 41,027
Karma: 157446408
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
If you copy to clipboard and then paste into a text editor/whatever, does that work?
If you launch calibre as administrator, does that allow saving highlight files (basically, is it a rights issue)? |
11-06-2024, 04:57 AM | #8 |
Fanatic
Posts: 527
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
I can export the hightlights in Calibre Viewer alright. However, now the extension is *.calibre_highlights, while it was .json before and if exported by the Content Server Viewer, it is still in .json format.
And the two files have small difference in structure The one exported by Content Sever Viewer starts with: Code:
{ "version": 1, "type": "calibre_annotation_collection", "annotations": [ Code:
{ "highlights": [ (calibre 7.20.101 - windows 10) Last edited by nqk; 11-06-2024 at 05:05 AM. |
11-06-2024, 08:03 AM | #9 |
creator of calibre
Posts: 44,604
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The reason its different for the content server viewer is that you cant export unknown file types in a browser and that is why the exported JSON has extra metadata at the start to identify what it is.
|
11-06-2024, 05:26 PM | #10 |
E-Book Enthusiast
Posts: 9
Karma: 10
Join Date: Nov 2013
Location: New Jersey, USA
Device: Droid X2
|
DNSB, your solution worked for me. If I run Calibre as Administrator, I can Export highlights and Save to file no problem.
Regrading your question about Save to clipboard, and then paste into Text editor, yes, that has worked all along, and that was how I was working around the problem. Really appreciate your help! Dan |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Highlights: Exporting | NickBel | Viewer | 1 | 10-02-2023 05:47 AM |
Exporting annotations/highlights as a single file | daaronr | Onyx Boox | 5 | 06-20-2022 10:46 AM |
Exporting highlights | MoreEbooks | Library Management | 3 | 06-13-2022 11:23 PM |
Windows File Manager not working after Calibre uninstall | pmgpmg | Calibre | 0 | 08-30-2021 06:54 PM |
Exporting highlights into text | ilyasson | Onyx Boox | 4 | 04-18-2019 11:15 AM |