Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287990 - dev-python/pygame-1.9.1 fails to compile bytecode with python3
Summary: dev-python/pygame-1.9.1 fails to compile bytecode with python3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-07 01:30 UTC by Benjamin Peterson
Modified: 2009-11-21 01:21 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 Benjamin Peterson 2009-10-07 01:30:06 UTC
>>> Installing (1 of 1) dev-python/pygame-1.9.1
 * Compilation and optimization of Python modules for Python 2.6 ...                                                                                                          [ ok ]
 * Compilation and optimization of Python modules for Python 3.1 ...
*** Error compiling /usr/lib64/python3.1/site-packages/pygame/examples/macosx/aliens_app_example/aliens.py ...
  File "/usr/lib64/python3.1/site-packages/pygame/examples/macosx/aliens_app_example/aliens.py", line 11
    raise SystemExit, "Sorry, extended image module required"
                    ^
SyntaxError: invalid syntax

*** Error compiling /usr/lib64/python3.1/site-packages/pygame/examples/macosx/macfont.py ...
  File "/usr/lib64/python3.1/site-packages/pygame/examples/macosx/macfont.py", line 52
    print name, self._font
             ^
SyntaxError: invalid syntax


Reproducible: Always




Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)                                                                           
=================================================================                                                                                                                   
System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5670_@_1.80GHz-with-gentoo-1.12.11.1
Timestamp of tree: Wed, 07 Oct 2009 00:30:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1, 3.1.1-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.arcticnetwork.ca/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirrors.cs.wmich.edu/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://mirror.its.uidaho.edu/pub/gentoo/ "
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 berkdb bzip2 cli cracklib crypt cups curl dbus dell dri emacs firefox3 fortran freetype gdbm glut gpm gstreamer hal iconv ipv6 isdnlog jpeg kde laptop libffi mmx modules mp3 mudflap multilib mysql ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pcre perl phonon png pppd python qt4 readline reflection sdl session spl sql sqlite sse sse2 ssl svg symlink sysfs tcpd threads tiff truetype unicode vorbis webkit xcomposite xft xorg xulrunner 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="vga intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Mattia Rossi 2009-11-17 04:34:00 UTC
Same here.. also amd64.

I sorta need that for freevo...
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-17 09:31:15 UTC
Announcement of 1.9.0 release says:
" - python3, and python3.1 support mostly completed. Some modules still remain to be completed - but mostly it's working."

So it's not suprising that some examples aren't compatible yet with Python 3. Does anybody need pygame/examples/macosx directory in Gentoo? Maybe the ebuild should remove this directory...

(In reply to comment #1)
> Same here.. also amd64.
> 
> I sorta need that for freevo...

AFAIK Freevo doesn't yet support Python 3 and it certainly doesn't use Pygame's examples.
Comment 3 Benjamin Peterson 2009-11-17 14:28:24 UTC
(In reply to comment #2)
> So it's not suprising that some examples aren't compatible yet with Python 3.
> Does anybody need pygame/examples/macosx directory in Gentoo? Maybe the ebuild
> should remove this directory...

I don't use them personally. I just think it should be able to compile .pycs without failing.

Comment 4 Mattia Rossi 2009-11-17 22:28:45 UTC
(In reply to comment #2)
 
> So it's not suprising that some examples aren't compatible yet with Python 3.
> Does anybody need pygame/examples/macosx directory in Gentoo? Maybe the ebuild
> should remove this directory...
> 
No it should simply compile

> (In reply to comment #1)
> > Same here.. also amd64.
> > 
> > I sorta need that for freevo...
> 
> AFAIK Freevo doesn't yet support Python 3 and it certainly doesn't use Pygame's
> examples.
> 

That's true. I need pygame for freevo, not python 3 and pygame. The problem is, that python 3 is automatically installed, unless you explicitly mask it (which I did now), and therefore pygame fails to install.

Masking >dev-lang/python-2.6.4 (and eventually unmergeing it) solves the issue.

Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-21 01:21:26 UTC
Examples are now installed only with USE="examples" and into a different location (/usr/share/doc/pygame-${PV}/examples), so the ebuild doesn't try to compile them.