emerge calibre fails [Solved]

Anything that pertains to Portage

Moderator: Moderators

emerge calibre fails [Solved]

Postby svantoviit » Mon Apr 25, 2011 21:50

what's wrong?

Code: Select all
 * Package:    app-text/calibre-0.7.56
 * Repository: gentoo
 * Maintainer: zmedico@gentoo.org
 * USE:        amd64 bash-completion elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   preserve-libs sandbox
>>> Unpacking source...
>>> Unpacking calibre-0.7.56.tar.gz to /var/tmp/portage/app-text/calibre-0.7.56/work
>>> Source unpacked in /var/tmp/portage/app-text/calibre-0.7.56/work
>>> Preparing source in /var/tmp/portage/app-text/calibre-0.7.56/work/calibre ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-text/calibre-0.7.56/work/calibre ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-text/calibre-0.7.56/work/calibre ...
python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 13, in <module>
    import setup.commands as commands
  File "/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/setup/commands.py", line 28, in <module>
    from setup.translations import POT, GetTranslations, Translations, ISO639
  File "/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/setup/translations.py", line 14, in <module>
    from setup.build_environment import pyqt
  File "/var/tmp/portage/app-text/calibre-0.7.56/work/calibre/setup/build_environment.py", line 12, in <module>
    from PyQt4 import pyqtconfig
ImportError: No module named PyQt4
 * ERROR: app-text/calibre-0.7.56 failed:
 *   Building failed
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4976:  Called distutils_src_compile
 *   environment, line 1328:  Called die
 * The specific snippet of code:
 *               "$(PYTHON)" "${setup_file#*|}" "${_DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || die "Building failed";
 *
 * If you need support, post the output of 'emerge --info =app-text/calibre-0.7.56',
 * the complete build log and the output of 'emerge -pqv =app-text/calibre-0.7.56'.
 * The complete build log is located at '/var/lib/entropy/logs/app-text:calibre-0.7.56:20110425-201845.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/calibre-0.7.56/temp/environment'.
 * S: '/var/tmp/portage/app-text/calibre-0.7.56/work/calibre'
Last edited by svantoviit on Mon Apr 25, 2011 23:22, edited 1 time in total.
User avatar
svantoviit
Technological Hen
 
Posts: 385
Joined: Sun Feb 28, 2010 17:55
Location: Europe

Re: emerge calibre fails

Postby Thev00d00 » Mon Apr 25, 2011 21:53

No PyQT installed?

Are you using the limbo repo? In which case you need to do a world upgrade then
Code: Select all
eselect python set python2.7
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
User avatar
Thev00d00
Generally Awesome (tm)
 
Posts: 1467
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: emerge calibre fails

Postby svantoviit » Mon Apr 25, 2011 22:03

No Limbo, primary using Entropy.
dev-python/PyQt4 4.8.3 installed
Code: Select all
eselect python list
Available Python interpreters:
  [1]   python2.4
  [2]   python2.6 *
  [3]   python2.7
User avatar
svantoviit
Technological Hen
 
Posts: 385
Joined: Sun Feb 28, 2010 17:55
Location: Europe

Re: emerge calibre fails

Postby Thev00d00 » Mon Apr 25, 2011 22:06

What does running "python" from a command line and entering "import PyQt4" output?

Code: Select all
$ python
Python 2.7.1 (r271:86832, Mar 31 2011, 20:13:41)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4
>>>
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
User avatar
Thev00d00
Generally Awesome (tm)
 
Posts: 1467
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: emerge calibre fails

Postby svantoviit » Mon Apr 25, 2011 22:09

similar to your output:

Code: Select all
$ python
Python 2.6.6 (r266:84292, Feb 17 2011, 00:33:54)
[GCC 4.4.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4
>>>
User avatar
svantoviit
Technological Hen
 
Posts: 385
Joined: Sun Feb 28, 2010 17:55
Location: Europe

Re: emerge calibre fails

Postby joost » Mon Apr 25, 2011 22:36

New Calibre needs newer Python. (2.7)

http://packages.sabayon.org/show/calibr ... 5,standard

As you can see in the link above, it is available in testing repository and it will be made available in main repository soon.
If you can wait a few days, please don't bother and simply wait for it.
User avatar
joost
Sagely Hen
 
Posts: 2313
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: emerge calibre fails

Postby svantoviit » Mon Apr 25, 2011 23:22

Thank you for explanation.
User avatar
svantoviit
Technological Hen
 
Posts: 385
Joined: Sun Feb 28, 2010 17:55
Location: Europe


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 1 guest