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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-13-2026, 12:50 PM   #31
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 82,414
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DiapDealer View Post
The actual error message would be a lot more helpful than "still causing a crash". The error could have moved to a new point in the code for all we know.
Here is the crash.
Code:
calibre, version 9.5.0
ERROR: Unhandled exception: <b>AttributeError</b>:type object 'QStandardPaths' has no attribute 'DownloadLocation'

calibre 9.5  embedded-python: True
Windows-11-10.0.26200-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '11', '10.0.26200')
Python 3.14.2
Windows: ('11', '10.0.26200', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre2\calibre.exe
Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 29, 0) && DeDRM (10, 0, 15) && Package KFX (from KFX Input) (2, 29, 0) && Apple Books covers (1, 1, 1) && Backup Configuration Folder (1, 1, 2) && Barnes & Noble (1, 5, 8) && BookFusion Plugin (0, 8, 1) && Calibre Auto-Updater (1, 1, 0) && Calibre Config Reports (4, 1, 0) && Count Pages (1, 14, 6) && Current Paths (3, 0, 0) && Diaps Editing Toolbag (0, 5, 0) && EpubCheck (0, 2, 6) && EpubMerge (3, 2, 0) && EpubSplit (3, 12, 0) && Favourites Menu (1, 3, 2) && Find Duplicates (1, 10, 10) && Generate Cover (2, 3, 7) && Hyphenate This! (0, 1, 4) && KFX metadata reader (from KFX Input) (2, 29, 0) && From KFX (2, 29, 0) && KFX Input (2, 29, 0) && Set KFX metadata (from KFX Output) (2, 18, 0) && KFX Output (2, 18, 0) && Kindle hi-res covers (0, 5, 1) && KindleUnpack - The Plugin (0, 83, 8) && Kobo Metadata (1, 12, 1) && Kobo Utilities (2, 27, 1) && Modify ePub (1, 8, 9) && Palette Switcher (1, 1, 1000) && Quality Check (1, 14, 7) && Reading Goal (2, 0, 9) && Reading List (1, 15, 7) && ScrambleEbook (0, 6, 0) && StoryGraph (2, 0, 8) && TextDiff (1, 3, 1)
Traceback (most recent call last):
  File "calibre_plugins.calibre_autoupdater.action", line 54, in ejecutar_actualizacion
  File "calibre_plugins.calibre_autoupdater.action", line 84, in actualizar_windows
AttributeError: type object 'QStandardPaths' has no attribute 'DownloadLocation'
JSWolf is online now   Reply With Quote
Old 03-13-2026, 01:12 PM   #32
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,201
Karma: 211539966
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
OK, that's my bad. I forgot that PyQt6 requires full enums. No shortcuts allowed. the line in question should actually read:

Code:
descargas = QStandardPaths.writableLocation(QStandardPaths.StandardLocation.DownloadLocation)
But something is still wrong. Once you click the OK button, Calibre closes and immediately complains that the installer is not valid. The calibre-setup.msi file HAS been created in Downloads, but it's only 3Kb in size. I think the "https://download.calibre-ebook.com/64bit" url is being redirected to an actual filename that urllib.request is not following. The urls for the other platforms actually end in file names.

Last edited by DiapDealer; 03-13-2026 at 01:24 PM.
DiapDealer is offline   Reply With Quote
Old 03-13-2026, 01:24 PM   #33
dunhill
Wizard
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 1,069
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by DiapDealer View Post
OK, that's my bad. I forgot that PyQt6 requires full enums. the line in question should actually read:

descargas = QStandardPaths.writableLocation(QStandardPaths.Sta ndardLocation.DownloadLocation)

But something is still wrong. Once you click the OK button, Calibre closes and immediately complains that the installer is not valid. The calibre-setup.msi file HAS been created in Downloads, but it's only 3Kb in size. I think the "https://download.calibre-ebook.com/64bit" url is being redirected to an actual filename that urllib.request is not following. The urls for the other platforms actually end in file names.
If I'm checking, that's exactly what's happening on Mac, for example. The plugin downloads a renamed file, e.g., calibre-update.dmg, when in reality, from the website, it downloads calibre-9.5.0.dmg.
dunhill is offline   Reply With Quote
Old 03-13-2026, 01:24 PM   #34
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,201
Karma: 211539966
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Merely a case of the Windows download url being incorrect. It should be "https://calibre-ebook.com/dist/win64"

Changing that and the above enum issue got it working on my Windows 10 test machine.
DiapDealer is offline   Reply With Quote
Old 03-13-2026, 01:27 PM   #35
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,201
Karma: 211539966
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Looks like the macOS url should be "https://calibre-ebook.com/dist/osx" and then create the generic name to be saved as you do with Windows.
DiapDealer is offline   Reply With Quote
Old 03-13-2026, 01:34 PM   #36
dunhill
Wizard
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 1,069
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by DiapDealer View Post
Looks like the macOS url should be "https://calibre-ebook.com/dist/osx" and then create the generic name to be saved as you do with Windows.
Thanks for the help debugging this!"
next version v1.1.1
dunhill is offline   Reply With Quote
Old 03-13-2026, 01:38 PM   #37
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,201
Karma: 211539966
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
No problem. I can't test the macOS version. It looks like you're doing something a little different when running the installer on macOS. On Windows it's os.startfile(dest) (if dest exists) and on macOS it looks like you're using subprocess.Popen on the downloaded .dmg. Hopefully someone can confirm it's working on macOS.

