Hi, sorry if this is the wrong place to post, I've searched in the forum for a bit and couldn't find something regarding this specific problem I have.
Whenever I open the get books section and search for books using a keyword, I get a lot of pop-ups displaying the following error message:
Code:
calibre, version 6.13.0
ERROR: Unhandled exception: <b>TypeError</b>:expected string or bytes-like object, got 'NoneType'
calibre 6.13 embedded-python: False
Linux-6.1.0-20-amd64-x86_64-with-glibc2.36 Linux ('64bit', 'ELF')
('Linux', '6.1.0-20-amd64', '#1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11)')
Python 3.11.2
Interface language: None
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/store/search/search.py", line 387, in get_results
self.results_view.model().add_result(res, store_plugin)
File "/usr/lib/calibre/calibre/gui2/store/search/models.py", line 97, in add_result
self._filter_results()
File "/usr/lib/calibre/calibre/gui2/store/search/models.py", line 119, in _filter_results
self.sort(self.sort_col, self.sort_order, False)
File "/usr/lib/calibre/calibre/gui2/store/search/models.py", line 291, in sort
self.all_matches.sort(
File "/usr/lib/calibre/calibre/gui2/store/search/models.py", line 292, in <lambda>
key=lambda x: sort_key(str(self.data_as_text(x, col))),
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/gui2/store/search/models.py", line 263, in data_as_text
text = comparable_price(result.price)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/calibre/calibre/gui2/store/search/models.py", line 24, in comparable_price
match = re.search(r'(?:\d|[,.](?=\d))(?:\d*(?:[,.\' ](?=\d))?)+', text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/__init__.py", line 176, in search
return _compile(pattern, flags).search(string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'
This does not occur when I only select archive.org and feedbooks as a source, so maybe it has a problem with certain stores only? I could do a binary search to find the broken stores, but maybe I'm just missing dependencies? Obviously, there is a problem with python, but it also refers to patterns and what I assume to be search syntax.
Thanks a lot in advance and please remove this post in case it is a duplicate or in the wrong place.