|
|
#1 |
|
Member
![]() Posts: 11
Karma: 10
Join Date: Aug 2024
Device: Kobo Clara HD
|
Wrong embedded python version?
I'm sure I'm missing something here, but I haven't found anything in searches.
I use Ubuntu 24.04 LTS HWE, patched up to date. The Ubuntu Python is 3.12 I have a development setup which is up to date. calibre 8.16.2* embedded-python: True Linux-6.14.0-37-generic-x86_64-with-glibc2.39 Linux ('64bit', 'ELF') ('Linux', '6.14.0-37-generic', '#37~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 10:25:38 UTC 2') Python 3.11.13 BUT the latest code requires Python 3.13, and I get error: ImportError: cannot import name 'ShutDown' from 'queue' (/opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/queue.pyc) Since I assume no-one can run without 3.13, I must have the wrong setup. How do I get 3.13 as the embedded version? Or should I be doing something else to use it? Any help much appreciated. |
|
|
|
|
|
#2 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,225
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Code:
calibre-debug --gui
calibre 8.16.2 embedded-python: True
Linux-6.14.0-37-generic-x86_64-with-glibc2.39 Linux ('64bit', 'ELF')
('Linux', '6.14.0-37-generic', '#37~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 10:25:38 UTC 2')
Python 3.11.14
Interface language: None
EXE path: /opt/calibre/bin/calibre-debug
Successfully initialized third party plugins: ACSM Input (0, 1, 0) && Gather KFX-ZIP (from KFX Input) (2, 27, 1) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 27, 1) && ACSM Input Plugin GUI Extension (0, 1, 0) && Baen (1, 1, 0) && Barnes & Noble (1, 5, 7) && Diaps Editing Toolbag (0, 5, 0) && EpubMerge (3, 2, 0) && EpubSplit (3, 12, 0) && Goodreads (1, 8, 3) && KFX metadata reader (from KFX Input) (2, 27, 1) && From KFX (2, 27, 1) && KFX Input (2, 27, 1) && KindleUnpack - The Plugin (0, 83, 8) && Kobo Utilities (2, 24, 5) && Modify ePub (1, 8, 8)
QPA platform: xcb
devicePixelRatio: 1.09375
logicalDpi: 96.0 x 96.0
physicalDpi: 84.74714828897338 x 84.69527027027027
ApplicationPaletteChange event ignored
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[1.08] splash screen shown
[1.08] Initializing db...
[1.20] db initialized
[1.20] Constructing main UI...
[1.90] [DEBUG] [koboutilities.config:<module>:72] CreateNewCustomColumn is supported
Loaded cached store plugin for: Kobo at version: 16
ACSM Input: GUI Plugin Genesis!
[2.11] [DEBUG] [koboutilities.action:KoboUtilitiesAction.genesis:117] Running in optimized mode
[2.49] GUI main window shown
EpubMerge: DEBUG: 2025-12-28 11:54:01,071: calibre_plugins.epubmerge.epubmerge_plugin(156): macmenuhack file_path:/home/gbmoore/.config/calibre/plugins/fanficfare_macmenuhack.txt
[2.53] [DEBUG] [koboutilities.config:get_library_config:635] library_config: {'SchemaVersion': 1,
'profiles': {'Default': {'customColumnOptions': {'currentReadingLocationColumn': '#folder',
'lastReadColumn': '',
'percentReadColumn': '',
'ratingColumn': 'rating',
'restOfBookEstimateColumn': '',
'timeSpentReadingColumn': ''},
'forDevice': None,
'profileName': 'Default',
'storeOptionsStore': {'doNotStoreIfReopened': False,
'promptToStore': True,
'storeIfMoreRecent': False,
'storeOnConnect': False},
'updateOptionsStore': {'doEarlyFirmwareUpdate': False,
'doFirmwareUpdateCheck': False,
'firmwareUpdateCheckLastTime': 0}}},
'readingPositionChangesStore': {'selectBooksInLibrary': False,
'updeateGoodreadsProgress': False},
'shelvesColumn': None}
[2.53] [DEBUG] [koboutilities.action:KoboUtilitiesAction.device_driver_name:771] could not load extended driver. Exception= No module named 'calibre_plugins.kobotouch_extended'
[2.53] [DEBUG] [koboutilities.action:KoboUtilitiesAction.set_toolbar_button_tooltip:177] setting to text='Utilities to use with Kobo ereaders
Driver: KoboTouch'
[2.63] main UI initialized...
[2.63] Hiding splash screen
[2.63] splash screen hidden
[2.63] Started up in 2.63 seconds with 1326 books
Run calibre without using the development setup. bernie Quote:
|
|
|
|
|
|
|
#3 |
|
Member
![]() Posts: 11
Karma: 10
Join Date: Aug 2024
Device: Kobo Clara HD
|
Wrong embedded python version?
Thanks for that.
I can run the non-development version, but that does not let me use the development environment. I don't use it very often, but I do need it. |
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,733
Karma: 28549306
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The next version of calibre will have python 3.14 embedded. For the moment you should stay at the commit before https://github.com/kovidgoyal/calibr...d5821229224253 to run from source.
|
|
|
|
|
|
#5 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,733
Karma: 28549306
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I just uploaded binaries with the updated python at: https://download.calibre-ebook.com/preview/
so if you install those you should be fine. |
|
|
|
|
|
#6 | |
|
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,741
Karma: 7927573
Join Date: Sep 2020
Device: none
|
Quote:
|
|
|
|
|
|
|
#7 |
|
Member
![]() Posts: 11
Karma: 10
Join Date: Aug 2024
Device: Kobo Clara HD
|
@kovidgoyal Thanks for that. I can wait a while for the update.
|
|
|
|
|
|
#8 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49,213
Karma: 174632678
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I'm also getting a 403 error on the Windows binaries. The MacOS and Linux binaries seem to download without issue.
|
|
|
|
|
|
#9 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,733
Karma: 28549306
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
|
|
|
|
|
#10 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49,213
Karma: 174632678
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Thanks! Works now other than various plugins throwing errors.
Spoiler:
Last edited by DNSB; 12-29-2025 at 05:42 AM. Reason: Edit: adding startup log file |
|
|
|
|
|
#11 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,733
Karma: 28549306
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
imghdr was deprecated years ago and removed from the python stdlib in 3.13 the plugin should be changed to use calibre.utils.imghdr which is much better than the stdlib imghdr ever was anyway.
Same for imp which should be replaced by importlib |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Embedded Python error after applying 'Rebase OPF Manifest IDs on Current Filenames' | mrprobert | Sigil | 7 | 04-15-2025 10:35 PM |
| Language metadata tag causes embedded python error | mrprobert | Sigil | 4 | 12-11-2022 04:58 PM |
| Embedded Python Error on Windows 7 | r5dehr9qcs | Sigil | 11 | 04-27-2022 07:06 AM |
| Sigil not fully launching - Embedded Python error | BookWalker | Sigil | 54 | 01-08-2021 10:08 AM |
| Embedded Python Error? | darkbreath | Sigil | 13 | 10-14-2016 08:35 AM |