Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374395 - app-ext/calibre-0.8.6 ignoring python eselect version
Summary: app-ext/calibre-0.8.6 ignoring python eselect version
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on: 362473
Blocks:
  Show dependency tree
 
Reported: 2011-07-07 22:05 UTC by Jason Miller
Modified: 2011-12-17 18:35 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info =app-text/calibre-0.8.6 (emerge-info.txt,4.78 KB, text/plain)
2011-07-07 22:06 UTC, Jason Miller
Details
emerge -pqv =app-text/calibre-0.8.6 (emerge-pqv.txt,64 bytes, text/plain)
2011-07-07 22:06 UTC, Jason Miller
Details
build log (build.log,2.36 KB, text/plain)
2011-07-07 22:07 UTC, Jason Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Miller 2011-07-07 22:05:31 UTC
app-text/calibre-0.8.6 fails to emerge due to PyQt4 not found.

It appears that this is due to calibre using python2.7 but my python is eselected to python2.6

If it requires python2.7 to be the active python, it should probably check this and exit with a message suggesting something along the lines of:

# eselect python set --python2 python2.7; python-updater

Which works around the problem quite nicely.

Reproducible: Always

Steps to Reproduce:
1. System with PyQt4 built against python2.6, but not python2.7
2. python2.6 is the active version of python
3. attempt to emerge calibre
Actual Results:  
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.8.6/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.8.6/work/calibre/setup/translations.py", line 14, in <module>
    from setup.build_environment import pyqt
  File "/var/tmp/portage/app-text/calibre-0.8.6/work/calibre/setup/build_environment.py", line 12, in <module>
    from PyQt4 import pyqtconfig


Expected Results:  
calibre should be installed using python2.6, or a message indicating it requires python2.7 should be displayed

build log and emerge information will be attached.
Comment 1 Jason Miller 2011-07-07 22:06:08 UTC
Created attachment 279379 [details]
emerge --info =app-text/calibre-0.8.6
Comment 2 Jason Miller 2011-07-07 22:06:41 UTC
Created attachment 279381 [details]
emerge -pqv =app-text/calibre-0.8.6
Comment 3 Jason Miller 2011-07-07 22:07:46 UTC
Created attachment 279383 [details]
build log
Comment 4 Zac Medico gentoo-dev 2011-12-17 18:35:51 UTC
According to the calibre website, calibre requires python 2.7:

  http://calibre-ebook.com/download_linux

Since bug 362473, the ebuild forces the active python to 2.7. So, the versions of python selected by eselect python is irrelevant.