Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-28-2024, 01:04 AM   #1
danshand84
E-Book Enthusiast
danshand84 began at the beginning.
 
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.
danshand84 is offline   Reply With Quote
Old 10-28-2024, 05:34 AM   #2
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: 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.
kovidgoyal is offline   Reply With Quote
Old 10-30-2024, 10:32 PM   #3
danshand84
E-Book Enthusiast
danshand84 began at the beginning.
 
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
danshand84 is offline   Reply With Quote
Old 10-30-2024, 11:23 PM   #4
danshand84
E-Book Enthusiast
danshand84 began at the beginning.
 
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).
danshand84 is offline   Reply With Quote
Old 10-31-2024, 12:02 AM   #5
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: 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.
kovidgoyal is offline   Reply With Quote
Old 11-04-2024, 12:19 AM   #6
danshand84
E-Book Enthusiast
danshand84 began at the beginning.
 
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.
danshand84 is offline   Reply With Quote
Old 11-04-2024, 01:19 AM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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)?
DNSB is offline   Reply With Quote
Old 11-06-2024, 04:57 AM   #8
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
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": [
while the one exported by the Main Viewer starts with:
Code:
{
  "highlights": [
Shouldn't they be consistent?

(calibre 7.20.101 - windows 10)

Last edited by nqk; 11-06-2024 at 05:05 AM.
nqk is offline   Reply With Quote
Old 11-06-2024, 08:03 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: 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.
kovidgoyal is offline   Reply With Quote
Old 11-06-2024, 05:26 PM   #10
danshand84
E-Book Enthusiast
danshand84 began at the beginning.
 
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
danshand84 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


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


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