Last edited by DiapDealer; 03-13-2026 at 02:08 PM.
DiapDealer is offline   Reply With Quote
Old 03-13-2026, 02:02 PM   #38
dunhill
Wizard
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 1,069
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
New Update: Version 1.1.1
I've just uploaded version 1.1.1 with some critical fixes for Windows and macOS.
What's New:
Improved Path Detection: Now using QStandardPaths to dynamically find the Downloads folder. This solves the "folder not found" error for users with OneDrive backup enabled or non-English system paths.
Redirection Fix: Updated the download URLs to ensure the installer is downloaded correctly (fixing the 3KB file issue).
macOS Stability: Better handling of the .dmg file to prevent "damaged image" errors on newer versions like Tahoe.
Clearer Instructions: Updated the confirmation dialog to be more explicit about which calibre installations are supported.
Special Thanks:
A huge shout-out to DiapDealer for the invaluable suggestion regarding QStandardPaths and the PyQt6 enum syntax. Your feedback helped make this plugin much more robust for the community!
dunhill is offline   Reply With Quote
Old 03-13-2026, 02:03 PM   #39
dunhill
Wizard
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 1,069
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by DiapDealer View Post
No problem. I can't test the macOS version. It looks like you're doing something a little different when running the installer on macOS. On Windows it's os.startfile(dest) (if dest exists) and on macOS it looks like you're using subprocess.Popen on the downloaded .dmg. Hopefully someone can confirm its working on macOS.
I'm sharing the file with people using Macs to see the new behavior.
dunhill is offline   Reply With Quote
Old 03-13-2026, 02:18 PM   #40
dunhill
Wizard
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 1,069
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Tested and working on MacOS! Enjoy!
Attached Thumbnails
Click image for larger version

Name:	photo_2026-03-13_15-11-15.jpg
Views:	10
Size:	98.1 KB
ID:	221734  
dunhill is offline   Reply With Quote
Old 03-13-2026, 07:40 PM   #41
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 82,414
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I downloaded calibre via the plugin and I did an md5sum of both installers and they matched.

Last edited by JSWolf; 03-13-2026 at 07:45 PM.
JSWolf is online now   Reply With Quote
Old 03-13-2026, 07:58 PM   #42
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: 46,083
Karma: 29579912
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just FYI if you are running upgrades on macOS and windows, they can be fully automated you dont need the user to perform manual steps. Google how to use msiexec to automate msi installation and for macOS you can use hdiutil and ditto to automate copying. See the update-on-ox script in calibre for an example.

Similarly on Linux you can prompt the user for their sudo password and then pipe it in to STDIN to automate. Of course Linux is a total mess of custom setups some people may not use sudo preferring an alternative, others may have setup passwordless sudo and so on and so forth.
kovidgoyal is offline   Reply With Quote
Old 03-13-2026, 11:04 PM   #43
dunhill
Wizard
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 1,069
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by kovidgoyal View Post
Just FYI if you are running upgrades on macOS and windows, they can be fully automated you dont need the user to perform manual steps. Google how to use msiexec to automate msi installation and for macOS you can use hdiutil and ditto to automate copying. See the update-on-ox script in calibre for an example.

Similarly on Linux you can prompt the user for their sudo password and then pipe it in to STDIN to automate. Of course Linux is a total mess of custom setups some people may not use sudo preferring an alternative, others may have setup passwordless sudo and so on and so forth.
Thank you so much for the tips, Kovid! I really appreciate you taking the time to point me in the right direction.
Automating the installation via msiexec and hdiutil sounds like the perfect path to make the experience seamless. I will definitely look into the update-on-osx script for inspiration.
For now, I'll focus on making sure the download process is 100% stable across all platforms with the current manual steps, and then I'll start working on full automation for the next major release. Thanks again!
dunhill is offline   Reply With Quote
Old Yesterday, 07:47 AM   #44
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,858
Karma: 80512826
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
On Windows 11 I've been just using the built-in winget command to check for and install updates.
PeterT is offline   Reply With Quote
Old Yesterday, 08:23 AM   #45
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 82,414
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I have some ideas for updated to the plug-in that would make it much more useful.

Allow us to select a directory we want to put the installer in and name the installer based on the version number. Putting is in the Windows Downloads directory with a fixed name is not a good idea. We would not have an older version should we want to go back. Also, I'd rather be able to clean out the downloads directory when I want.

There have been some minor cases where something wasn't working and the only solution was to go to the previous version.

Last edited by JSWolf; Yesterday at 08:28 AM.
JSWolf is online now   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
[GUI Plugin] Auto Datestamp and View eater Plugins 3 04-08-2020 06:08 PM
Calibre needs an Auto-Updater smartguy Calibre 30 01-23-2020 02:24 PM
Problem with my ScrambleEbook plugin and the Plugin Updater tool jackie_w Development 14 01-19-2017 10:49 PM
Solution: Calibre AutoUpdater [Auto-Updater] megamaniac Calibre 6 08-02-2013 09:47 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


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


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