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 07-23-2021, 05:44 PM   #1
Smidra
Junior Member
Smidra began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2021
Device: PW3/G090G1
Post Python packages for offline Wiki

Hello,
I am struggling to get an offline Wikipedia on my PW2. Epub or Mobi Is too limited so I figured I need to read directly from a ZIM file. I would like to try running a local miniwebserver with ZIMply Python package. (https://openzim.org/wiki/Readers) Then connect to it with a browser.

I however have no idea how to install the package on my Kindle.

When I try with Kterm I install pip with ensurepip but am unable to install the package due to 'low disk space' even though I have plenty of free space.

Is this even the right way to do this?
How does one install a new Python module?

Thanks for any help.


(Searching the forum did not help https://www.mobileread.com/forums/sh...ighlight=Numpy )

Last edited by Smidra; 07-23-2021 at 05:46 PM.
Smidra is offline   Reply With Quote
Old 07-23-2021, 06:54 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
I vaguely remember pointing someone towards this in the past, but, basically, read the Kobo version of my Python packages, it includes a section about setting up pip at the very end.

(Also, thread moved to the Dev forum).
NiLuJe is offline   Reply With Quote
Old 07-27-2021, 07:07 PM   #3
Smidra
Junior Member
Smidra began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2021
Device: PW3/G090G1
Thanks for the speedy reply. With your help I was able to make pip work. Unfortunately ZIMply has a dependency which is a Python C module - and that gets stuck in loop when installing since there is no C compiler on the kindle. I have no clue how to solve this problem.

On the forum i found some people on Kobo made kiwix-serve work. (https://www.mobileread.com/forums/sh...d.php?t=276219)

So I tried to make kiwix-serve work on kindle. I downloaded the armel package from Debian backports. I copied all dynamicaly linked libraries but there are still some (cca 25) errors silmilar to this:

Code:
./kiwix-serve: /lib/libc.so.6: version `GLIBC_2.28` not found (required vz /usr/lib/...)
So the linking was not successful. (My first time anyway...) (https://stackoverflow.com/questions/...2-28-not-found)

Surely there must be some way to read a ZIM file on kindle, however I don't know what to try next.
Smidra is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I identiy the name of two packages? cicabum Onyx Boox 0 06-11-2019 04:03 PM
Python 2 to Python 3, Polyglot & Plugins DaltonST Calibre 18 04-24-2019 12:10 AM
Help - tools packages... carpetmojo Calibre 7 12-24-2011 09:47 AM
PRS-500 https://wiki.mobileread.com/wiki/Sony_Reader_hack gseryakov Sony Reader Dev Corner 1 10-22-2006 12:34 AM


All times are GMT -4. The time now is 05:29 AM.


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