No such table: messages (Edit: WhatsApp databases with "message" table are not supported)
See original GitHub issueWhen running the script I get following error message
Gathering contacts...(97)
Traceback (most recent call last):
File "C:\Users\******\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\******\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\******\AppData\Local\Programs\Python\Python310\Scripts\wtsexporter.exe\__main__.py", line 7, in <module>
File "C:\Users\******\AppData\Local\Programs\Python\Python310\lib\site-packages\Whatsapp_Chat_Exporter\__main__.py", line 147, in main
messages(db, data)
File "C:\Users\******\AppData\Local\Programs\Python\Python310\lib\site-packages\Whatsapp_Chat_Exporter\extract.py", line 88, in messages
c.execute("""SELECT count() FROM messages""")
sqlite3.OperationalError: no such table: messages
My database doesn’t contain the table messages, I only have one called message which contains the data but the schema of the table looks different from what it’s supposed to look like.
What could be the issue here?
Issue Analytics
- State:
- Created 2 years ago
- Comments:36 (17 by maintainers)
Top Results From Across the Web
Two different errors: older version of WhatsApp Viewer and no ...
It seems like you tried to open an older WhatsApp database. Please try to use an older version of WhatsApp Viewer. So, I...
Read more >[TOOL] Whatsapp Xtract: Backup Messages Extractor ...
Error: no such table: wa_contacts. I've copied a "msgstore.db" from a rooted android smartphone, and when I drag and drop the file in...
Read more >New msgstore – Who 'Dis? A Look At An Updated WhatsApp ...
db from the public Android 12 image does have a table called message, but it contains no message content. The column name has...
Read more >Android Room SQLite_ERROR no such table - Stack Overflow
Room creates the tables, as part of setting up and using AppDatabase . Where is your code that is attempting to access screen_items...
Read more >whapa - Bountysource
how to encrypt decrypted msgstore.db back to crypt14. ... I've been getting the message since this week: "Error: no such table: messages"
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I can produce the same result on 2.22.7.73 and “messages” table no longer exist.
@Takepy As I can reproduce your situation now, I will work on supporting “message” table.
It should be fixed in the latest commit: https://github.com/KnugiHK/Whatsapp-Chat-Exporter/commit/d3892a4e4f4f0b533107f871a23de22153cc879a.