Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284581 - dev-python/sphinx-0.6.3 fails to install
Summary: dev-python/sphinx-0.6.3 fails to install
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-11 10:03 UTC by Christos Stamatopoulos
Modified: 2009-09-17 03:26 UTC (History)
3 users (show)

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


Attachments
Build log (build.log,26.09 KB, text/plain)
2009-09-11 10:04 UTC, Christos Stamatopoulos
Details
build log (build.log,36.45 KB, text/plain)
2009-09-14 10:59 UTC, Christos Stamatopoulos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christos Stamatopoulos 2009-09-11 10:03:30 UTC
When installing the package the process fails.
>>> Installing (1 of 1) dev-python/sphinx-0.6.3
 * Cleaning orphaned Python bytecode from /usr/lib64/python2.6/site-packages/sphinx ..                                                                          
 * Deletion of Grammar pickle with Python 2.6...                                
rm: cannot remove `//usr/lib64/python2.6/site-packages/sphinx/pycode/Grammar*.pickle': No such file or directory     

Reproducible: Always

Steps to Reproduce:
1. emerge   dev-python/sphinx
2.
3.
Comment 1 Christos Stamatopoulos 2009-09-11 10:04:13 UTC
Created attachment 203773 [details]
Build log
Comment 2 Christos Stamatopoulos 2009-09-11 10:11:23 UTC
Accidentally pasted a smaller part of what i should have

>>> Installing (1 of 1) dev-python/sphinx-0.6.3
 * Cleaning orphaned Python bytecode from /usr/lib64/python2.6/site-packages/sphinx ..                                                                          
 * Deletion of Grammar pickle with Python 2.6...                                
rm: cannot remove `//usr/lib64/python2.6/site-packages/sphinx/pycode/Grammar*.pickle': No such file or directory                                                
 *                                                                              
 * ERROR: dev-python/sphinx-0.6.3 failed.                                       
 * Call stack:                                                                  
 *               ebuild.sh, line   49:  Called pkg_postrm                       
 *             environment, line 2474:  Called python_execute_function '--action-message' 'Deletion of Grammar pickle with Python ${PYTHON_ABI}...' 'deletion_of_grammar_pickle'                                                                
 *             environment, line 2783:  Called die                              
 * The specific snippet of code:                                                
 *                       die "${failure_message}";                              
 *  The die message:                                                            
 *   Postuninstallation failed with Python 2.6 in deletion_of_grammar_pickle() function                                                                         
 *                                                                              
 * If you need support, post the topmost build error, and the call stack if relevant.                                                                           
 * A complete build log is located at '/var/tmp/binpkgs/dev-python/sphinx-0.6.3/temp/build.log'.                                                                
 * The ebuild environment file is located at '/var/tmp/binpkgs/dev-python/sphinx-0.6.3/temp/environment'.                                                       
 *                                                                              
!!! FAILED postrm: 1                                                            
 * The 'postrm' phase of the 'dev-python/sphinx-0.6.3' package has failed       
 * with exit value 1.                                                           
 *                                                                              
 * The problem occurred while executing the ebuild file named                   
 * 'sphinx-0.6.3.ebuild' located in the '/var/db/pkg/dev-                       
 * python/sphinx-0.6.3' directory. If necessary, manually remove the            
 * environment.bz2 file and/or the ebuild file located in that directory.       
 *                                                                              
 * Removal of the environment.bz2 file is preferred since it may allow the      
 * removal phases to execute successfully. The ebuild will be sourced and       
 * the eclasses from the current portage tree will be used when necessary.      
 * Removal of the ebuild file will cause the pkg_prerm() and pkg_postrm()       
 * removal phases to be skipped entirely.                                       
 * Compilation and optimization of Python modules for Python 2.6 ...      [ ok ]
 * Generation of Grammar pickle with Python 2.6...                              
Traceback (most recent call last):                                              
  File "<string>", line 1, in <module>                                          
  File "/usr/lib64/python2.6/site-packages/sphinx/pycode/__init__.py", line 24, in <module>                                                                     
    pygrammar = driver.load_grammar(_grammarfile)                               
  File "/usr/lib64/python2.6/site-packages/sphinx/pycode/pgen2/driver.py", line 126, in load_grammar                                                            
    g = pgen.generate_grammar(gt)                                               
  File "/usr/lib64/python2.6/site-packages/sphinx/pycode/pgen2/pgen.py", line 383, in generate_grammar                                                          
    p = ParserGenerator(filename)                                               
  File "/usr/lib64/python2.6/site-packages/sphinx/pycode/pgen2/pgen.py", line 15, in __init__                                                                   
    stream = open(filename)                                                     
IOError: [Errno 2] No such file or directory: '/usr/lib64/python2.6/site-packages/sphinx/pycode/Grammar.txt'                                                    
 *                                                                              
 * ERROR: dev-python/sphinx-0.6.3 failed.                                       
 * Call stack:                                                                  
 *               ebuild.sh, line   49:  Called pkg_postinst                     
 *             environment, line 2468:  Called python_execute_function '--action-message' 'Generation of Grammar pickle with Python ${PYTHON_ABI}...' 'generation_of_grammar_pickle'                                                            
 *             environment, line 2757:  Called generation_of_grammar_pickle     
 *             environment, line 2466:  Called die                              
 * The specific snippet of code:                                                
 *           "$(PYTHON)" -c "from sphinx.pycode.pgen2.driver import load_grammar; load_grammar('${ROOT}$(python_get_sitedir)/sphinx/pycode/Grammar.txt')" || die "Generation of grammar pickle failed"                                          
 *  The die message:                                                            
 *   Generation of grammar pickle failed                                        
 *                                                                              
 * If you need support, post the topmost build error, and the call stack if relevant.                                                                           
 * A complete build log is located at '/var/tmp/portage/dev-python/sphinx-0.6.3/temp/build.log'.                                                                
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/sphinx-0.6.3/temp/environment'.                                                       
 *                                                                              
