cannot edit ebook after ubuntu update to 16.10

Bug #1643805 reported by emddom
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Invalid
Undecided
Unassigned

Bug Description

After upgrading to Ubuntu 16.10 (from 16.04) I can't edit ePub files any more.

I receive unhandled Exceptions (please see attachment) when I select a *.html file for editing.
(interestingly, I receive a similar error when using (Nautilus) file manager and clicking on "Recent Files")

My Calibre version is 2.60

With best regards,
  endre

Revision history for this message
Eli Schwartz (eschwartz) wrote : Re: [Bug 1643805] [NEW] cannot edit ebook after ubuntu update to 16.10

I see no attachment...

Please select "Copy to clipboard" when the error message shows up, and
paste it here directly.

Submitting error messages in a text file or word document requires
invoking external programs just to read, and word documents are beyond
ugly and vastly unnecessary for this purpose. Using a screenshot of the
message is possibly the least accurate and most unreadable way of
passing along TEXTUAL INFO that mankind has invented, but people do it
depressingly often.

In other words, please don't use attachments for error messages.

...

Also, Ubuntu 16.10 currently ships calibre 2.60.0 in their repositories,
but the latest version of calibre is v2.72.0 so can you please confirm
whether you simply haven't upgraded in a few weeks or whether you are
using the distro package?

Using the distro package is a common source of problems, and if the
problem cannot be duplicated with the official binary releases on
calibre's website, then it is a distro packaging bug and you should ask
the Ubuntu packagers for help.

If you simply haven't upgraded in a few weeks, then 1) interesting
coincidence :D and 2) try upgrading to the latest version of calibre
anyway, to make sure it is still a problem.

 status incomplete

Changed in calibre:
status: New → Incomplete
Revision history for this message
emddom (emddom) wrote :
Download full text (4.8 KiB)

  Hello Eli,

Thanks for the email and the swift response.

I'm (almost) sure that I put the attachment....
And you're right: textual format is better (The notice: "Copy to clipboard "
skipped my attention)

Here it is as text (I cannot use Copy to Clipboard any more due to yet
another bug... :) )

*Msgbox Title:* ERROR: Unhandled exception

TypeError connect() failed between contentsChange (int,int,int) and
reformat blocks0
calibre 2.60 embedded-python: False is64bit: True
Linux-4.8.0-28-generic-x86 64-with-Ubuntu-16.10-yakkety Linux (64bit',
(Linux', '4.8.0-28-generic '#30-Ubuntu SMP Fri Nov 11 14:03:52 UTC 2016'
Python 2.7.12
Linux: (Ubuntu', '16.10', yakkety")
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/tweak book/boss.py", line 1375, in edit
file requested
return self edit file(name, syntax)
File "/usr/lib/calibre/calibre/gui2/tweak book/boss.py", line 1354, in edit
file
self init editor(name, editor, data, use template-bool (use template))
File "/usr/lib/calibre/calibre/gui2/tweak book/boss.py", line 1329, in init
editor
editor data data
File ''/usr/lib/calibre/calibre/gui2/tweak book/editor/widget.py", line
191, in fset
self editor load text (val, syntax-self syntax, doc name-editor name (self))
File "/usr/lib/calibre/calibre/gui2/tweak book/editor/text.py", line 172,
in load text
self highlighter set document(self.document(), doc name-doc name)
File "/usr/lib/calibre/calibre/gui2/tweak book/editor/syntax/base.py", line
107, in set document
doc contentsChange.connect(self.reformat blocks)
Type Error: connect() failed between contentsChange(int,int,int) and
reformat blocks

After submitting this bug report I did make the update to 2.72-0 using the
command line.
But now I cannot use Calibre at all. Doesn't matter whether I start up
Calibre from the command line or from the menu.
If I start from command line then I get several times this message:

(calibre:9244): Gtk-CRITICAL **: IA__gtk_widget_style_get: assertion
'GTK_IS_WIDGET (widget)' failed

About this I complained in the following bug report:
https://bugs.launchpad.net/calibre/+bug/1643815

To test, I did the same Calibre installation/update on Ubuntu 16.04, which
I run on a Digital Ocean server. There it works all fine, including the
eBook editing. So, it's my HP Elitebook with Ubuntu 16.10 where I have all
these difficulties.

I have to admit that I have been fooling around with various desktops on
this machine, because of problems when trying to use the HP machine as VNC
server and a Chromebook as a VNC client.
However, I had no other issues, except for eBook editing (and the Recent
Files issue when using Nautilus)

  With best regards,
     endre

On Tue, Nov 22, 2016 at 3:57 PM, Eli Schwartz <email address hidden>
wrote:

> I see no attachment...
>
> Please select "Copy to clipboard" when the error message shows up, and
> paste it here directly.
>
> Submitting error messages in a text file or word document requires
> invoking external programs just to read, and word documents are beyond
> ugly and vastly unnecessary for this purpose. Using a screenshot of the
> message is possibly the least accurate and most unreadable way of
> passi...

Read more...

Revision history for this message
Kovid Goyal (kovid) wrote :

Uninstall the distro provided calibre and install the official calibre binary and this error will go away.

Changed in calibre:
status: Incomplete → Invalid
Revision history for this message
emddom (emddom) wrote : Re: [Bug 1643805] Re: cannot edit ebook after ubuntu update to 16.10

  Hello,

Sorry. I thought that I've already answered "back then" when the problem
got solved by using the default "look":
Ever since it's worked fine, even after having updated to the latest
version.

  Thanks and all the best,
    endre

On Sun, Dec 4, 2016 at 2:57 PM, Kovid Goyal <email address hidden>
wrote:

> Uninstall the distro provided calibre and install the official calibre
> binary and this error will go away.
>
> ** Changed in: calibre
> Status: Incomplete => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1643805
>
> Title:
> cannot edit ebook after ubuntu update to 16.10
>
> Status in calibre:
> Invalid
>
> Bug description:
> After upgrading to Ubuntu 16.10 (from 16.04) I can't edit ePub files
> any more.
>
> I receive unhandled Exceptions (please see attachment) when I select a
> *.html file for editing.
> (interestingly, I receive a similar error when using (Nautilus) file
> manager and clicking on "Recent Files")
>
> My Calibre version is 2.60
>
> With best regards,
> endre
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/calibre/+bug/1643805/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.