[GH-ISSUE #21] WhatsApp-Crypt14: AttributeError: 'NoneType' object has no attribute 'message_types_by_name' #19

Closed
opened 2026-03-02 03:59:22 +03:00 by kerem · 4 comments
Owner

Originally created by @UeliDragutin on GitHub (May 20, 2022).
Original GitHub issue: https://github.com/ElDavoo/wa-crypt-tools/issues/21

Using the following command:

python ./decrypt14_15.py ./key ./msgstore.db.crypt14 ./msgstore.db

and was greet with the following error message:

File "C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter\proto\C14_cipher_version_pb2.py", line 21, in
_C14_CIPHER_VERSION = DESCRIPTOR.message_types_by_name['C14_cipher_version']
AttributeError: 'NoneType' object has no attribute 'message_types_by_name'

The full details are as follows:

C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter>python ./decrypt14_15.py ./key ./msgstore.db.crypt14 ./msgstore.db
[I] Crypt12/14 key loaded
Traceback (most recent call last):
File "C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter\decrypt14_15.py", line 682, in
main()
File "C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter\decrypt14_15.py", line 664, in main
cipher = parse_protobuf(key=key, encrypted=args.encrypted)
File "C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter\decrypt14_15.py", line 470, in parse_protobuf
import proto.prefix_pb2 as prefix
File "C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter\proto\prefix_pb2.py", line 15, in
import proto.C14_cipher_pb2 as C14__cipher__pb2
File "C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter\proto\C14_cipher_pb2.py", line 15, in
import proto.C14_cipher_version_pb2 as C14__cipher__version__pb2
File "C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter\proto\C14_cipher_version_pb2.py", line 21, in
_C14_CIPHER_VERSION = DESCRIPTOR.message_types_by_name['C14_cipher_version']
AttributeError: 'NoneType' object has no attribute 'message_types_by_name'

Help needed, thanks.

Originally created by @UeliDragutin on GitHub (May 20, 2022). Original GitHub issue: https://github.com/ElDavoo/wa-crypt-tools/issues/21 Using the following command: > python ./decrypt14_15.py ./key ./msgstore.db.crypt14 ./msgstore.db and was greet with the following error message: > File "C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter\proto\C14_cipher_version_pb2.py", line 21, in <module> > _C14_CIPHER_VERSION = DESCRIPTOR.message_types_by_name['C14_cipher_version'] > AttributeError: 'NoneType' object has no attribute 'message_types_by_name' The full details are as follows: > C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter>python ./decrypt14_15.py ./key ./msgstore.db.crypt14 ./msgstore.db > [I] Crypt12/14 key loaded > Traceback (most recent call last): > File "C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter\decrypt14_15.py", line 682, in <module> > main() > File "C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter\decrypt14_15.py", line 664, in main > cipher = parse_protobuf(key=key, encrypted=args.encrypted) > File "C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter\decrypt14_15.py", line 470, in parse_protobuf > import proto.prefix_pb2 as prefix > File "C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter\proto\prefix_pb2.py", line 15, in <module> > import proto.C14_cipher_pb2 as C14__cipher__pb2 > File "C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter\proto\C14_cipher_pb2.py", line 15, in <module> > import proto.C14_cipher_version_pb2 as C14__cipher__version__pb2 > File "C:\PyPortable\WhatsApp-Crypt14-Crypt15-Decrypter\proto\C14_cipher_version_pb2.py", line 21, in <module> > _C14_CIPHER_VERSION = DESCRIPTOR.message_types_by_name['C14_cipher_version'] > AttributeError: 'NoneType' object has no attribute 'message_types_by_name' Help needed, thanks.
kerem closed this issue 2026-03-02 03:59:22 +03:00
Author
Owner

@ElDavoo commented on GitHub (May 21, 2022):

Hmmm, that's interesting.
Which whatsapp version do you have?
It looks like you have some issue with your protobuf library installation, so don't use protobuf parse mode:
What happens when you use -np -v ?

<!-- gh-comment-id:1133768045 --> @ElDavoo commented on GitHub (May 21, 2022): Hmmm, that's interesting. Which whatsapp version do you have? It looks like you have some issue with your protobuf library installation, so don't use protobuf parse mode: What happens when you use `-np -v` ?
Author
Owner

@ElDavoo commented on GitHub (May 21, 2022):

It looks like you have an old version of the protobuf library. As in requirements.txt, check if you have at least version 3.19.4.
From what i've read the program should work with at least protobuf 3.12.

<!-- gh-comment-id:1133768656 --> @ElDavoo commented on GitHub (May 21, 2022): It looks like you have an old version of the protobuf library. As in `requirements.txt`, check if you have at least version 3.19.4. From what i've read the program should work with at least protobuf 3.12.
Author
Owner

@UeliDragutin commented on GitHub (May 23, 2022):

Thanks, ElDavoo, will check on the library, hopefully can get back soon later before end of this month.

<!-- gh-comment-id:1134276051 --> @UeliDragutin commented on GitHub (May 23, 2022): Thanks, ElDavoo, will check on the library, hopefully can get back soon later before end of this month.
Author
Owner

@ElDavoo commented on GitHub (May 23, 2022):

I made some experiments, you need at least version 3.19.0 of the protobuf library. I added an exception handler for this case.

<!-- gh-comment-id:1134337596 --> @ElDavoo commented on GitHub (May 23, 2022): I made some experiments, you need at least version 3.19.0 of the protobuf library. I added an exception handler for this case.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wa-crypt-tools#19
No description provided.