--- Begin Message ---
Package: rednotebook
Version: 2.37+ds-2
Severity: grave
Tags: upstream
Justification: renders package unusable
Dear Maintainer,
* What led up to the situation?
Entering some casual text into the editor (without txt2tags markup) or using a
supplied template, then clicking on "Preview", leads to the following error
message:
"""
Error: This day contains invalid txt2tags markup. You can help us fix this by
submitting a bugreport in the txt2tags bugtracker. Please append the day's text
to the issue.
"""
The console gives the following information, while the remark "CLICKING
PREVIEW" shows the steps when I click the preview button. I entered "ABC"
(without quotation marks) into the editor:
user@computer ~ % rednotebook
INFO Using GtkSourceView 4
Adding /usr/share/rednotebook to sys.path
INFO Available versions of the WebKit2 namespace: ['4.1']
INFO Loaded version of the WebKit2 namespace: 4.1
INFO Locale path: /usr/share/locale
2025-01-01 21:35:06,188 INFO Writing log to file
"/home/username/.rednotebook/rednotebook.log"
2025-01-01 21:35:06,188 INFO System encoding: utf-8
2025-01-01 21:35:06,188 INFO Language code: en_GB
2025-01-01 21:35:06,205 INFO Spell checking languages: ['de_DE',
'de_DE_frami', 'en', 'en-variant_0', 'en-variant_1', 'en-variant_2', 'en-
w_accents', 'en-wo_accents', 'en_AU', 'en_AU-variant_0', 'en_AU-variant_1',
'en_AU-w_accents', 'en_AU-wo_accents', 'en_CA', 'en_CA-variant_0', 'en_CA-
variant_1', 'en_CA-w_accents', 'en_CA-wo_accents', 'en_GB', 'en_GB-ise',
'en_GB-ise-w_accents', 'en_GB-ise-wo_accents', 'en_GB-ize', 'en_GB-ize-
w_accents', 'en_GB-ize-wo_accents', 'en_GB-variant_0', 'en_GB-variant_1',
'en_GB-w_accents', 'en_GB-wo_accents', 'en_US', 'en_US-variant_0', 'en_US-
variant_1', 'en_US-w_accents', 'en_US-wo_accents']
2025-01-01 21:35:06,205 INFO Spell checking dictionaries: [('de_DE',
<Enchant: Hunspell Provider>), ('de_DE_frami', <Enchant: Hunspell Provider>),
('en', <Enchant: Aspell Provider>), ('en-variant_0', <Enchant: Aspell
Provider>), ('en-variant_1', <Enchant: Aspell Provider>), ('en-variant_2',
<Enchant: Aspell Provider>), ('en-w_accents', <Enchant: Aspell Provider>),
('en-wo_accents', <Enchant: Aspell Provider>), ('en_AU', <Enchant: Aspell
Provider>), ('en_AU-variant_0', <Enchant: Aspell Provider>), ('en_AU-
variant_1', <Enchant: Aspell Provider>), ('en_AU-w_accents', <Enchant: Aspell
Provider>), ('en_AU-wo_accents', <Enchant: Aspell Provider>), ('en_CA',
<Enchant: Aspell Provider>), ('en_CA-variant_0', <Enchant: Aspell Provider>),
('en_CA-variant_1', <Enchant: Aspell Provider>), ('en_CA-w_accents', <Enchant:
Aspell Provider>), ('en_CA-wo_accents', <Enchant: Aspell Provider>), ('en_GB',
<Enchant: Aspell Provider>), ('en_GB-ise', <Enchant: Aspell Provider>),
('en_GB-ise-w_accents', <Enchant: Aspell Provider>), ('en_GB-ise-wo_accents',
<Enchant: Aspell Provider>), ('en_GB-ize', <Enchant: Aspell Provider>),
('en_GB-ize-w_accents', <Enchant: Aspell Provider>), ('en_GB-ize-wo_accents',
<Enchant: Aspell Provider>), ('en_GB-variant_0', <Enchant: Aspell Provider>),
('en_GB-variant_1', <Enchant: Aspell Provider>), ('en_GB-w_accents', <Enchant:
Aspell Provider>), ('en_GB-wo_accents', <Enchant: Aspell Provider>), ('en_US',
<Enchant: Aspell Provider>), ('en_US-variant_0', <Enchant: Aspell Provider>),
('en_US-variant_1', <Enchant: Aspell Provider>), ('en_US-w_accents', <Enchant:
Aspell Provider>), ('en_US-wo_accents', <Enchant: Aspell Provider>)]
2025-01-01 21:35:06,403 INFO Using LibYAML
2025-01-01 21:35:06,405 INFO Connected Signals: [<Signals.SIGHUP: 1>,
<Signals.SIGINT: 2>, <Signals.SIGQUIT: 3>, <Signals.SIGABRT: 6>,
<Signals.SIGTERM: 15>, <Signals.SIGTSTP: 20>]
2025-01-01 21:35:06,412 INFO Running in portable mode: False
2025-01-01 21:35:06,412 INFO First Start: False
2025-01-01 21:35:06,412 INFO RedNotebook version: 2.37
2025-01-01 21:35:06,414 INFO System info: machine: x86_64, platform:
Linux-6.12.6-amd64-x86_64-with-glibc2.40, processor: , python_version: 3.12.8,
release: 6.12.6-amd64, system: Linux, GTK: (3, 24, 43), Glib: (2, 82, 4),
PyGObject: (3, 50, 0), YAML: 6.0.2, WebKit2: (2, 46, 5)
2025-01-01 21:35:06,648 DEBUG Default font: Fira Code weight=450 12
2025-01-01 21:35:06,648 DEBUG Default size: 12.0
2025-01-01 21:35:06,908 INFO Cloud ignore list: ['filter', 'these',
'comma', 'separated', 'words', 'and', '#tags']
2025-01-01 21:35:06,909 INFO Cloud include list: ['mtv', 'spam', 'work',
'job', 'play']
2025-01-01 21:35:06,909 INFO Cloud special ignore regexes: ('file://.*',
'https?://.*')
2025-01-01 21:35:06,909 DEBUG Start compiling regexes: ignore, include and
special
2025-01-01 21:35:06,909 DEBUG Finished compiling
2025-01-01 21:35:06,934 DEBUG Tray icon visible: False
2025-01-01 21:35:06,936 INFO Opening journal at
'/home/username/.rednotebook/data'
2025-01-01 21:35:06,936 DEBUG Starting to load files in dir
"/home/username/.rednotebook/data"
2025-01-01 21:35:06,936 DEBUG Loading file
"/home/username/.rednotebook/data/2025-01.txt"
2025-01-01 21:35:06,937 DEBUG Finished loading files in dir
"/home/username/.rednotebook/data"
2025-01-01 21:35:07,112 DEBUG Update the cloud
2025-01-01 21:35:07,114 DEBUG Background color: rgb(45,45,45)
2025-01-01 21:35:07,114 DEBUG Foreground color: rgb(255,255,255)
2025-01-01 21:35:07,117 DEBUG Cloud updated
2025-01-01 21:35:07,120 INFO Last backup was made 0 days ago
CLICKING PREVIEW
2025-01-01 21:38:24,639 DEBUG Background color: rgb(45,45,45)
2025-01-01 21:38:24,639 DEBUG Foreground color: rgb(255,255,255)
2025-01-01 21:38:24,639 DEBUG Add mathjax code: False
2025-01-01 21:38:24,642 ERROR Invalid markup:
Sorry! Txt2tags aborted by an unknown error.
Please send the following Error Traceback to the author
(jendrikse...@gmail.com):
Traceback (most recent call last):
File "/usr/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/share/rednotebook/rednotebook/util/markup.py", line 416, in
convert
headers = txt2tags.doHeader(headers, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/rednotebook/rednotebook/external/txt2tags.py", line 4034, in
doHeader
template = HEADER_TEMPLATE[target].split("\n")
~~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'xhtml'
Thank you a lot for your work!!
Benjamin
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.6-amd64 (SMP w/14 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages rednotebook depends on:
ii gir1.2-gdkpixbuf-2.0 2.42.12+dfsg-1+b1
pn gir1.2-gio-2.0 <none>
ii gir1.2-girepository-2.0 1.82.0-3
ii gir1.2-glib-2.0 [gir1.2-gobject-2.0] 2.82.4-1
ii gir1.2-gtk-3.0 [gir1.2-gdk-3.0] 3.24.43-4
ii gir1.2-gtksource-4 4.8.4-5+b3
ii gir1.2-pango-1.0 1.55.0+ds-3
ii gir1.2-webkit2-4.1 2.46.5-1+b1
ii python3 3.12.8-1
ii python3-gi 3.50.0-3+b1
ii python3-yaml 6.0.2-1+b1
Versions of packages rednotebook recommends:
ii python3-enchant 3.2.2-1
rednotebook suggests no packages.
-- no debconf information
--- End Message ---