!!! FAILED postinst: 1                                                          

>>> Failed to install dev-python/sphinx-0.6.3, Log file:

>>>  '/var/tmp/portage/dev-python/sphinx-0.6.3/temp/build.log'
Comment 3 Alexander Koryushkin 2009-09-13 07:12:19 UTC
I confirm this bug

emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.4, glibc-2.10.1-r0, 2.6.31-rc9-git3-core2 i686)
=================================================================
System uname: Linux-2.6.31-rc9-git3-core2-i686-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 13 Sep 2009 06:30:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9
dev-lang/python:     2.4.4-r13, 2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -fomit-frame-pointer -ftree-vectorize -funroll-loops"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CPPFLAGS="-O2 -march=native -mtune=native -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -fomit-frame-pointer -ftree-vectorize -funroll-loops"
CXXFLAGS="-O2 -march=native -mtune=native -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -fomit-frame-pointer -ftree-vectorize -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS=" http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://mirror.yandex.ru/gentoo-distfiles/ http://gentoo.supp.name/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/games"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acc acl acpi addbookmarks aim akode alias alsa aol arts ass avi bash-completion berkdb bluetooth bs2b bzip2 cairo cd cdparanoia cdr cli connectionstatus consolekit contactnotes cracklib crypt css cups curl daap dbus dia divx djvu doc dri dri2 dts dv dvb dvd dvdr emf enca encode eselect esound examples expat fax ffmpeg fftw flac fortran ftp gadu gallium gallium-intel gdbm gif git glitz glut gmplayer gnutls gpm gstreamer h224 h281 h323 hal highlight i18n iax iconv icq ieee1394 ifp imagemagick inkjar ipod irc isdnlog ivr ixj jabber jack jadetex java java6 javascript jbig jingle joystick jpeg jpeg2k kde kde3 kpathsea lame latex lcms libcaca libsamplerate lid lirc lzo mad matroska mbrola mikmod mmx mmxext mng modplug mp3 mp4 mpeg mplayer msn mtp mudflap musepack musicbrainz nas ncurses netmeeting njb nls nptl nptlonly nsplugin ogg openal openexr opengl openmp openssl oscar pam pch pcre pdf perl phonon pipechan plotutils plugins png pnm postscript pppd projectm python qt3 qt3support qt4 quicktime rar raster rdesktop readline reflection rfc4175 samba sametime sane sbc scanner scrobbler sdl session shmvideo sip sipim slang sms sndfile snmp soap socks speex spell spl sse sse2 sse3 ssl ssse3 svg sysfs tcpd telnet theora threads tiff tk translator truetype tts udev unicode unrar usb utf8 v4l v4l2 video-file video4linux vidix visualization vnc vorbis vxml wav wavpack wifi win32codecs winpopup wmf x264 x86 xanim xcb xcomposite xine xinerama xml xmlrpc xmp xorg xscreensaver xulrunner xv xvid xvmc yahoo zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" NETBEANS_MODULES="apisupport harness ide java nb cnd groovy gsf identity j2ee mobility php profiler soa visualweb webcommon websvccommon xml dlight enterprise ergonomics ruby" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-13 23:03:37 UTC
Comment on attachment 203773 [details]
Build log

This build log is missing important informations. Please attach the build log of building dev-python/sphinx with -v option.
Comment 5 Billy DeVincentis 2009-09-14 09:10:10 UTC
I was able to emerge this by deleting the build folder in /var/db/pkg/dev-python/sphinx
Comment 6 Christos Stamatopoulos 2009-09-14 10:59:57 UTC
Created attachment 204026 [details]
build log
Comment 7 Peter Levine 2009-09-14 21:50:23 UTC
The files Grammar2.6.2.final.0.pickle and Grammar.txt are not being installed. It merged for me when I did an "ebuild install" on the ebuild, copied the 
Grammar2.6.2.final.0.pickle and Grammar.txt files from ${S}/sphinx/pycode to ${D}/usr/lib64/python2.6/site-packages/sphinx/pycode, and finished merging with "ebuild qmerge".
Comment 8 Peter Levine 2009-09-14 22:16:39 UTC
Nevermind, apparently sphinx-build wasn't built or installed either. The build seems to use dist.py from dev-lang/python instead of dev-python/setuptools. Yhe one from setuptools has the distribution options the build script claims it can't find.
Comment 9 Christos Stamatopoulos 2009-09-14 23:24:48 UTC
It got compiled for me yesterday after the --sync . I saw that dev-python/setuptools was in the update so could be due to it?
Comment 10 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-15 18:30:20 UTC
Please try with dev-python/setuptools-0.6.1-r1.
Comment 11 Peter Levine 2009-09-17 03:24:45 UTC
Installed correctly dev-python/setuptools-0.6.1-r1.
Comment 12 Peter Levine 2009-09-17 03:26:49 UTC
Installed correctly with dev-python/setuptools-0.6.1-r1.