Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275675 - dev-util/qmtest-2.4 doesn't work with Python 2.6
Summary: dev-util/qmtest-2.4 doesn't work with Python 2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Joel Martin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: python-2.6
  Show dependency tree
 
Reported: 2009-06-28 11:05 UTC by mathwizard
Modified: 2009-06-28 11:26 UTC (History)
0 users

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 mathwizard 2009-06-28 11:05:42 UTC
Trying to run qmtest create-tdb in order to follow the online tutorial, an error occurs.

Reproducible: Always

Steps to Reproduce:
1. emerge qmtest
2. mkdir tdb;cd tdb
3. qmtest create-tdb

Actual Results:  
/usr/lib64/python2.6/site-packages/qm/platform_unix.py:24: DeprecationWarning: the MimeWriter module is deprecated; use the email package instead
  import MimeWriter
Traceback (most recent call last):
  File "/usr/bin/qmtest", line 74, in <module>
    import qm.test.cmdline
  File "/usr/lib64/python2.6/site-packages/qm/test/cmdline.py", line 1913
    as = { "format" : format }
     ^
SyntaxError: invalid syntax


Expected Results:  
Some test database should have been created.

I am using python-2.6.2, which should be responsible at least for the deprecation warning. Line 1913 in the referenced file appears fine to me.

emerge --info:
Portage 2.2_rc33 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.8_p20080602-r1, 2.6.30-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 28 Jun 2009 08:20:01 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 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.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.qubenet.net/mirror/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 acl acpi additions addressbook alsa amd64 applet artworkextra avahi bash-completion battery berkdb blender-game bluetooth branding bzip2 cairo calendar cddb cdparanoia cdr clamav clamd cli cpufreq cracklib crypt cups dbus dga djvu dri dvd dvdr dvdread dvi editor emboss encode esd evo exif fam ffmpeg fftw firefox fits fortran ftp fuse galago gd gdbm gedit gif gimp gnokii gnome gnome-keyring gnuplot gphoto2 gpm graphviz gstreamer gtk hal hdf5 hdri htmlhandbook iconv icq ieee1394 ifp imagemagick imap imlib ipod ipv6 isdnlog jabber jbig jpeg jpeg2k kde kerberos kig-scripting kipi kpathsea lame laptop latex lcms ldap lensfun libnotify libsexy lm_sensors logitech-mouse logrotate mad marble midi mikmod mmx mp3 mpeg mplayer msn mtp mudflap multilib musicbrainz mysql ncurses netcdf networkmanager njb nls nptl nptlonly nsplugin ntfs offensive ogg openal openexr opengl openmp pam pcre pda pdf perl php plasma plotutils png postscript povray ppds pppd python qt3 qt3support qt4 quicktime raw readline reflection rss sasl scanner sdl semantic-desktop session solver soundtouch spell spl sse sse2 ssl startup-notification subversion svg sysfs tcpd threads tiff timidity truetype unicode usb v4l v4l2 vamp vcd vdpau vim-syntax visualization vorbis webdav wifi wmf wxwindows x264 xcb xcomposite xine xinerama xml xmp xorg xpm xscreensaver xulrunner xv zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="wacom evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Patrick Lauer gentoo-dev 2009-06-28 11:10:30 UTC
"as" is a reserved keyword in 2.6 :)
Comment 2 Patrick Lauer gentoo-dev 2009-06-28 11:22:37 UTC
+*qmtest-2.4.1 (28 Jun 2009)
+
+  28 Jun 2009; Patrick Lauer <patrick@gentoo.org> +qmtest-2.4.1.ebuild:
+  Bump to 2.4.1, fixes python problems and closes #275675