Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-16-2022, 05:51 AM   #1
Xeno_Xenon_
Junior Member
Xeno_Xenon_ began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2022
Device: Amazon Kindle Paperwhite 4
Calibre not creating .apnx files when sending to device

I googled this issue and found this thread :https://www.mobileread.com/forums/sh...=257804&page=2
i confirmed i got the same problem that Calibre did not find the path, but the answers didnt seem to have given a solution.
Can anybody help me with this?
Xeno_Xenon_ is offline   Reply With Quote
Old 03-16-2022, 05:55 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Do you have the option to send page number information enabled under customize this device? If so then run calibre in debug mode (right click preferences) and post the log generated when you send a file to the device.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-16-2022, 10:11 AM   #3
Xeno_Xenon_
Junior Member
Xeno_Xenon_ began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2022
Device: Amazon Kindle Paperwhite 4
Quote:
Originally Posted by kovidgoyal View Post
Do you have the option to send page number information enabled under customize this device? If so then run calibre in debug mode (right click preferences) and post the log generated when you send a file to the device.
Got the log
Book titles may seen strange because of auto transferring to ASCII
Spoiler:

calibre 调试日志
calibre 5.38 embedded-python: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '7', '6.1.7601')
Python 3.8.5
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Interface language: zh_CN
calibre 5.38 embedded-python: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '7', '6.1.7601')
Python 3.8.5
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Interface language: zh_CN
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 72.04875346260387 x 71.98228782287822
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.56] splash screen shown
[0.56] Initializing db...
[0.58] db initialized
[0.58] Constructing main UI...
[1.19] main UI initialized...
[1.19] Hiding splash screen
Starting QuickView
Traceback (most recent call last):
File "calibre\devices\kindle\driver.py", line 617, in upload_apnx
File "calibre\devices\kindle\apnx.py", line 88, in write_apnx
FileNotFoundError: [Errno 2] No such file or directory: 'G:\\documents\\Lin Zuo De Ai Lin Tong Xue Ou Er Hui Yong E Yu Qiao Qiao Sa Jiao Di San Juan\\Lin Zuo De Ai Lin Tong Xue Ou Er Hui Yong E Yu Qiao Qiao Sa Jiao Di San Juan - Can _SUN.sdr\\Lin Zuo De Ai Lin Tong Xue Ou Er Hui Yong E Yu Qiao Qiao Sa Jiao Di San Juan - Can _SUN.apnx'
Traceback (most recent call last):
File "calibre\devices\kindle\driver.py", line 617, in upload_apnx
File "calibre\devices\kindle\apnx.py", line 88, in write_apnx
FileNotFoundError: [Errno 2] No such file or directory: 'G:\\documents\\Lin Zuo De Ai Lin Tong Xue Ou Er Hui Yong E Yu Qiao Qiao Sa Jiao Di Er Juan\\Lin Zuo De Ai Lin Tong Xue Ou Er Hui Yong E Yu Qiao Qiao Sa Jiao Di Er Juan - Can _SUN.sdr\\Lin Zuo De Ai Lin Tong Xue Ou Er Hui Yong E Yu Qiao Qiao Sa Jiao Di Er Juan - Can _SUN.apnx'
Storage number map:
{(7, 0): [(2, 'C'), (4, 'D'), (5, 'E')], (7, 1): [(1, 'G')], (7, 2): [(1, 'I')]}
Storage number for USBSTOR\DISK&VEN_KINDLE&PROD_INTERNAL_STORAGE&REV_ 0401\G000T60691760GBR&0: StorageDeviceNumber(type=7, number=1, partition_number=0)
Drive letters for USBDevice(vendor_id=0x1949 product_id=0x324 bcd=0x401 devid=usb\vid_1949&pid_0324&rev_0401 devinst=3276)
{'drive_letters': ['G'],
'pnp_id_map': {'G': '\\\\?\\usbstor#disk&ven_kindle&prod_internal_stor age&rev_0401#g000t60691760gbr&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'},
'readonly_drives': set(),
'sort_map': {'G': (1, 1)}}
Syncing cover thumbnails to workaround amazon cover bug
Restored 0 cover thumbnails that were destroyed by Amazon
Job: 0 获取设备信息 started
DeviceJob: 0 获取设备信息 done, calling callback
DeviceJob: 0 获取设备信息 callback returned
Job: 1 设置书库信息 started
DeviceJob: 1 设置书库信息 done, calling callback
DeviceJob: 1 设置书库信息 callback returned
Job: 2 获取设备书籍列表 started
DEBUG: 0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
DEBUG: 0.0 USBMS: dirs are: G:\ documents
DEBUG: 0.1 USBMS: scan from root False G:\documents
DEBUG: 0.5 USBMS: count found in cache: 139, count of files in metadata: 139, need_sync: False
DEBUG: 0.5 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 0.5 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
DEBUG: 0.5 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
DeviceJob: 2 获取设备书籍列表 done, calling callback
DeviceJob: metadata_downloaded: Starting set_books_in_library
DeviceJob: set_books_in_library: books to process= 139
DeviceJob: set_books_in_library finished: time= 0.003999948501586914
DeviceJob: metadata_downloaded: updating views
DeviceJob: metadata_downloaded: syncing
DeviceJob: metadata_downloaded: refreshing ondevice
DeviceJob: metadata_downloaded: sending metadata_available signal
DeviceJob: 2 获取设备书籍列表 callback returned
Job: 0 获取设备信息 finished
无详细信息可用。
Job: 1 设置书库信息 finished
无详细信息可用。
Job: 2 获取设备书籍列表 finished
无详细信息可用。
[9.56] splash screen hidden
[9.58] Started up in 9.58 seconds with 303 books
Job: 3 上传 2 本书籍到设备: 邻座的艾琳同学偶尔会用俄语悄悄撒娇 第三卷, 邻座的艾琳同学偶尔会用俄语悄悄撒娇 第二卷 started
Device using plugboard azw3 KINDLE2 None
Setting metadata in: 邻座的艾琳同学偶尔会用俄语悄悄撒娇 第三卷 at: C:\Users\hjzx\AppData\Local\Temp\calibre_yypynch1\ rx4fbq0kcaltmpfmt.azw3
Device using plugboard azw3 KINDLE2 None
Setting metadata in: 邻座的艾琳同学偶尔会用俄语悄悄撒娇 第二卷 at: C:\Users\hjzx\AppData\Local\Temp\calibre_yypynch1\ pmhvcyblcaltmpfmt.azw3
DEBUG: 10.7 USBMS: uploading 2 books
APNX META: guid: 108797c1
APNX META: ASIN: be8eb9e1-3fb7-45bd-8275-50318fdf87a2
APNX META: CDE: EBOK
APNX META: format: MOBI_8
APNX META: Name: Lin_Zuo_De_Ai_Lin_Tong_Xue_Ou_E
APNX Content Header: {"contentGuid":"108797c1","asin":"be8eb9e1-3fb7-45bd-8275-50318fdf87a2","cdeType":"EBOK","format":"MOBI_8"," fileRevisionId":"1","acr":"Lin_Zuo_De_Ai_Lin_Tong_ Xue_Ou_E"}
Failed to generate APNX
APNX META: guid: b0775abe
APNX META: ASIN: 53a30207-0877-4ee4-b8f7-60cdf8b3fa94
APNX META: CDE: EBOK
APNX META: format: MOBI_8
APNX META: Name: Lin_Zuo_De_Ai_Lin_Tong_Xue_Ou_E
APNX Content Header: {"contentGuid":"b0775abe","asin":"53a30207-0877-4ee4-b8f7-60cdf8b3fa94","cdeType":"EBOK","format":"MOBI_8"," fileRevisionId":"1","acr":"Lin_Zuo_De_Ai_Lin_Tong_ Xue_Ou_E"}
Failed to generate APNX
DEBUG: 11.2 USBMS: finished uploading 2 books
DeviceJob: 3 上传 2 本书籍到设备: 邻座的艾琳同学偶尔会用俄语悄悄撒娇 第三卷, 邻座的艾琳同学偶尔会用俄语悄悄撒娇 第二卷 done, calling callback
DEBUG: 11.2 USBMS: adding metadata for 2 books
DEBUG: 11.2 USBMS: finished adding metadata
DeviceJob: set_books_in_library: books to process= 141
DeviceJob: set_books_in_library finished: time= 0.03300023078918457
DeviceJob: 3 上传 2 本书籍到设备: 邻座的艾琳同学偶尔会用俄语悄悄撒娇 第三卷, 邻座的艾琳同学偶尔会用俄语悄悄撒娇 第二卷 callback returned
Job: 4 传输元数据到设备上 started
DEBUG: 11.2 USBMS: starting sync_booklists
Job: 3 上传 2 本书籍到设备: 邻座的艾琳同学偶尔会用俄语悄悄撒娇 第三卷, 邻座的艾琳同学偶尔会用俄语悄悄撒娇 第二卷 finished
无详细信息可用。
DEBUG: 12.4 USBMS: finished sync_booklists
DeviceJob: 4 传输元数据到设备上 done, calling callback
DeviceJob: 4 传输元数据到设备上 callback returned
Job: 4 传输元数据到设备上 finished
无详细信息可用。

