Package: calibre
Version: 3.26.1+dfsg-1
Severity: important
Dear Maintainer,
When using Calibre with Turkish UTF-8 locale, Calibre UI fails to start. If
it's a first install, welcome wizard is displayed correctly, but after
completing the wizard, the UI fails. The calibre process stays in the
background. To remedy the issue, user needs to set locale to en_US.UTF-8 before
startup.
Reproducibility: 100% (Every time)
Reproduction steps:
1- Set system locale to tr_TR-UTF-8
2- Install Calibre
3- Start Calibre
4- (If needed) complete the welcome wizard.
5- UI crashes, traceback is shown. Closing window hangs Calibre process in the
background.
5a- Subsequent starts (even after killing the process) will fail with the same
error.
Expected behavior:
1- Set system locale to tr_TR-UTF-8
2- Install Calibre
3- Start Calibre
4- (If needed) complete the welcome wizard.
5- Calibre starts, and functions as expected.
Temporary workaround:
- Set process' locale to en_US-UTF-8
Traceback:
calibre, version 3.26.1
ERROR: Startup error: There was an error during calibre startup. Parts of
calibre may not function. Click Show details to learn more.
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/main.py", line 300, in
initialize_db_stage2
self.start_gui(db)
File "/usr/lib/calibre/calibre/gui2/main.py", line 233, in start_gui
main = self.main = Main(self.opts, gui_debug=self.gui_debug)
File "/usr/lib/calibre/calibre/gui2/ui.py", line 156, in __init__
ac = self.init_iaction(action)
File "/usr/lib/calibre/calibre/gui2/ui.py", line 170, in init_iaction
ac = action.load_actual_plugin(self)
File "/usr/lib/calibre/calibre/customize/__init__.py", line 612, in
load_actual_plugin
ac = getattr(importlib.import_module(mod), cls)(gui,
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/usr/lib/calibre/calibre/gui2/actions/catalog.py", line 13, in <module>
from calibre.gui2.tools import generate_catalog
File "/usr/lib/calibre/calibre/gui2/tools.py", line 16, in <module>
from calibre.gui2.convert.single import NoSupportedInputFormats
File "/usr/lib/calibre/calibre/gui2/convert/single.py", line 20, in <module>
from calibre.gui2.convert.search_and_replace import SearchAndReplaceWidget
File "/usr/lib/calibre/calibre/gui2/convert/search_and_replace.py", line 11,
in <module>
from calibre.gui2.convert.search_and_replace_ui import Ui_Form
File "/usr/lib/calibre/calibre/gui2/convert/search_and_replace_ui.py", line
155, in <module>
from regex_builder import RegexEdit
File "/usr/lib/calibre/calibre/gui2/convert/regex_builder.py", line 18, in
<module>
from calibre.ebooks.conversion.search_replace import
compile_regular_expression
File "/usr/lib/calibre/calibre/ebooks/conversion/search_replace.py", line 7,
in <module>
import regex
File "/usr/lib/python2.7/dist-packages/regex.py", line 389, in <module>
import _regex_core
File "/usr/lib/python2.7/dist-packages/_regex_core.py", line 4442, in <module>
"d": lookup_property(None, "Digit", True),
File "/usr/lib/python2.7/dist-packages/_regex_core.py", line 1661, in
lookup_property
raise error("unknown property")
error: unknown property
Regards.
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.16.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=tr_TR.UTF-8, LC_CTYPE=tr_TR.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages calibre depends on:
ii calibre-bin 3.26.1+dfsg-1
ii fonts-liberation 1:1.07.4-7
ii imagemagick 8:6.9.9.34+dfsg-3+b1
ii imagemagick-6.q16 [imagemagick] 8:6.9.9.34+dfsg-3+b1
ii libjs-coffeescript 1.12.8~dfsg-1
ii libjs-mathjax 2.7.4+dfsg-1
ii poppler-utils 0.63.0-2
ii python-apsw 3.16.2-r1-2+b2
ii python-chardet 3.0.4-1
ii python-cherrypy3 8.9.1-2
ii python-cssselect 1.0.3-1
ii python-cssutils 1.0.2-1
ii python-dateutil 2.6.1-1
ii python-dbus 1.2.8-2+b1
ii python-feedparser 5.2.1-1
ii python-html5-parser 0.4.4-1+b1
ii python-lxml 4.2.1-1+b1
ii python-markdown 2.6.9-1
ii python-mechanize 1:0.2.5-3
ii python-msgpack 0.5.6-1+b1
ii python-netifaces 0.10.4-1+b1
ii python-pil 4.3.0-2
ii python-pkg-resources 39.2.0-1
ii python-pyparsing 2.2.0+dfsg1-2
ii python-pyqt5 5.10.1+dfsg-2+b1
ii python-pyqt5.qtsvg 5.10.1+dfsg-2+b1
ii python-pyqt5.qtwebkit 5.10.1+dfsg-2+b1
ii python-regex 0.1.20180609-1+b1
ii python-routes 2.4.1-1
ii python2.7 2.7.15-1
ii xdg-utils 1.1.3-1
Versions of packages calibre recommends:
ii python-dnspython 1.15.0-1
calibre suggests no packages.
-- no debconf information