Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trouble to run the program #1

Open
facutoledo opened this issue Jun 15, 2023 · 1 comment
Open

trouble to run the program #1

facutoledo opened this issue Jun 15, 2023 · 1 comment

Comments

@facutoledo
Copy link

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]
abdeladim-s added a commit that referenced this issue Jun 16, 2023
@abdeladim-s
Copy link
Owner

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants