I have been using rednotebook for quite a while now when all of a sudden the application showed some problems. The application launches but no utilities are working and previous entries are not there. Here is the log file contents:
2025-02-11 14:26:48,169 INFO Writing log to file "/home/nour/.rednotebook/rednotebook.log"
2025-02-11 14:26:48,169 INFO System encoding: utf-8
2025-02-11 14:26:48,169 INFO Language code: en_US
2025-02-11 14:26:48,189 INFO Spell checking languages: ['en_AU', 'en_BS', 'en_BZ', 'en_CA', 'en_GB', 'en_GH', 'en_IE', 'en_IL', 'en_IN', 'en_JM', 'en_MW', 'en_NA', 'en_NZ', 'en_PH', 'en_TT', 'en_US', 'en_ZA', 'en_ZW']
2025-02-11 14:26:48,192 INFO Spell checking dictionaries: [('en_AU', <Enchant: Hunspell Provider>), ('en_BS', <Enchant: Hunspell Provider>), ('en_BZ', <Enchant: Hunspell Provider>), ('en_CA', <Enchant: Hunspell Provider>), ('en_GB', <Enchant: Hunspell Provider>), ('en_GH', <Enchant: Hunspell Provider>), ('en_IE', <Enchant: Hunspell Provider>), ('en_IL', <Enchant: Hunspell Provider>), ('en_IN', <Enchant: Hunspell Provider>), ('en_JM', <Enchant: Hunspell Provider>), ('en_MW', <Enchant: Hunspell Provider>), ('en_NA', <Enchant: Hunspell Provider>), ('en_NZ', <Enchant: Hunspell Provider>), ('en_PH', <Enchant: Hunspell Provider>), ('en_TT', <Enchant: Hunspell Provider>), ('en_US', <Enchant: Hunspell Provider>), ('en_ZA', <Enchant: Hunspell Provider>), ('en_ZW', <Enchant: Hunspell Provider>)]
2025-02-11 14:26:48,334 INFO Using LibYAML
2025-02-11 14:26:48,335 INFO Connected Signals: [<Signals.SIGHUP: 1>, <Signals.SIGINT: 2>, <Signals.SIGQUIT: 3>, <Signals.SIGABRT: 6>, <Signals.SIGTERM: 15>, <Signals.SIGTSTP: 20>]
2025-02-11 14:26:48,338 INFO Running in portable mode: False
2025-02-11 14:26:48,338 INFO First Start: False
2025-02-11 14:26:48,338 INFO RedNotebook version: 2.37
2025-02-11 14:26:48,340 INFO System info: machine: x86_64, platform: Linux-6.10.11+bpo-amd64-x86_64-with-glibc2.38, processor: , python_version: 3.11.11, release: 6.10.11+bpo-amd64, system: Linux, GTK: (3, 24, 43), Glib: (2, 80, 5), PyGObject: (3, 48, 2), YAML: 6.0, WebKit2: (2, 46, 6)
2025-02-11 14:26:48,464 DEBUG Default font: Cantarell Bold 11
2025-02-11 14:26:48,464 DEBUG Default size: 11.0
2025-02-11 14:26:48,634 INFO Cloud ignore list: ['filter', 'these', 'comma', 'separated', 'words', 'and', '#tags']
2025-02-11 14:26:48,634 INFO Cloud include list: ['mtv', 'spam', 'work', 'job', 'play']
2025-02-11 14:26:48,634 INFO Cloud special ignore regexes: ('file://.*', 'https?://.*')
2025-02-11 14:26:48,634 DEBUG Start compiling regexes: ignore, include and special
2025-02-11 14:26:48,634 DEBUG Finished compiling
2025-02-11 14:26:48,639 DEBUG Tray icon visible: False
2025-02-11 14:26:48,643 INFO Opening journal at '/home/nour/.rednotebook/data'
2025-02-11 14:26:48,644 DEBUG Starting to load files in dir "/home/nour/.rednotebook/data"
2025-02-11 14:26:48,644 DEBUG Loading file "/home/nour/.rednotebook/data/2023-10.txt"
2025-02-11 14:26:48,644 ERROR An error occurred while reading /home/nour/.rednotebook/data/2023-10.txt:
Traceback (most recent call last):
File "/app/bin/rednotebook", line 6, in <module>
import journal
ModuleNotFoundError: No module named 'journal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 255, in do_startup
self.open_journal(journal_path)
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 416, in open_journal
self.months = storage.load_all_months_from_disk(data_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/rednotebook/storage.py", line 104, in load_all_months_from_disk
if month := _load_month_from_disk(path, year_number, month_number):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/rednotebook/storage.py", line 76, in _load_month_from_disk
month_contents = yaml.load(month_file, Loader=Loader)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/yaml/__init__.py", line 81, in load
return loader.get_single_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/yaml/constructor.py", line 49, in get_single_data
node = self.get_single_node()
^^^^^^^^^^^^^^^^^^^^^^
File "yaml/_yaml.pyx", line 668, in yaml._yaml.CParser.get_single_node
File "yaml/_yaml.pyx", line 858, in yaml._yaml.CParser._parse_next_event
File "yaml/_yaml.pyx", line 867, in yaml._yaml.input_handler
File "<frozen codecs>", line 707, in read
File "<frozen codecs>", line 507, in read
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
2025-02-11 14:26:55,438 INFO Program was abnormally aborted with signal 2
Traceback (most recent call last):
File "/app/bin/rednotebook", line 6, in <module>
import journal
ModuleNotFoundError: No module named 'journal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/gi/_ossighelper.py", line 92, in signal_notify
def signal_notify(source, condition):
File "/app/lib/python3.11/site-packages/rednotebook/util/utils.py", line 58, in signal_handler
journal.exit()
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 335, in exit
self.save_to_disk(exit_imminent=True)
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 358, in save_to_disk
self.save_old_day()
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 472, in save_old_day
old_content = self.day.content
^^^^^^^^
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 496, in day
return self.month.get_day(self.date.day)
^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_day'
2025-02-11 14:26:56,386 INFO Program was abnormally aborted with signal 15
Traceback (most recent call last):
File "/app/bin/rednotebook", line 6, in <module>
import journal
ModuleNotFoundError: No module named 'journal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/rednotebook/gui/main_window.py", line 509, in on_main_frame_configure_event
def on_main_frame_configure_event(self, widget, event):
File "/app/lib/python3.11/site-packages/rednotebook/util/utils.py", line 58, in signal_handler
journal.exit()
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 335, in exit
self.save_to_disk(exit_imminent=True)
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 358, in save_to_disk
self.save_old_day()
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 472, in save_old_day
old_content = self.day.content
^^^^^^^^
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 496, in day
return self.month.get_day(self.date.day)
^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_day'
Traceback (most recent call last):
File "/app/bin/rednotebook", line 6, in <module>
import journal
ModuleNotFoundError: No module named 'journal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/rednotebook/gui/main_window.py", line 379, in on_quit_activate
self.journal.exit()
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 335, in exit
self.save_to_disk(exit_imminent=True)
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 358, in save_to_disk
self.save_old_day()
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 472, in save_old_day
old_content = self.day.content
^^^^^^^^
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 496, in day
return self.month.get_day(self.date.day)
^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_day'
2025-02-11 14:26:59,030 DEBUG Main frame destroyed
Traceback (most recent call last):
File "/app/bin/rednotebook", line 6, in <module>
import journal
ModuleNotFoundError: No module named 'journal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/rednotebook/gui/main_window.py", line 369, in on_main_frame_delete_event
self.journal.exit()
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 335, in exit
self.save_to_disk(exit_imminent=True)
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 358, in save_to_disk
self.save_old_day()
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 472, in save_old_day
old_content = self.day.content
^^^^^^^^
File "/app/lib/python3.11/site-packages/rednotebook/journal.py", line 496, in day
return self.month.get_day(self.date.day)
^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_day'
/usr/lib/python3.11/site-packages/gi/_ossighelper.py:119: Warning: Source ID 7 was not found when attempting to remove it
GLib.source_remove(source_id)
2025-02-11 14:26:59,059 INFO Peak memory: 134697356 KiB
I think the problem is related to the journal.py module which is probably missing after I ran the following command.
python3 -c "import journal"
I tried reinstalling rednotebook but that did not help. I also tried installing the journal module using pip once and using apt install python3-journal but both did not work.