Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-19-2025, 04:23 PM   #1
toadclones
Junior Member
toadclones began at the beginning.
 
Posts: 7
Karma: 42
Join Date: Dec 2023
Device: Kindle(11th gen)
Python 3.11 for HF devices (firmware >= 5.16.3)

Thanks to NiLuJe and crazyelectron for the help. I used crazyelectron's build as a starting point.

I got most if not all of the 3rd party packages originally included in NiLuJe's python installed.

Here's a list of the major packages:
  • sqlite3
  • requests
  • bs4
  • httpie (added symlinks like NiLuJe's package)
  • Wand
  • FBInk bindings
  • numpy
  • pillow
  • cryptography
  • pyOpenSSL

I have only tested this on my Kindle 11th gen (2022).
I have only tested LibrarianSync(NiLuJe's fork), which works if you edit the python scripts to use python3 instead of 2.7

Note: I learned that cross compiling sucks ass even with the proper toolchain so I probably wont be adding much to this, unless it's a pure python package then sure why not. I included the Dockerfile and code I used, it's a complete mess so apologies if you look at it.
Attached Files
File Type: zip python3.11-khf.zip (20.64 MB, 58 views)
toadclones is offline   Reply With Quote
Old 04-20-2025, 07:57 AM   #2
jeliozver
Junior Member
jeliozver began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2023
Device: KT2, PW5
Can you please post the lybrariansync update too?
jeliozver is offline   Reply With Quote
Old 04-20-2025, 11:53 AM   #3
toadclones
Junior Member
toadclones began at the beginning.
 
Posts: 7
Karma: 42
Join Date: Dec 2023
Device: Kindle(11th gen)
Quote:
Originally Posted by jeliozver View Post
Can you please post the lybrariansync update too?
It's very easy to do, just grab NiLuJe's fork here https://github.com/NiLuJe/librariansync (updated for python3)

Go through the .py files and check for this at the top:
Code:
#!/usr/bin/env python2.7
If it's there, change the 2.7 to a 3 like this:
Code:
#!/usr/bin/env python3
The only 2 files that need changing are:
librarian_download.py
generate_collections.py
toadclones is offline   Reply With Quote
Old 04-20-2025, 12:18 PM   #4
jeliozver
Junior Member
jeliozver began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2023
Device: KT2, PW5
Would never imagined it will be that easy, worked like a charm, collections created! Thanks so much, this was pretty much the most i wanted to get from a jb kindle
jeliozver is offline   Reply With Quote
Old 04-20-2025, 10:18 PM   #5
hondabf
Enthusiast
hondabf doesn't litterhondabf doesn't litter
 
hondabf's Avatar
 
Posts: 41
Karma: 100
Join Date: Jan 2024
Device: Kindle PW4
This is awesome, thanks!

Last edited by hondabf; 04-27-2025 at 10:33 PM.
hondabf is offline   Reply With Quote
Old 04-25-2025, 11:52 AM   #6
Mr Groch
Junior Member
Mr Groch began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2019
Device: Kindle PW 4, PB Era Color
Doesn't work on PW4 I see that install.sh script fails on some point when installing from bin mrpackage... Sorry, I don't know how to help better - If there is some log that I can share, please tell me how, so I can help
Mr Groch is offline   Reply With Quote
Old 04-26-2025, 07:33 AM   #7
shamanNS
Wizard
shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.
 
Posts: 1,091
Karma: 12000090
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
Check the MRPI log file at: /extensions/MR Installer/log(s)/
shamanNS is offline   Reply With Quote
Old 04-28-2025, 01:35 PM   #8
Urfee
Junior Member
Urfee began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2025
Device: Kindle 11gen
Please tell me how to install this version of python correctly. I don't understand anything about it. KUAL is installed.
Urfee is offline   Reply With Quote
Old 04-28-2025, 04:23 PM   #9
Mr Groch
Junior Member
Mr Groch began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2019
Device: Kindle PW 4, PB Era Color
Quote:
Originally Posted by shamanNS View Post
Check the MRPI log file at: /extensions/MR Installer/log(s)/
Thanks for help.

This is mrinstaller.log:

Code:
**** **** **** ****

[2025-04-28 @ 22:18:16 +0200] :: [MRPI r19303] - Beginning the processing of package 'Update_python3.11_install_khf_11thgenplus.bin' (python3.11 I khf 11thgenplus) . . .

Extracting update package 'Update_python3.11_install_khf_11thgenplus.bin' to '/var/tmp/mrpi/staging'.
Bundle         SP01 (Signing Envelope)
Cert number    0
Cert file      pubdevkey01.pem (Developer)
Bundle         FD04 (Versionless [vls])
Bundle Type    OTA V2
Minimum OTA    0
Target OTA     18446744073709551615
Devices        88
Device         Kindle 5 Touch WiFi (0x11)
Device         Kindle 5 Touch WiFi+3G (0x0F)
Device         Kindle 5 Touch WiFi+3G Europe (0x10)
Device         Kindle PaperWhite WiFi (0x24)
Device         Kindle PaperWhite WiFi+3G (0x1B)
Device         Kindle PaperWhite WiFi+3G Canada (0x1C)
Device         Kindle PaperWhite WiFi+3G Europe (0x1D)
Device         Kindle PaperWhite WiFi+3G Japan (0x1F)
Device         Kindle PaperWhite WiFi+3G Brazil (0x20)
Device         Kindle PaperWhite 2 (2013) WiFi (0xD4)
Device         Kindle PaperWhite 2 (2013) WiFi Japan (0x5A)
Device         Kindle PaperWhite 2 (2013) WiFi+3G (0xD5)
Device         Kindle PaperWhite 2 (2013) WiFi+3G Canada (0xD6)
Device         Kindle PaperWhite 2 (2013) WiFi+3G Europe (0xD7)
Device         Kindle PaperWhite 2 (2013) WiFi+3G Russia (0xD8)
Device         Kindle PaperWhite 2 (2013) WiFi+3G Japan (0xF2)
Device         Kindle PaperWhite 2 (2013) WiFi (4GB) International (0x17)
Device         Kindle PaperWhite 2 (2013) WiFi+3G (4GB) Europe (0x60)
Device         Kindle PaperWhite 2 (2013) WiFi+3G (4GB) (0x62)
Device         Kindle PaperWhite 2 (2013) WiFi+3G (4GB) Canada (0x5F)
Device         Kindle PaperWhite 2 (2013) WiFi+3G (4GB) Brazil (0x61)
Device         Kindle Basic (2014) (0xC6)
Device         Kindle Basic (2014) Australia (0xDD)
Device         Kindle Voyage WiFi (0x13)
Device         Kindle Voyage WiFi+3G (0x54)
Device         Kindle Voyage WiFi+3G Europe (0x53)
Device         Kindle Voyage WiFi+3G Japan (0x2A)
Device         Kindle Voyage WiFi+3G Mexico (0x52)
Device         Kindle Voyage WiFi+3G (Variant 0x4F) (0x4F)
Device         Kindle PaperWhite 3 (2015) WiFi (0G1 -> 0x201)
Device         Kindle PaperWhite 3 (2015) WiFi+3G Japan (0G7 -> 0x207)
Device         Kindle PaperWhite 3 (2015) WiFi+3G Canada (0G6 -> 0x206)
Device         Kindle PaperWhite 3 (2015) WiFi+3G (0G2 -> 0x202)
Device         Kindle PaperWhite 3 (2015) WiFi+3G Europe (0G5 -> 0x205)
Device         Kindle PaperWhite 3 (2015) WiFi+3G Mexico (0G4 -> 0x204)
Device         Kindle PaperWhite 3 (2016) WiFi (32GB) Japan (0LK -> 0x293)
Device         White Kindle PaperWhite 3 (2016) WiFi (0KB -> 0x26B)
Device         White Kindle PaperWhite 3 (2016) WiFi+3G Japan (0KC -> 0x26C)
Device         White Kindle PaperWhite 3 (2016) WiFi (32GB) Japan (0LL -> 0x294)
Device         White Kindle PaperWhite 3 (2016) WiFi+3G International (0KE -> 0x26E)
Device         White Kindle PaperWhite 3 (2016) WiFi+3G International (Bis) (0KF -> 0x26F)
Device         Kindle Oasis WiFi (0GC -> 0x20C)
Device         Kindle Oasis WiFi+3G (0GD -> 0x20D)
Device         Kindle Oasis WiFi+3G Europe (0GU -> 0x21C)
Device         Kindle Oasis WiFi+3G International (0GR -> 0x219)
Device         Kindle Oasis WiFi+3G China (0GT -> 0x21B)
Device         Kindle Basic 2 (2016) (0K9 -> 0x269)
Device         White Kindle Basic 2 (2016) (0KA -> 0x26A)
Device         Kindle Oasis 2 (2017) WiFi (8GB) (0P8 -> 0x2E8)
Device         Kindle Oasis 2 (2017) WiFi+3G (32GB) (0S1 -> 0x341)
Device         Kindle Oasis 2 (2017) WiFi (32GB) (0SA -> 0x34A)
Device         Kindle Oasis 2 (2017) WiFi+3G (32GB) Europe (0S2 -> 0x342)
Device         Champagne Kindle Oasis 2 (2017) WiFi (32GB) (0P1 -> 0x2E1)
Device         Kindle Oasis 2 (2017) WiFi+3G (32GB) (Variant 0P6) (0P6 -> 0x2E6)
Device         Kindle PaperWhite 4 (2018) WiFi (8GB) (0PP -> 0x2F7)
Device         Kindle PaperWhite 4 (2018) WiFi (32GB) (0T6 -> 0x366)
Device         Kindle PaperWhite 4 (2018) WiFi+4G (32GB) (0T1 -> 0x361)
Device         Kindle PaperWhite 4 (2018) WiFi+4G (32GB) Europe (0T2 -> 0x362)
Device         Kindle PaperWhite 4 (2018) WiFi (8GB) India (102 -> 0x402)
Device         Kindle PaperWhite 4 (2018) WiFi+4G (32GB) Japan (0T3 -> 0x363)
Device         Twilight Blue Kindle PaperWhite 4 (2018) WiFi (8GB) (16T -> 0x4DB)
Device         Twilight Blue Kindle PaperWhite 4 (2018) WiFi (32GB) (16Q -> 0x4D8)
Device         Plum Kindle PaperWhite 4 (2018) WiFi (8GB) (16U -> 0x4DC)
Device         Sage Kindle PaperWhite 4 (2018) WiFi (8GB) (16V -> 0x4DD)
Device         Kindle PaperWhite 4 (2018) WiFi (32GB) India (103 -> 0x403)
Device         Plum Kindle PaperWhite 4 (2018) WiFi (32GB) (16R -> 0x4D9)
Device         Sage Kindle PaperWhite 4 (2018) WiFi (32GB) (16S -> 0x4DA)
Device         Kindle Basic 3 (2019) (10L -> 0x414)
Device         White Kindle Basic 3 (2019) (0WH -> 0x3D1)
Device         Kindle Basic 3 (2019) Kids Edition (0VB -> 0x3AB)
Device         White Kindle Basic 3 (2019) (8GB) (0WF -> 0x3CF)
Device         Champagne Kindle Oasis 3 (2019) WiFi (32GB) (11L -> 0x434)
Device         Kindle Oasis 3 (2019) WiFi+4G (32GB) Japan (0WQ -> 0x3D8)
Device         Kindle Oasis 3 (2019) WiFi+4G (32GB) (0WN -> 0x3D6)
Device         Kindle Oasis 3 (2019) WiFi (32GB) (0WM -> 0x3D5)
Device         Kindle Oasis 3 (2019) WiFi (8GB) (0WL -> 0x3D4)
Device         Kindle Oasis 3 (2019) WiFi+4G (32GB) India (0WP -> 0x3D7)
Device         Kindle PaperWhite 5 Signature Edition (2021) (1LG -> 0x690)
Device         Kindle PaperWhite 5 (2021) (1PX -> 0x6FF)
Device         Kindle PaperWhite 5 Signature Edition (2021) (Variant 2BH) (2BH -> 0x971)
Device         Kindle PaperWhite 5 (2021) (Variant 2DK) (2DK -> 0x9B3)
Device         Kindle PaperWhite 5 (2021) (Variant 21A) (21A -> 0x82A)
Device         Kindle PaperWhite 5 Signature Edition (2021) (Variant 219) (219 -> 0x829)
Device         Kindle Basic 4 (2022) (Variant 2AQ) (2AQ -> 0x958)
Device         Kindle Basic 4 (2022) (Variant 2AP) (2AP -> 0x957)
Device         Kindle Scribe (16GB) (Variant 227) (227 -> 0x847)
Device         Kindle Scribe (64GB) (Variant 23M) (23M -> 0x875)
Device         Kindle Scribe (Variant 23L) (23L -> 0x874)
Critical       0
Padding Byte   0 (0x00)
MD5 Hash       847563528f7754dc43b11451d936e12f
Metadata       0
x install.sh
x libotautils5
x python3.tar.xz
x xzdec
x install.sh.sig
x libotautils5.sig
x python3.tar.xz.sig
x xzdec.sig
x update-filelist.dat.sig
x update-filelist.dat
--
Running 'install.sh' for 'python3.11 I khf 11thgenplus' (Update_python3.11_install_khf_11thgenplus.bin) @ Mon, 28 Apr 2025 22:18:20 +0200

system: I python3:uninstall::removing python 3.7 symlinks
system: I python3:uninstall::removing python 3.8 symlinks
system: I python3:uninstall::removing python 3.9 symlinks
system: I python3:uninstall::removing python 3.11 symlinks
system: I python3:install::removing existing python 3 install...
system: I python3:install::checking amount of free storage space...
system: I python3:install::unpacking python 3...
Illegal instruction
tar: short read

Hu oh... Got return code 1 . . . :(
Mr Groch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Update to firmware V3.0 for older devices zhivchik Onyx Boox 134 01-02-2021 04:06 AM
Python for Kobo Firmware 2.6+ KevinShort Kobo Developer's Corner 39 12-31-2017 01:38 PM
Python + PyQt enviroment for Kindle & PaperWhite devices. bosito7 Kindle Developer's Corner 8 11-26-2016 03:43 AM
903 Few questions about 2.1.2 firmware for pro devices s15y PocketBook 6 02-03-2012 05:15 AM
firmware version for new devices zoran Kobo Reader 1 07-01-2010 11:08 PM


All times are GMT -4. The time now is 07:59 PM.


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