[GH-ISSUE #1] trouble to run the program #2

Open
opened 2026-03-13 15:15:27 +03:00 by kerem · 1 comment
Owner

Originally created by @facutoledo on GitHub (Jun 15, 2023).
Original GitHub issue: https://github.com/absadiki/whatsapp-msgstore-viewer/issues/1

Hi, I'm trying to test you program, and cannot make it run. It return the next error:

Traceback (most recent call last):
   File "d:\PyProjects\WhatsApp_db_reader\whatsapp-msgstore-viewer-main\main.py", line 148, in <module>
     whatsappMsgstoreViewer().run()
     ^^^^^^^^^^^^^^^^^^^^^^^^
   File "d:\PyProjects\WhatsApp_db_reader\whatsapp-msgstore-viewer-main\main.py", line 90, in __init__
     self.db_version = self.db_versions[0]

I have use print(len(self.db_versions)) returning me 0 value.

self.db_versions = []
        for _, name, _ in pkgutil.iter_modules(['dbs']):
            if name != 'abstract_db':
                self.db_versions.append(name)
        print(len(self.db_versions))
        self.db_version = self.db_versions[0]
Originally created by @facutoledo on GitHub (Jun 15, 2023). Original GitHub issue: https://github.com/absadiki/whatsapp-msgstore-viewer/issues/1 Hi, I'm trying to test you program, and cannot make it run. It return the next error: ``` Traceback (most recent call last): File "d:\PyProjects\WhatsApp_db_reader\whatsapp-msgstore-viewer-main\main.py", line 148, in <module> whatsappMsgstoreViewer().run() ^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\PyProjects\WhatsApp_db_reader\whatsapp-msgstore-viewer-main\main.py", line 90, in __init__ self.db_version = self.db_versions[0] ``` I have use print(len(self.db_versions)) returning me 0 value. ``` self.db_versions = [] for _, name, _ in pkgutil.iter_modules(['dbs']): if name != 'abstract_db': self.db_versions.append(name) print(len(self.db_versions)) self.db_version = self.db_versions[0] ```
Author
Owner

@absadiki commented on GitHub (Jun 16, 2023):

Hi @facutoledo,

I think pkgutil cannot see the submodule dbs to load the database schema.

I tried to use a different approach to fix it.
Could you please give it a try now ?

<!-- gh-comment-id:1593908398 --> @absadiki commented on GitHub (Jun 16, 2023): Hi @facutoledo, I think `pkgutil` cannot see the submodule `dbs` to load the database schema. I tried to use a different approach to fix it. Could you please give it a try now ?
Sign in to join this conversation.
No labels
pull-request
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/whatsapp-msgstore-viewer#2
No description provided.