View Single Post
Old 12-15-2018, 03:53 PM   #401
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,515
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
@NiLuJe Hi!
Can you please help me to figure out why LibrarianSync doesn't work for me?

I have Kindle Paperwhite 3 (0G1) with 5.9.7 (successfully Jailbroken and hot-fixed this week while on its out-of-box 5.9.6.1).
Installed Python: latest from your snapshots, kindle-python-0.15.N-r15585.tar.xz.
Installed LibrarianSync: copied github folder from your fork.
WinSCP and its ssh help me to execute scripts on Kindle.

1) I tried to rebuild collections from folders. Kindle said 'Something went very wrong' in the bottom left corner. Here is the log from WinSCP:
Code:
/mnt/us/extensions/librariansync$ ./generate_collections.py --folders
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
eips: pixel_in_range> (1088, 1416) pixel not in range (0..1072, 0..1448)
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
eips: pixel_in_range> (1088, 1416) pixel not in range (0..1072, 0..1448)
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
eips: pixel_in_range> (1088, 1416) pixel not in range (0..1072, 0..1448)
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
eips: pixel_in_range> (1088, 1416) pixel not in range (0..1072, 0..1448)
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
Traceback (most recent call last):
  File "./generate_collections.py", line 318, in <module>
    source="folders")
  File "./generate_collections.py", line 233, in update_cc_db
    cc.execute()
  File "/mnt/us/extensions/librariansync/cc_update.py", line 112, in execute
    proxies={'no': 'pass'})
  File "/mnt/us/python/lib/python2.7/site-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/mnt/us/python/lib/python2.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/mnt/us/python/lib/python2.7/site-packages/requests/sessions.py", line 519, in request
    prep = self.prepare_request(req)
  File "/mnt/us/python/lib/python2.7/site-packages/requests/sessions.py", line 462, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/mnt/us/python/lib/python2.7/site-packages/requests/models.py", line 313, in prepare
    self.prepare_url(url, params)
  File "/mnt/us/python/lib/python2.7/site-packages/requests/models.py", line 396, in prepare_url
    if not unicode_is_ascii(host):
  File "/mnt/us/python/lib/python2.7/site-packages/requests/_internal_utils.py", line 37, in unicode_is_ascii
    assert isinstance(u_string, str)
AssertionError
2) Then I created all collections manually on Kindle. This is my backup of cc.db from /var/local/ and exported_collections.json. Looks like LibrarianSync's export feature worked OK. Terminal output only gave me eips details, Kindle said "Done in xx s". So Python is working, overall. SQLite Database Browser showed me contents OK, about 700 books in 'Collections' table.

3) Now, I removed just one book from a collection and tried to update collections from collections.json (renamed from exported_collections.json above, put in extensions directory). It gives me the same 'Something went very wrong':
Code:
/mnt/us/extensions/librariansync$ ./generate_collections.py --update
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
eips: pixel_in_range> (1088, 1416) pixel not in range (0..1072, 0..1448)
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
eips: pixel_in_range> (1088, 1416) pixel not in range (0..1072, 0..1448)
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
eips: pixel_in_range> (1088, 1416) pixel not in range (0..1072, 0..1448)
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
eips: pixel_in_range> (1088, 1416) pixel not in range (0..1072, 0..1448)
update_to_display: update_mode=PARTIAL, wave_mode=257 inverted=0
Traceback (most recent call last):
  File "./generate_collections.py", line 313, in <module>
    source="librarian")
  File "./generate_collections.py", line 233, in update_cc_db
    cc.execute()
  File "/mnt/us/extensions/librariansync/cc_update.py", line 112, in execute
    proxies={'no': 'pass'})
  File "/mnt/us/python/lib/python2.7/site-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/mnt/us/python/lib/python2.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/mnt/us/python/lib/python2.7/site-packages/requests/sessions.py", line 519, in request
    prep = self.prepare_request(req)
  File "/mnt/us/python/lib/python2.7/site-packages/requests/sessions.py", line 462, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/mnt/us/python/lib/python2.7/site-packages/requests/models.py", line 313, in prepare
    self.prepare_url(url, params)
  File "/mnt/us/python/lib/python2.7/site-packages/requests/models.py", line 396, in prepare_url
    if not unicode_is_ascii(host):
  File "/mnt/us/python/lib/python2.7/site-packages/requests/_internal_utils.py", line 37, in unicode_is_ascii
    assert isinstance(u_string, str)
AssertionError
My collections are intact.

Any ideas?

P.S. My Kindle is new and properly registered with Amazon.

P.S.2 Trying in Airplane mode doesn't help.

Last edited by mergen3107; 12-15-2018 at 06:13 PM.
mergen3107 is offline   Reply With Quote