![]() |
#271 | |
Member
![]() Posts: 10
Karma: 10
Join Date: Oct 2014
Device: Kindle
|
Quote:
calibre 调试日志 calibre 1.48 isfrozen: True is64bit: False Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE') ('Windows', '7', '6.1.7601') Python 2.7.5 Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free') Starting up... Traceback (most recent call last): File "site-packages\calibre\gui2\ui.py", line 162, in __init__ File "site-packages\calibre\gui2\ui.py", line 176, in init_iaction File "site-packages\calibre\customize\__init__.py", line 582, in load_actual_plugin File "importlib\__init__.py", line 37, in import_module File "site-packages\calibre\customize\zipplugin.py", line 179, in load_module File "calibre_plugins.kindleunpack_plugin.extractio n", line 25, in <module> File "site-packages\calibre\customize\zipplugin.py", line 179, in load_module File "calibre_plugins.kindleunpack_plugin.config", line 28, in <module> File "ntpath.py", line 301, in expanduser UnicodeDecodeError: 'utf8' codec can't decode byte 0xcc in position 9: invalid continuation byte Started up in 4.59 seconds with 650 books Thanks! |
|
![]() |
![]() |
![]() |
#272 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,645
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Yes there are some clues. I'll check when I get home, but I'm guessing your home directory contains characters other than ascii? Still doesn't really explain why the older version works while the newer doesn't (with the same home directory). It's entirely within the realm of possibility that I just broke something along the way with regard to unicode/utf8 paths, of course.
![]() |
![]() |
![]() |
![]() |
#273 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,645
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Yeah, all the previous versions of KindleUnpack should've been barfing on you as well (if you're using it on the same machine with the same user account), because the exact same line of code occurs in each 0.72.1/2 0.73.0 and 0.75.0.
This seems to be a Python 2.7 bug. os.path.expanduser('~') appears to be broken on Windows when usernames contain non-ascii characters. There also appears to be no interest in fixing the python bug. Until I can come up with a workaround for the python bug, my only suggestion would be to run calibre under a user account that only contains ascii characters. |
![]() |
![]() |
![]() |
#274 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,645
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm going to put this version of the plugin here for testing. In addition to updating the core to KindleUnpack 0.77, I've incorporated a workaround that I hope will solve bmhhtyf's issue. I'm sure calibre itself has a helper function or some other way to deal easily with this python bug, but until I figure out what that is, I hope this will work. If it does, I'll release it as v0.77.0.
Please let me know. |
![]() |
![]() |
![]() |
#275 | |
Member
![]() Posts: 10
Karma: 10
Join Date: Oct 2014
Device: Kindle
|
![]() Quote:
Hope for version 0.77. |
|
![]() |
![]() |
![]() |
#276 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,405
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@DiapDealer: from calibre.utils.filenames import expanduser
|
![]() |
![]() |
![]() |
#277 | |
Member
![]() Posts: 10
Karma: 10
Join Date: Oct 2014
Device: Kindle
|
Quote:
Thanks! Last edited by bmhhtyf; 10-28-2014 at 09:24 PM. |
|
![]() |
![]() |
![]() |
#278 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,645
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#279 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,645
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#280 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,645
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Plugin updated to version 0.77.0 to match the updated core KindleUnpack code. Also fixed a bug that affected Windows users whose username contained non-ascii characters.
Details concerning the changes to the core KindleUnpack code can be found here. |
![]() |
![]() |
![]() |
#281 | ||
Member
![]() Posts: 10
Karma: 10
Join Date: Oct 2014
Device: Kindle
|
When I convert azw3 to epub (one of them, not all), the plugin reports:
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#282 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,645
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
@bmhhtyf
Can you tell me what the "ePub Type" setting (in the KindleUnpack plugin configuration) is set to? When working with that particular azw3, can you try both the 'auto' and the 'epub3' setting and see if it makes a difference? |
![]() |
![]() |
![]() |
#283 |
Member
![]() Posts: 10
Karma: 10
Join Date: Oct 2014
Device: Kindle
|
Wow, 'epub3' setting works, but 'auto' doesn't work.
|
![]() |
![]() |
![]() |
#284 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,645
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Well that's good to know! Was it originally set to ePub2? It does seem to be a bug in the core code, regardless. If you can hang on to that problem azw3 for a bit, I'd like to get you a test version of the plugin to see if we can handle that situation better.
It may not be until later today so check back if you can. Thanks. |
![]() |
![]() |
![]() |
#285 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,645
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
@bmhhtyf:
I had a chance to throw a test version of the plugin together. If you would be so kind as try it? After installing the test version of the plugin, please set the ePub Type back to ePub2 and see if it works for your problematic azw3. You might also see if it works on the "auto" setting. Thanks for your help. EDIT: to all others... there's no need to use this test version if you're not having any issues. The bugfixes that are being tested will eventually make it into the release version at some point |
![]() |
![]() |
![]() |
Tags |
mobi2mobi |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] EpubSplit | JimmXinu | Plugins | 459 | 07-31-2025 09:32 AM |
[GUI Plugin] EpubMerge | JimmXinu | Plugins | 560 | 06-09-2025 03:46 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM |
[GUI Plugin] Ex Libris | AlPe | Plugins | 87 | 10-10-2020 03:10 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |