Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-24-2008, 06:34 AM   #1
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
Calibre compile error

I'm getting the following errors when attempting to compile calibre using the gentoo image:

Code:
#bzr branch http://bzr.kovidgoyal.net/code/calibre/trunk calibre
cd calibre && python setup.py build && sudo python setup.py develop

Traceback (most recent call last):
  File "setup.py", line 433, in <module>
    'sdist'         : sdist,
  File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/distutils/command/build.py", line 112, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "setup.py", line 245, in run
    self.build_forms()
  File "setup.py", line 279, in build_forms
    compileUi(form, buf)
  File "/usr/lib/python2.5/site-packages/PyQt4/uic/__init__.py", line 66, in compileUi
    winfo = compiler.UICompiler().compileUi(uifile, pyfile)
  File "/usr/lib/python2.5/site-packages/PyQt4/uic/Compiler/compiler.py", line 67, in compileUi
    w = self.parse(input_stream)
  File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 571, in parse
    actor(elem)
  File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 430, in createUserInterface
    self.traverseWidgetTree(elem)
  File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 408, in traverseWidgetTree
    handler(self, child)
  File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 303, in createLayout
    self.traverseWidgetTree(elem)
  File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 408, in traverseWidgetTree
    handler(self, child)
  File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 311, in handleItem
    self.traverseWidgetTree(elem)
  File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 408, in traverseWidgetTree
    handler(self, child)
  File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 155, in createWidget
    self.stack.push(self.setupObject(widgetClass(elem), parent, elem))
  File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line 130, in setupObject
    obj =  self.factory.createQObject(clsname, name, args, is_attribute)
  File "/usr/lib/python2.5/site-packages/PyQt4/uic/objcreator.py", line 62, in createQObject
    raise NoSuchWidgetError, classname
PyQt4.uic.exceptions.NoSuchWidgetError: Unknown Qt widget: QPlainTextEdit
JeffElkins is offline   Reply With Quote
Old 10-24-2008, 11:16 AM   #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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
you need to upgrade qt/pyqt

Code:
emerge -av qt PyQt4
kovidgoyal is offline   Reply With Quote
Advert
Old 10-24-2008, 02:18 PM   #3
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
Quote:
Originally Posted by kovidgoyal View Post
you need to upgrade qt/pyqt

Code:
emerge -av qt PyQt4
OK, after hours emerging I now get complaints about lxml being outdated. Calibre wants >= 2.0.5 and emerge -s shows 1.3.6 as the available version and it appears to be installed.

Also, anything else other than lxml?
JeffElkins is offline   Reply With Quote
Old 10-24-2008, 02:34 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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That should be it.

Code:
echo dev-python/lxml ~x86 >> /etc/portage/package.keywords
kovidgoyal is offline   Reply With Quote
Old 10-24-2008, 02:59 PM   #5
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
[QUOTE=kovidgoyal;276312]That should be it.

Not just yet...

Code:
Traceback (most recent call last):
  File "/home/kovid/work/calibre/src/calibre/linux.py", line 179, in setup_completion
    from calibre.ebooks.lrf.comic.convert_from import option_parser as comicop
  File "/home/kovid/work/calibre/src/calibre/ebooks/lrf/comic/convert_from.py", line 21, in <module>
    from calibre.ebooks.epub.from_html import config as html2epub_config, convert as html2epub
  File "/home/kovid/work/calibre/src/calibre/ebooks/epub/__init__.py", line 12, in <module>
    from calibre.ebooks.html import config as common_config, tostring
  File "/home/kovid/work/calibre/src/calibre/ebooks/html.py", line 16, in <module>
    from lxml.html import HtmlElementClassLookup, HTMLParser as _HTMLParser, \
  File "/usr/lib/python2.5/site-packages/lxml/html/soupparser.py", line 7, in <module>
    from BeautifulSoup import \
ImportError: No module named BeautifulSoup
Traceback (most recent call last):
  File "/usr/bin/calibre_postinstall", line 8, in <module>
    load_entry_point('calibre==0.4.99', 'console_scripts', 'calibre_postinstall')()
  File "/home/kovid/work/calibre/src/calibre/linux.py", line 441, in post_install
    manifest += setup_completion(opts.fatal_errors)
  File "/home/kovid/work/calibre/src/calibre/linux.py", line 315, in setup_completion
    return manifest
UnboundLocalError: local variable 'manifest' referenced before assignment
Traceback (most recent call last):
  File "setup.py", line 438, in <module>
    subprocess.check_call('calibre_postinstall --do-not-reload-udev-hal', shell=True)
  File "/usr/lib/python2.5/subprocess.py", line 461, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'calibre_postinstall --do-not-reload-udev-hal' returned non-zero exit status 1
JeffElkins is offline   Reply With Quote
Advert
Old 10-24-2008, 05:45 PM   #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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
emerge beautifulsoup
kovidgoyal is offline   Reply With Quote
Old 10-24-2008, 06:59 PM   #7
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
Quote:
Originally Posted by kovidgoyal View Post
emerge beautifulsoup
Working now, thanks.
JeffElkins is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Gives Error jackibar Calibre 4 06-08-2010 09:46 AM
Can't Compile Calibre on F11 x64 rgheck Calibre 4 08-11-2009 12:43 AM
iLiad ipdf compile error (malloc) harpum iRex Developer's Corner 1 06-22-2009 11:10 PM
Calibre Error jbjb Calibre 2 05-19-2009 04:53 AM
Error with Calibre sonli Calibre 7 05-28-2008 10:38 AM


All times are GMT -4. The time now is 11:05 AM.


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