|
|
#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,823
Karma: 28586150
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,823
Karma: 28586150
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,767
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,400
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,823
Karma: 28586150
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
|
|
|
|
|
#10 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49,400
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,823
Karma: 28586150
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 |
|
|
|
|
|
#12 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 221
Karma: 135428
Join Date: Oct 2011
Location: Germany (south-west)
Device: Kobo Libra 2 & Clara 2E, Tolino shine 5th Gen
|
Trying to start calibre-debug -g from latest source (CALIBRE_DEVELOP_FROM) and calibre-8.16.100 binaries but getting this error:
Code:
calibre 8.99.3* embedded-python: True
Linux-6.18.3-arch1-1-x86_64-with-glibc2.42 Linux ('64bit', 'ELF')
('Linux', '6.18.3-arch1-1', '#1 SMP PREEMPT_DYNAMIC Fri, 02 Jan 2026 17:52:55 +0000')
Python 3.14.2
Interface language: de
EXE path: /opt/calibre/bin/calibre-debug
Successfully initialized third party plugins: Count Pages (1, 14, 4) && DNB_DE (3, 2, 5) && EpubSplit (3, 12, 0) && Modify ePub (1, 8, 8) && Quality Check (1, 14, 6)
QPA platform: wayland
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 93.78461538461538 x 92.36363636363636
ApplicationPaletteChange event ignored
Using calibre Qt style: True
Traceback (most recent call last):
File "runpy.py", line 198, in _run_module_as_main
File "runpy.py", line 88, in _run_code
File "site.py", line 47, in <module>
File "site.py", line 43, in main
File "/home/martin/src/calibre/src/calibre/debug.py", line 236, in main
calibre(['calibre'] + args[1:])
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/martin/src/calibre/src/calibre/gui_launch.py", line 74, in calibre
main(args)
~~~~^^^^^^
File "/home/martin/src/calibre/src/calibre/gui2/main.py", line 546, in main
run_main(app, opts, args, gui_debug, si, retry_communicate=True)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/martin/src/calibre/src/calibre/gui2/main.py", line 558, in run_main
return run_gui(opts, args, app, gui_debug=gui_debug)
File "/home/martin/src/calibre/src/calibre/gui2/main.py", line 397, in run_gui
run_gui_(opts, args, app, gui_debug)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/martin/src/calibre/src/calibre/gui2/main.py", line 407, in run_gui_
from calibre.gui2.ui import Main
File "/home/martin/src/calibre/src/calibre/gui2/ui.py", line 39, in <module>
from calibre.gui2.init import LayoutMixin, LibraryViewMixin
File "/home/martin/src/calibre/src/calibre/gui2/init.py", line 38, in <module>
from calibre.gui2.library.bookshelf_view import BookshelfView
File "/home/martin/src/calibre/src/calibre/gui2/library/bookshelf_view.py", line 90, in <module>
from calibre_extensions.progress_indicator import contrast_ratio
ImportError: cannot import name 'contrast_ratio' from 'calibre_extensions.progress_indicator' (/opt/calibre/lib/calibre-extensions/progress_indicator.so)
Last edited by beedaddy; 01-07-2026 at 06:10 AM. |
|
|
|
|
|
#13 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,823
Karma: 28586150
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need ot use the beta binaries if you want to run from current source.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
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 |