Last edited by theducks; 03-16-2022 at 11:31 AM. Reason: spoilered
Xeno_Xenon_ is offline   Reply With Quote
Old 03-16-2022, 10:53 AM   #4
Xeno_Xenon_
Junior Member
Xeno_Xenon_ began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2022
Device: Amazon Kindle Paperwhite 4
Quote:
Originally Posted by kovidgoyal View Post
Do you have the option to send page number information enabled under customize this device? If so then run calibre in debug mode (right click preferences) and post the log generated when you send a file to the device.
Sorry but looks like my PC got a problem. Will get it back online ASAP.
But before that, I can tell that I actually tried to get into debug mode and check the log after reading the post i linked above. It showed a similar "path doesn't exist" message.
Hope you can help me with these clues, still working on my PC. I will get the log ASAP if you still cant.
Xeno_Xenon_ is offline   Reply With Quote
Old 03-16-2022, 11:00 AM   #5
Xeno_Xenon_
Junior Member
Xeno_Xenon_ began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2022
Device: Amazon Kindle Paperwhite 4
Quote:
Originally Posted by Xeno_Xenon_ View Post
Sorry but looks like my PC got a problem. Will get it back online ASAP.
But before that, I can tell that I actually tried to get into debug mode and check the log after reading the post i linked above. It showed a similar "path doesn't exist" message.
Hope you can help me with these clues, still working on my PC. I will get the log ASAP if you still cant.
New to the forum,I thought there was something wrong when my reply didnt show up.
Great, so there's no need to worry about my computer
Xeno_Xenon_ is offline   Reply With Quote
Advert
Old 03-16-2022, 11:10 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Your problem is APNX generation is failing. See the line:
Failed to generate APNX

