[Bug 275405] deskutils/calibre: content server "show more books"

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 28 Nov 2023 13:11:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275405

            Bug ID: 275405
           Summary: deskutils/calibre: content server "show more books"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: madpilot@FreeBSD.org
          Reporter: matthias.pfaller@familie-pfaller.de
             Flags: maintainer-feedback?(madpilot@FreeBSD.org)
          Assignee: madpilot@FreeBSD.org

When I'm using the content server and I press the "show more books" button, I
get an internal server error. In calibre's logfile I find:

Unhandled exception in state: State: _job_done Client: 127.0.0.1:34965 Request:
POST /library/interface-data/more-books?library_id=general HTTP/1.0
Traceback (most recent call last):
  File "/usr/local/lib/calibre/calibre/srv/loop.py", line 631, in tick
    conn.handle_event(event)
  File "/usr/local/lib/calibre/calibre/srv/loop.py", line 348, in _job_done
    self.job_done(*event)
  File "/usr/local/lib/calibre/calibre/srv/http_response.py", line 502, in
job_done
    reraise(etype, e, tb)
  File "/usr/local/lib/calibre/polyglot/builtins.py", line 61, in reraise
    raise value
  File "/usr/local/lib/calibre/calibre/srv/pool.py", line 33, in run
    result = func()
  File "/usr/local/lib/calibre/calibre/srv/http_response.py", line 459, in
run_request_handler
    result = self.request_handler(data)
  File "/usr/local/lib/calibre/calibre/srv/routes.py", line 312, in dispatch
    ans = endpoint_(self.ctx, data, *args)
  File "/usr/local/lib/calibre/calibre/srv/code.py", line 332, in more_books
    raise HTTPNotFound('Invalid number of books: %r' % rd.query.get('num'))
  File "/usr/local/lib/calibre/calibre/srv/metadata.py", line 83, in
book_as_json
    add_field(field, db, book_id, ans, fm[field])
  File "/usr/local/lib/calibre/calibre/srv/metadata.py", line 60, in add_field
    val = comments_to_html(val)
  File "/usr/local/lib/calibre/calibre/library/comments.py", line 88, in
comments_to_html
    soup = BeautifulSoup('<div>' + comments + '</div>').find('div')
  File "/usr/local/lib/calibre/calibre/ebooks/BeautifulSoup.py", line 33, in
BeautifulSoup
    return parse_html(markup)
  File "/usr/local/lib/calibre/calibre/ebooks/BeautifulSoup.py", line 21, in
parse_html
    from html5_parser.soup import parse
ModuleNotFoundError: No module named 'html5_parser.soup'

-- 
You are receiving this mail because:
You are the assignee for the bug.