Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 07-01-2014, 04:27 PM   #1
kbatay
Junior Member
kbatay began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2010
Device: B&N Nook
Editor broken in 1.42

The editor in 1.42 crashes with the following trace:
Code:
Traceback (most recent call last):
  File "/usr/bin/calibre-parallel", line 20, in <module>
    sys.exit(main())
  File "/usr/lib/calibre/calibre/utils/ipc/worker.py", line 195, in main
    result = func(*args, **kwargs)
  File "/usr/lib/calibre/calibre/gui2/tweak_book/main.py", line 30, in gui_main
    _run(['ebook-edit', path], notify=notify)
  File "/usr/lib/calibre/calibre/gui2/tweak_book/main.py", line 51, in _run
    from calibre.gui2.tweak_book.ui import Main
  File "/usr/lib/calibre/calibre/gui2/tweak_book/ui.py", line 37, in <module>
    from calibre.gui2.tweak_book.live_css import LiveCSS
  File "/usr/lib/calibre/calibre/gui2/tweak_book/live_css.py", line 20, in <module>
    from calibre.gui2.tweak_book.editor.text import default_font_family
  File "/usr/lib/calibre/calibre/gui2/tweak_book/editor/text.py", line 24, in <module>
    from calibre.gui2.tweak_book.editor.syntax.html import HTMLHighlighter, XMLHighlighter
  File "/usr/lib/calibre/calibre/gui2/tweak_book/editor/syntax/html.py", line 64, in <module>
    Tag = _speedup.Tag
AttributeError: 'module' object has no attribute 'Tag'
The same editor used to work fine in 1.41. Any hints?
kbatay is offline   Reply With Quote
Old 07-01-2014, 10:48 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,223
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use the official calibre linux binaries from http://calibre-ebook.com/download_linux
kovidgoyal is offline   Reply With Quote
Advert
Old 07-02-2014, 11:06 AM   #3
kbatay
Junior Member
kbatay began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2010
Device: B&N Nook
The official binaries work (well, sort of; now the Modify ePub plugin breaks, for reasons related to encoding ). But I'd still like to understand what's going on. Calibre 1.42 compiled from source has the problem noted above, which I suppose means I need to upgrade (or perhaps downgrade) some Python package(s).

Last edited by kbatay; 07-02-2014 at 11:12 AM.
kbatay is offline   Reply With Quote
Old 07-02-2014, 11:25 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,223
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, that traceback indicates you have a module named html somewhere on your python path that is getting loaded before the html module from calibre. Find an remove that and you will be fine.
kovidgoyal is offline   Reply With Quote
Old 07-03-2014, 12:44 AM   #5
kbatay
Junior Member
kbatay began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2010
Device: B&N Nook
Hmm. I did have a (trivial) html in site-python, and moving it away does indeed make the editor work. But this still doesn't look like the full story, since the module was a few month old. Why didn't it cause any problem before? Reinstalling 1.41 worked fine.

Also, possibly unrelated: I'm now running into this problem, which was supposedly solved. I'm pretty sure I'm using the latest version of the sources.
kbatay is offline   Reply With Quote
Advert
Old 07-03-2014, 01:33 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,223
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Because 1.42 uses a module named html and 1.41 does not. In any case, as is stated here:

http://calibre-ebook.com/download_linux

If you want to run calibre self-compiled from source, you are on your own, I really dont have the time to help with the myriad problems you are likely to encounter. If you want to run from source, use the officially supported way using CALIBRE_DEVELOP_FROM as described here: http://manual.calibre-ebook.com/develop.html
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Editor: ToC Editor: Start entry macnab69 Editor 2 06-25-2014 11:15 AM
Book Editor TOC Editor Isue? weberr Editor 2 04-17-2014 11:13 AM
Broken PRS-505; any place to buy chrome bottom piece? Or anyone with broken 505? erikk Sony Reader 1 12-09-2009 06:51 PM
Broken Ipod works Fine! except that its broken Andybaby Lounge 1 06-04-2009 02:03 AM


All times are GMT -4. The time now is 11:13 PM.


MobileRead.com is a privately owned, operated and funded community.