Skip to content

no attribute "folder_mbox" #32

@J4ker

Description

@J4ker

they thanks, the above did fix the issue.

I am using the https://github.com/jlesage/docker-thunderbird thunderbird.
However there is this weird error I have

Image Image

this is the error in the terminal

NiceGUI ready to go on http://localhost:8482
no such table: mail_index
Traceback (most recent call last):
  File "/home/pi/myenv/lib/python3.11/site-packages/ngwidgets/webserver.py", line 515, in setup_content_div
    setup_content(**kwargs)
  File "/home/pi/myenv/lib/python3.11/site-packages/thunderbird/tb_webserver.py", line 383, in show
    self.folder_mbox = ThunderbirdMailbox(self.tb, folder_path, use_relative_path=True)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/myenv/lib/python3.11/site-packages/thunderbird/mail.py", line 870, in __init__
    self.restore_toc_from_sqldb(tb.index_db)
  File "/home/pi/myenv/lib/python3.11/site-packages/thunderbird/mail.py", line 927, in restore_toc_from_sqldb
    index_lod = self.get_toc_lod_from_sqldb(sql_db)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/myenv/lib/python3.11/site-packages/thunderbird/mail.py", line 948, in get_toc_lod_from_sqldb
    index_lod = sql_db.query(sql_query, folder_path_param)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/myenv/lib/python3.11/site-packages/lodstorage/sql.py", line 284, in query
    for record in self.queryGen(sqlQuery, params):
  File "/home/pi/myenv/lib/python3.11/site-packages/lodstorage/sql.py", line 256, in queryGen
    query = cur.execute(sqlQuery, params)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: no such table: mail_index

'ThunderbirdSolution' object has no attribute 'folder_mbox'
Traceback (most recent call last):
  File "/home/pi/myenv/lib/python3.11/site-packages/thunderbird/tb_webserver.py", line 371, in show_index
    index_lod = self.folder_mbox.get_toc_lod_from_sqldb(self.tb.index_db)
                ^^^^^^^^^^^^^^^^
AttributeError: 'ThunderbirdSolution' object has no attribute 'folder_mbox'

I get similar errors for:

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions