Calibre crashes

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

Post Reply
andreios
Growing Hen
Posts: 102
Joined: Fri May 30, 2014 17:17

Calibre crashes

Post by andreios » Fri Mar 13, 2020 15:38

Calibre doesn't start any more. Must happened with the updates in the last few weeks.

Code: Select all

$ calibre                                                                                                                                                                             [16:24:51]
Traceback (most recent call last):
  File "/usr/lib64/calibre/calibre/gui2/library/views.py", line 938, in database_changed
    self.restore_state()
  File "/usr/lib64/calibre/calibre/gui2/library/views.py", line 801, in restore_state
    self.apply_state(old_state, max_sort_levels=max_levels)
  File "/usr/lib64/calibre/calibre/gui2/library/views.py", line 705, in apply_state
    max_sort_levels=max_sort_levels)
  File "/usr/lib64/calibre/calibre/gui2/library/views.py", line 659, in apply_sort_history
    self.sort_by_named_field(col, order)
  File "/usr/lib64/calibre/calibre/gui2/library/views.py", line 559, in sort_by_named_field
    self.sort_by_column_and_order(idx, order)
  File "/usr/lib64/calibre/calibre/gui2/library/views.py", line 518, in sort_by_column_and_order
    self.model().sort(col, order)
  File "/usr/lib64/calibre/calibre/gui2/library/models.py", line 510, in sort
    self._sort(label, order, reset)
  File "/usr/lib64/calibre/calibre/gui2/library/models.py", line 518, in _sort
    self.db.data.incremental_sort([(label, order)])
  File "/usr/lib64/calibre/calibre/db/view.py", line 265, in incremental_sort
    return self.multisort(fields=fields, subsort=subsort)
  File "/usr/lib64/calibre/calibre/db/view.py", line 249, in multisort
    sorted_book_ids = self._do_sort(self._map if only_ids is None else only_ids, fields=fields, subsort=subsort)
  File "/usr/lib64/calibre/calibre/db/view.py", line 246, in _do_sort
    virtual_fields={'marked':MarkedVirtualField(self.marked_ids)})
  File "/usr/lib64/calibre/calibre/db/cache.py", line 62, in call_func_with_lock
    return func(*args, **kwargs)
  File "/usr/lib64/calibre/calibre/db/cache.py", line 957, in multisort
    reverse=not fields[0][1])
TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'
[1]    92293 abort (core dumped)  calibre

msdobrescu
Old Dear Hen
Posts: 876
Joined: Sun Aug 21, 2011 8:48

Re: Calibre crashes

Post by msdobrescu » Sun Mar 15, 2020 15:51

For me works fine, my system is up to date, but I can't convert anything due to this error:

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/ebook-convert", line 20, in <module>
    sys.exit(main())
  File "/usr/lib64/calibre/calibre/ebooks/conversion/cli.py", line 401, in main
    plumber.run()
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plumber.py", line 1275, in run
    self.opts, self.log)
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plugins/pdf_output.py", line 188, in convert
    self.convert_text(oeb_book)
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plugins/pdf_output.py", line 255, in convert_text
    log=self.log, cover_data=self.cover_data, report_progress=self.report_progress
  File "/usr/lib64/calibre/calibre/ebooks/pdf/html_writer.py", line 1176, in convert
    manager = RenderManager(opts, log, container.root)
  File "/usr/lib64/calibre/calibre/ebooks/pdf/html_writer.py", line 260, in __init__
    ans.setUrlRequestInterceptor(self.interceptor)
AttributeError: 'QWebEngineProfile' object has no attribute 'setUrlRequestInterceptor'

andreios
Growing Hen
Posts: 102
Joined: Fri May 30, 2014 17:17

Re: Calibre crashes

Post by andreios » Fri Mar 20, 2020 15:27

In my case I still don't know why this happens. my only guess would be changes in python?¿

User avatar
sabayonino
Sagely Hen
Posts: 3540
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Calibre crashes

Post by sabayonino » Fri Mar 20, 2020 15:53

try :

Code: Select all

$ python2 /usr/bin/calibre

andreios
Growing Hen
Posts: 102
Joined: Fri May 30, 2014 17:17

Re: Calibre crashes

Post by andreios » Sat Mar 21, 2020 17:32

sabayonino wrote:
Fri Mar 20, 2020 15:53
try :

Code: Select all

$ python2 /usr/bin/calibre
This creates another error message

Code: Select all

python2 /usr/bin/calibre    
Traceback (most recent call last):
  File "/usr/bin/calibre", line 19, in <module>
    from calibre.gui_launch import calibre
  File "/usr/lib64/calibre/calibre/__init__.py", line 23, in <module>
    from calibre.startup import winutil, winutilerror
  File "/usr/lib64/calibre/calibre/startup.py", line 143, in <module>
    set_translators()
  File "/usr/lib64/calibre/calibre/utils/localization.py", line 216, in set_translators
    lang = get_lang()
  File "/usr/lib64/calibre/calibre/utils/localization.py", line 89, in get_lang
    from calibre.utils.config_base import prefs
  File "/usr/lib64/calibre/calibre/utils/config_base.py", line 15, in <module>
    from calibre.utils.lock import ExclusiveFile
  File "/usr/lib64/calibre/calibre/utils/lock.py", line 18, in <module>
    from calibre.utils.monotonic import monotonic
  File "/usr/lib64/calibre/calibre/utils/monotonic.py", line 11, in <module>
    raise RuntimeError('Failed to load the monotonic module with error: ' + err)
RuntimeError: Failed to load the monotonic module with error: No module named monotonic

msdobrescu
Old Dear Hen
Posts: 876
Joined: Sun Aug 21, 2011 8:48

Re: Calibre crashes

Post by msdobrescu » Sat Mar 21, 2020 20:08

I confirm.

andreios
Growing Hen
Posts: 102
Joined: Fri May 30, 2014 17:17

Re: Calibre crashes

Post by andreios » Fri Apr 17, 2020 10:09

still no change.

svantoviit
Old Dear Hen
Posts: 756
Joined: Sun Feb 28, 2010 17:55
Contact:

Re: Calibre crashes

Post by svantoviit » Sun Apr 26, 2020 9:19

What about submitting a bug?

For me calibre works as expected, but I use portage to install it :pirat:

andreios
Growing Hen
Posts: 102
Joined: Fri May 30, 2014 17:17

Re: Calibre crashes

Post by andreios » Wed May 27, 2020 15:33

Will fix it by:
[Moderator edit]
sabayonino wrote: The command you provided was removed 'cause It can break the system without knowledge and how portage works.

andreios
Growing Hen
Posts: 102
Joined: Fri May 30, 2014 17:17

Re: Calibre crashes

Post by andreios » Fri May 29, 2020 4:50

Code: Select all

emerge -e world
Forgot to set an smiley :lol: was just a joke. But this could maybe fix some things :wink: :lol:

Post Reply