But your log doesn't contain the traceback for the failure are you sure you posted the full log?
kovidgoyal is offline   Reply With Quote
Old 03-16-2022, 11:19 AM   #7
Xeno_Xenon_
Junior Member
Xeno_Xenon_ began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2022
Device: Amazon Kindle Paperwhite 4
Quote:
Originally Posted by kovidgoyal View Post
Your problem is APNX generation is failing. See the line:
Failed to generate APNX

But your log doesn't contain the traceback for the failure are you sure you posted the full log?
Found traceback under the "Starting Quick view" line
Is that what you are looking for?
Xeno_Xenon_ is offline   Reply With Quote
Old 03-16-2022, 11:31 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, that traceback indicates the filename is too long. Shorten the book title and you will be fine.
kovidgoyal is offline   Reply With Quote
Old 03-16-2022, 11:42 AM   #9
Xeno_Xenon_
Junior Member
Xeno_Xenon_ began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2022
Device: Amazon Kindle Paperwhite 4
Quote:
Originally Posted by kovidgoyal View Post
Yes, that traceback indicates the filename is too long. Shorten the book title and you will be fine.
Do I need to change the metadata or just change the title showed in calibre?
Or can i fix the issue by changing the "send to device" settings to rename the files sent to the device and change the title in the filename to something else?
Xeno_Xenon_ is offline   Reply With Quote
Old 03-16-2022, 11:59 AM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just change the title in calibre or change the template, either will work.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No .apnx in .sdr folder when using calibre to send to kindle device ellentk Calibre 17 04-01-2015 09:00 PM
Calibre not sending APNX file stelios313 Devices 1 06-12-2013 09:25 PM
apnx files to mobi on calibre westhee Conversion 2 04-12-2013 04:28 PM
Sending files to MTP device without conversion RichieTheK Devices 7 10-06-2012 12:49 PM
Sending PDF files to device Beege Conversion 5 09-09-2011 05:31 PM


All times are GMT -4. The time now is 05:53 PM.


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