I ran your azw-file and it failed due to being encrypted. So you'll have to hack it first, before you can convert it.
Code:
Command line arguments provided:
'dict/Dictionnaire français de définitions_B005306NQM.azw'
'fr'
Found command line argument: dict/Dictionnaire français de définitions_B005306NQM.azw.
Assuming it is meant as the dictionary file name.
Found command line argument: fr.
Assuming it is meant as language directory.
Operating system is linux: All good to go!
Local path is dict.
Full path is /home/mark/Downloads/PocketbookDic/dict
Found python responding as expected.
The script kindelunpack.py is now unpacking the file:
/home/mark/Downloads/PocketbookDic/dict/Dictionnaire français de définitions_B005306NQM.azw
to: /home/mark/Downloads/PocketbookDic/dict/Dictionnaire français de définitions_B005306NQ. This will take some time. 20220627 10:59:23
Traceback (most recent call last):
File "/home/mark/git/KindleUnpack/lib/kindleunpack.py", line 1020, in <module>
sys.exit(main())
File "/home/mark/git/KindleUnpack/lib/kindleunpack.py", line 1008, in main
unpackBook(infile, outdir, apnxfile, epubver, use_hd)
File "/home/mark/git/KindleUnpack/lib/kindleunpack.py", line 923, in unpackBook
process_all_mobi_headers(files, apnxfile, sect, mhlst, K8Boundary, False, epubver, use_hd)
File "/home/mark/git/KindleUnpack/lib/kindleunpack.py", line 767, in process_all_mobi_headers
raise unpackException('Book is encrypted')
__main__.unpackException: Book is encrypted
KindleUnpack failed to convert the mobi-file.
KindleUnpack v0.82
Based on initial mobipocket version Copyright © 2009 Charles M. Hannum <root@ihack.net>
Extensive Extensions and Improvements Copyright © 2009-2014
by: P. Durrant, K. Hendricks, S. Siebert, fandrieu, DiapDealer, nickredding, tkeo.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3.
Unpacking Book...
Palm DB type: BOOKMOBI, 16373 sections.
Warning: Bad key, size, value combination detected in EXTH 406 16 0000000000000000
Unpacking a Mobipocket 7 book...
Processing Mobipocket 7 section of book...
Mobi Version: 7
Codec: utf-8
Title: Dictionnaire Français Cordial
EXTH Title: Dictionnaire français Cordial (French Edition)
Palmdoc compression
--- Begin stack trace ---
pocketbookdic.pl line 1388 in function main::Die
pocketbookdic.pl line 1807 in function main::loadXDXF
--- End stack trace ---
Died at pocketbookdic.pl line 375.
Since azw is yet another extension, I had to adapt the script and uploaded it to github.
You can get the same results by search&replace all
Code:
$FileName =~ m~^(?<filename>((?!\.azw3).)+)\.azw3$
by
Code:
$FileName =~ m~^(?<filename>((?!\.azw3?).)+)\.azw3?$