Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376879 - dev-python/sqlalchemy-0.7.1 fails on TypeError during install with Python 3.1.3
Summary: dev-python/sqlalchemy-0.7.1 fails on TypeError during install with Python 3.1.3
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-29 09:59 UTC by Mike Hammill
Modified: 2011-12-01 18:10 UTC (History)
0 users

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


Attachments
sqlalchemy build log (dev-python:sqlalchemy-0.7.1:20110729-064550.log,91.57 KB, text/plain)
2011-07-29 10:01 UTC, Mike Hammill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Hammill 2011-07-29 09:59:11 UTC
Error during emerge ("running install_egg_info") with sqlalchemy-0.7.1 (unstable) with python-2.7.1-r1 + python-3.1.3 (both stable).  Error appears to be in the python-3.1.3 part.

Reproducible: Always

Steps to Reproduce:
emerge latest unstable sqlalchemy with python 3.1

Actual Results:  
fails to emerge

Expected Results:  
emerges

Emerge info below and will shortly attach log file of failed emerge.

# emerge --info sqlalchemy
Portage 2.1.10.3 (default/linux/amd64/10.0/no-multilib, gcc-4.4.5, glibc-2.12.2-r0, 2.6.39-gentoo-r3 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 28 Jul 2011 23:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.4-r2
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo bleeding-edge sunrise mhammill
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y --autounmask-write"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.ing.umu.se/linux/gentoo/ http://mirror.mdfnet.se/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US en_GB sv sv_SE"
MAKEOPTS="-j3"
PKGDIR="/var/pkg"
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="/var/lib/layman/bleeding-edge /var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://giddy.michael.hammill.name/gentoo-portage"
USE="X aac aalib acl afs alsa amd64 apache2 aspell assistant autoipd avahi bash-completion berkdb bidi branding bzip2 cairo caps cdda cgi cli consolekit contrib cracklib crypt cups curl cvs cxx dbus desktop-integration device-mapper dga dia djvu docbook dot dri dts dvd dvi dvi2tty dvipdfm emacs exif extensions extra extras fam ffmpeg flac fltk fontconfig fortran fuse gdbm gdu geoip gif gimp git gnuplot gnutls gpm graphics graphviz gs gstreamer gtk helpers hpn hwdb hyphenation iconv icu idn imagemagick imlib ipv6 jai java java6 jpeg kerberos kpathsea lame latex latex3 lcms ldap libcaca libnotify libssh2 libxml2 lightning live lm_sensors lua lyx m17n-lib mailwrapper matroska mmx mng modules mp3 mpeg mpi mpm-worker mudflap nagios-ntp nagios-ssh nano-syntax ncurses network-cron nls no-old-linux nptl nptlonly nsplugin nss ogg opencl opengl openmp openssl pam pcre pdf perl plotutils png policykit postscript ppds pppd pulseaudio python qt3support qt4 quicktime raw rcs readline rtf ruby sasl schroedinger screenshot secure-delete sensord session sound spell sse sse2 ssl startup-notification stream subversion svg sysfs system-sqlite system-v8 t1lib tcl tcpd templates tex4ht theora threads tiff tk tor tordns truetype twolame udev unicode v4l v4l2 vhosts vlm webdav webkit wmf wxwidgets xattr xft xinerana xorg xscreensaver xulrunner xv xvmc zlib" ALSA_CARDS="intel8x0" 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="access actions alias asis auth auth_anon auth_dbm auth_digest authz_default authz_host autoindex cache case_filter_in case_filter cern_meta cgi cgid charset_lite dav dav_fs dav_lock deflate dir disk_cache echo env expires ext_filter file_cache filter headers imap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_connect proxy_ftp proxy_http rewrite setenvif so speling status unique_id unique_id userdir usertrack vhost_alias authn_file authz_groupfile authz_user" APACHE2_MPMS="worker" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB sv sv_SE" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-python/sqlalchemy-0.6.7 was built with the following:
USE="doc examples sqlite (-firebird) -mssql -mysql -postgres -test"
Comment 1 Mike Hammill 2011-07-29 10:01:08 UTC
Created attachment 281425 [details]
sqlalchemy build log
Comment 2 Mike Hammill 2011-08-09 19:04:40 UTC
According to the log, the emerge bombs on 

  File "/usr/lib64/python3.1/site-packages/setuptools/command/easy_install.py", line 1605, in get_script_header
    match = first_line_re.match(first)
TypeError: can't use a bytes pattern on a string-like object

There is a full explanation of why this happens at 

http://diveintopython3.org/case-study-porting-chardet-to-python-3.html

but given that it's in setuptools, I figured it was fixed in a newer version than the stable version (0.6.15), so I upgraded to unstable 0.6.19 and this fixed the problem.

In short, I guess for now the ebuild line:

RDEPEND="dev-python/setuptools

should include version info for something higher than 0.6.15.

/Mike
PS  Short overview of the versions involved in this bug:
dev-python/sqlalchemy-0.7.1 (unstable)
dev-lang/python-2.7.1-r1 (stable)
dev-lang/python-3.1.4-r2 (unstable)
dev-python/setuptool-0.6.15 (stable--fails, so now 0.6.19--works!)
Comment 3 Arfrever Frehtes Taifersar Arahesis 2011-10-23 16:38:50 UTC
You were mixing new versions of dev-lang/python with old versions of dev-python/setuptools. Older versions of dev-python/setuptools now block newer versions of dev-lang/python, so this bug can be closed.