Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265819 - dev-python/docutils-0.5 fails to work with python-2.6-r1
Summary: dev-python/docutils-0.5 fails to work with python-2.6-r1
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 265821 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-12 05:33 UTC by stshine
Modified: 2009-09-16 00:22 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stshine 2009-04-12 05:33:49 UTC
When running rst2html.py,error occurs:
Traceback (most recent call last):
  File "/usr/bin/rst2html.py", line 17, in <module>
    from docutils.core import publish_cmdline, default_description
ImportError: No module named docutils.core
So T tried to re-emerge docutils, and it said:
>>> Emerging (1 of 1) dev-python/docutils-0.5
 * docutils-0.5.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                     [ ok ]
 * checking ebuild checksums ;-) ...                                                       [ ok ]
 * checking auxfile checksums ;-) ...                                                      [ ok ]
 * checking miscfile checksums ;-) ...                                                     [ ok ]
>>> Unpacking source...                                                                          
>>> Unpacking docutils-0.5.tar.gz to /var/tmp/portage/dev-python/docutils-0.5/work               
 * Applying docutils-0.3.7-extramodules.patch ...                                           [ ok ]
>>> Source unpacked in /var/tmp/portage/dev-python/docutils-0.5/work                              
>>> Compiling source in /var/tmp/portage/dev-python/docutils-0.5/work/docutils-0.5 ...            
Error: The "distutils" standard module, which is required for the                                 
installation of Docutils, could not be found.  You may need to                                    
install a package called "python-devel" (or similar) on your                                      
system using your package manager.                                                                
 *                                                                                                
 * ERROR: dev-python/docutils-0.5 failed.                                                         
 * Call stack:                                                                                    
 *               ebuild.sh, line   48:  Called src_compile                                        
 *             environment, line 2460:  Called distutils_src_compile
 *             environment, line  690:  Called die
 * The specific snippet of code:
 *       ${python} setup.py build "$@" || die "compilation failed"
 *  The die message:
 *   compilation 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/docutils-0.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/docutils-0.5/temp/environment'.
 *


Reproducible: Always

Steps to Reproduce:
1.run rst2html
2.emerge docutils
3.

Actual Results:  
1.
Traceback (most recent call last):
  File "/usr/bin/rst2html.py", line 17, in <module>
    from docutils.core import publish_cmdline, default_description
ImportError: No module named docutils.core

2.
Error: The "distutils" standard module, which is required for the                                 
installation of Docutils, could not be found.  You may need to                                    
install a package called "python-devel" (or similar) on your                                      
system using your package manager.                                                                
 *                                                                                                
 * ERROR: dev-python/docutils-0.5 failed.                                                         
 * Call stack:                                                                                    
 *               ebuild.sh, line   48:  Called src_compile                                        
 *             environment, line 2460:  Called distutils_src_compile
 *             environment, line  690:  Called die
 * The specific snippet of code:
 *       ${python} setup.py build "$@" || die "compilation failed"
 *  The die message:
 *   compilation 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/docutils-0.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/docutils-0.5/temp/environment'.
 *



shine ~ # emerge --info                                                                           
Portage 2.1.6.11 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1-shine i686)                                                                                         
=================================================================                                 
System uname: Linux-2.6.29-gentoo-r1-shine-i686-Genuine_Intel-R-_CPU_2140_@_1.60GHz-with-gentoo-2.0.0                                                                                               
Timestamp of tree: Sun, 12 Apr 2009 03:15:01 +0000                                                
app-shells/bash:     4.0_p17                                                                      
dev-lang/python:     2.5.4-r2, 2.6.1-r1                                                           
dev-util/cmake:      2.6.3-r1                                                                     
sys-apps/baselayout: 2.0.0                                                                        
sys-apps/openrc:     0.4.3-r1                                                                     
sys-apps/sandbox:    1.9                                                                          
sys-devel/autoconf:  2.13, 2.63-r1                                                                
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2                                              
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.28-r1                                                                    
ACCEPT_KEYWORDS="x86 ~x86"                                                                        
CBUILD="i686-pc-linux-gnu"                                                                        
CFLAGS="-O2 -march=core2 -fomit-frame-pointer -pipe"                                              
CHOST="i686-pc-linux-gnu"                                                                         
CONFIG_PROTECT="/etc /usr/share/config"                                                           
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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"
CXXFLAGS="-O2 -march=core2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.cs.nctu.edu.tw/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en  zh_CN"
MAKEOPTS="-j4"
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/gentoo-china"
SYNC="rsync://gentoo.cs.nctu.edu.tw/gentoo-portage/"
USE="X acl acpi alsa berkdb bzip2 cairo cleartype cli cracklib crypt custom-cxxflags dbus doc driexamples fam flac fontconfig fortran gdbm gif gmp gpm hal htmlhandbook iconv ipv6 isdnlog jpeg jpeg2k kde mad midi minimal mmx mmxext mp4 mudflap ncurses nls nptl nptlonly opengl openmp pam pcre pdf perl png pppd python qt4 readline reflection session source spl sse sse2 ssl ssse3 sysfs tcpd threads tiff truetype unicode wma x86 xattr xft xorg 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 alawasym 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en  zh_CN" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-12 06:47:47 UTC
*** Bug 265821 has been marked as a duplicate of this bug. ***
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-12 07:32:42 UTC
Did you run "python-updater" after upgrading to python-2.6?
Comment 3 stshine 2009-04-12 11:11:25 UTC
(In reply to comment #2)
> Did you run "python-updater" after upgrading to python-2.6?
> 

Oh, Sorry ... So embarrassed
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-12 17:21:16 UTC
So did running "python-updater" fix the problem?
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-16 04:03:10 UTC
Please reopen this bug report if the problem persists.
Comment 6 Kyle Liddell 2009-04-20 15:54:46 UTC
To confirm a solution to someone else's problem:
I had the same error, and running python-updater fixed things here.
Comment 7 typograph 2009-06-03 07:38:44 UTC
An quicker solution is to emerge dev-python/setuptools. After that docutils emerge without problems.
Of course, somewhere afterwards one still needs to run python-updater, but this solution helps if docutils was package 211 of 415 and the emerge command of python-updater leads to conflicts.
Comment 8 Sven Müller 2009-07-03 09:55:31 UTC
(In reply to comment #7)
> An quicker solution is to emerge dev-python/setuptools. 
Thx, that did it for me.

Comment 9 Isaac ‘Will It Work’ Dansicker 2009-08-11 10:04:52 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > An quicker solution is to emerge dev-python/setuptools. 
> Thx, that did it for me.
> 

Same here, running python-updater did nothing, eselect only showed the one profile, but there was all sorts of python 2.5 messages.  Re-emerging the setuptools, then running the updater scrupt fixed this and a few other python issues.
Comment 10 James McMechan 2009-09-16 00:22:51 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > (In reply to comment #7)
> > > An quicker solution is to emerge dev-python/setuptools. 
> > Thx, that did it for me.
> > 
> 
> Same here, running python-updater did nothing, eselect only showed the one
> profile, but there was all sorts of python 2.5 messages.  Re-emerging the
> setuptools, then running the updater scrupt fixed this and a few other python
> issues.
> 
Ok, this also fixed docutils-0.5 failing due to 

Error: The "distutils" standard module, which is required for the
installation of Docutils, could not be found.  You may need to
install a package called "python-devel" (or similar) on your
system using your package manager.

I have no idea why python-update and eselect failed to work but after emerge -av1 setuptools and python-update my emerge -avuDN world could finish.