![]() |
#1876 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@nemiere: Huh, that's weird.
Try to redirect the KFXMeta output to a file, by tweaking linkss/bin/cover-extract (with a proper code editor that won't mess up line-endings), by switching L#115 from Code:
${PYTHON} ${LINKSS_BINDIR}/kfxmeta.py "${last_read_kfx}" "${LINKSS_TMPFS_CACHE}/" Code:
${PYTHON} ${LINKSS_BINDIR}/kfxmeta.py "${last_read_kfx}" "${LINKSS_TMPFS_CACHE}/" &> /mnt/us/linkss/kfxmeta.log |
![]() |
![]() |
![]() |
#1877 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 333762
Join Date: Aug 2011
Location: Madrid, Spain
Device: Kindle Voyage
|
Really weird. Contents of kfxmeta.log:
Code:
KFX Meta v1.1.N Traceback (most recent call last): File "/mnt/us/linkss/bin/kfxmeta.py", line 421, in <module> main() File "/mnt/us/linkss/bin/kfxmeta.py", line 144, in main print('Decoding "{}"'.format(infile)) UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 32: ordinal not in range(128) Code:
# cd /mnt/us # ./linkss/bin/kfxmeta.py "documents/Fool’s Errand (The Tawny Man Trilogy, Book 1)_B005JE1KD8.sdr/assets/metadata.kfx" ./ KFX Meta v1.1.N Decoding "documents/Fool’s Errand (The Tawny Man Trilogy, Book 1)_B005JE1KD8.sdr/assets/metadata.kfx" Extracting cover image to cover_raw_B005JE1KD8.jpg Code:
# echo $LANG es_ES.utf8 |
![]() |
![]() |
Advert | |
|
![]() |
#1878 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
You mean it appears to be sensitive to the current locale?
|
![]() |
![]() |
![]() |
#1879 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@nemiere: Yaaaay...
Can't be it, the watchdog inherits the same env, LANG is set properly there too. Plus, lab126 has a ldpreload hack whose sole purpose is making sure the env is always set locale-wise. Best guess is being headless confuses Python... let's try that: Code:
env PYTHONIOENCODING="utf-8" ${PYTHON} ${LINKSS_BINDIR}/kfxmeta.py "${last_read_kfx}" "${LINKSS_TMPFS_CACHE}/" &> /mnt/us/linkss/kfxmeta.log Last edited by NiLuJe; 02-14-2016 at 06:34 PM. |
![]() |
![]() |
![]() |
#1880 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 333762
Join Date: Aug 2011
Location: Madrid, Spain
Device: Kindle Voyage
|
Now it's working ok for my 3 books with non-ascii chars in filename! But I don't understand the whole thing behind this problem...
|
![]() |
![]() |
Advert | |
|
![]() |
#1881 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@nemiere: Python 2's handling of unicode and encodings and how it's handled on different platforms/environment being a fantastic mess unless you take a crazy amount of extra precautions in your code? :]
|
![]() |
![]() |
![]() |
#1882 |
41x4 9u4l17`´ 44xX2
![]() Posts: 2
Karma: 10
Join Date: Feb 2016
Device: Kindle Paperwhite 2
|
"update your kindle" button greyed out
As the title says the button of my kindle pw2 is greyed out after I copied the installation file
Please ![]() |
![]() |
![]() |
![]() |
#1883 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Per the instructions in the first post (yes, those instructions are there for a reason)...
Quote:
|
|
![]() |
![]() |
![]() |
#1884 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 333762
Join Date: Aug 2011
Location: Madrid, Spain
Device: Kindle Voyage
|
Quote:
Anyway, @NiLuJe thanks alot for your work and help! |
|
![]() |
![]() |
![]() |
#1885 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@nemiere: Thanks for your detailed reports and tests :].
|
![]() |
![]() |
![]() |
#1886 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
The code page (notice the single byte error report) for code conversions in es_ES.utf8 is not the same as for that in en_GB.utf8 . |
|
![]() |
![]() |
![]() |
#1887 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@knc1: It's a mess, but in this case, it's simply the fact that being headless for some reason (AFAICT, it shouldn't if the env is sane, which it is, but, hey...) broke the stdout encoding autodetection. With a tty, it correctly inherits the utf-8 from the env, without one, it defaults to none -> ascii, which breaks because the rest of the code is going to great pains to make sure everything is either an utf-8 str, or an unicode object.
(We're not alone, and Python 3 is apparently much saner (in that respect, at least)) |
![]() |
![]() |
![]() |
#1888 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
none -> ascii is correct for non-latin-1 English and wrong for Spanish. It was just my guess about what the source of the problem was that was wrong. (not passed vs not specified). = = = = Meanwhile, in my own backyard - (I don't do the big snake stuff) - You would not believe what Lab126 has done to the "standardized" extension library location(s) in their Lua install. ![]() About the only thing the same is 'in current directory', I guess they couldn't be bothered to screw that up also. ![]() |
|
![]() |
![]() |
![]() |
#1889 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 333762
Join Date: Aug 2011
Location: Madrid, Spain
Device: Kindle Voyage
|
Quote:
|
|
![]() |
![]() |
![]() |
#1890 |
Junior Member
![]() Posts: 3
Karma: 34
Join Date: Feb 2016
Device: Paperwhite 2
|
Can not get cover view to work
![]() I just jailbroke my Paperwhite 2, 5.6.5. Installed Python, then the screen saver. Got the confirmation "Screen Saver Hack is Installed!" Created a blank folder in the "linkss" folder named "cover". Went into the settings in KUAL and told it "behavior: cover" and restarted the framework. Also rebooted the whole thing. Also, made sure my time was correct. Tried opening a variety of books. Will not show the cover, still just the "screensaver hack installed!" image. I know for "custom" images, your files have to follow certain guidelines for resolution and type. But what about for "last cover" covers that I put on the book myself using Calibre? Do they have to follow the same guidelines? EDIT Solution! It helps to read the ENTIRE instructions. For anyone else who has this problem... you probably forgot to unplug your Kindle while installing, OR you made the 'cover' folder when its best to use the built-in option to do so.
Last edited by thirdfloornorth; 02-16-2016 at 01:22 AM. Reason: Problem Solved |
![]() |
![]() |
![]() |
Tags |
kindle touch hacks, paperwhite, python, screensavers, touch |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem installing Kindle ScreenSavers Hack | ratchetclank | Kindle Developer's Corner | 3 | 12-30-2015 09:59 PM |
Is it impossible to hack screensavers in K4 4.1? | nonfactor | Kindle Developer's Corner | 1 | 07-04-2012 07:17 PM |
Help! Used screensaver hack- now all collections gone and no screensavers!!! | kuklachica | Amazon Kindle | 1 | 01-16-2011 08:17 PM |
Is a hack necessary to add screensavers? | mldavis2 | Amazon Kindle | 4 | 10-29-2010 05:34 PM |
Hack for screensavers on Kindle 2 | KookyKathy | Introduce Yourself | 5 | 01-09-2010 11:16 PM |