Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 312915 - [PATCH] media-libs/aubio-0.3.2-r1: Syntax errors with Python 2.6
Summary: [PATCH] media-libs/aubio-0.3.2-r1: Syntax errors with Python 2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
: 251003 (view as bug list)
Depends on:
Blocks: python-2.6
  Show dependency tree
 
Reported: 2010-04-03 04:57 UTC by Martin Mokrejš
Modified: 2011-10-01 10:24 UTC (History)
4 users (show)

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


Attachments
Patch to fix for Python 2.6 (aubio-0.3.2-python26.patch,11.61 KB, patch)
2010-06-18 00:54 UTC, Sebastian Pipping
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2010-04-03 04:57:29 UTC
[cut]
>>> Completed installing libxml2-2.7.7 into /var/tmp/portage/dev-libs/libxml2-2.7.7/image/

ecompressdir: bzip2 -9 /usr/share/man
removing executable bit: usr/lib/libxml2.la

>>> Installing (1 of 1) dev-libs/libxml2-2.7.7
 * Compilation and optimization of Python modules for CPython 2.6 ...
Compiling //usr/lib/python2.6/site-packages/aubio/bench/onset.py ...
SyntaxError: ('invalid syntax', ('//usr/lib/python2.6/site-packages/aubio/bench/onset.py', 114, 36, "\t\td.append(Gnuplot.Data(fp, gd, with='linespoints', \n"))

Compiling //usr/lib/python2.6/site-packages/aubio/gnuplot.py ...
SyntaxError: ('invalid syntax', ('//usr/lib/python2.6/site-packages/aubio/gnuplot.py', 158, 30, "  return Gnuplot.Data(x,y,with='lines')\n"))

Compiling //usr/lib/python2.6/site-packages/aubio/plot/keyboard.py ...
SyntaxError: ('invalid syntax', ('//usr/lib/python2.6/site-packages/aubio/plot/keyboard.py', 33, 51, "  whites  = Gnuplot.Data(xw,yw,xwdelta,ywdelta,with = 'boxxyerrorbars')\n"))

Compiling //usr/lib/python2.6/site-packages/aubio/task/beat.py ...
SyntaxError: ('invalid syntax', ('//usr/lib/python2.6/site-packages/aubio/task/beat.py', 250, 41, '\t\toplots.append(Gnuplot.Data(results,with=\'linespoints\',title="auto"))\n'))

Compiling //usr/lib/python2.6/site-packages/aubio/task/notes.py ...
SyntaxError: ('invalid syntax', ('//usr/lib/python2.6/site-packages/aubio/task/notes.py', 98, 42, "\t\toplots.append(Gnuplot.Data(now,freq,with='lines',\n"))

Compiling //usr/lib/python2.6/site-packages/aubio/task/onset.py ...
SyntaxError: ('invalid syntax', ('//usr/lib/python2.6/site-packages/aubio/task/onset.py', 106, 47, "\t\toplot.append(Gnuplot.Data(downtime,ofunc,with='lines',title=self.params.onsetmode))\n"))

Compiling //usr/lib/python2.6/site-packages/aubio/task/pitch.py ...
SyntaxError: ('invalid syntax', ('//usr/lib/python2.6/site-packages/aubio/task/pitch.py', 159, 44, "\t\toplots.append(Gnuplot.Data(time,pitch,with='lines',\n"))
                                                                                                                                                                                                                                [ !! ]
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

# equery belongs /usr/lib/python2.6/site-packages/aubio/task/onset.py
 * Searching for /usr/lib/python2.6/site-packages/aubio/task/onset.py ... 
media-libs/aubio-0.3.2-r1 (/usr/lib/python2.6/site-packages/aubio/task/onset.py)
#
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-04-09 14:10:23 UTC
Please paste your "emerge --info".
Comment 2 Martin Mokrejš 2010-04-09 16:37:19 UTC
# emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.33.1 i686)
=================================================================
System uname: Linux-2.6.33.1-i686-Mobile_Intel-R-_Pentium-R-_4_-_M_CPU_1.80GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 01 Apr 2010 08:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p2-r1
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.5.4-r4, 2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc:       3.3.6-r1, 4.2.4-r1, 4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Nero-EULA-US skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
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"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz"
LDFLAGS="-Wl,-O1"
LINGUAS="en cs cz"
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/sunrise /usr/local/portage/layman/x11 /usr/local/portage/layman/science /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="32bit 7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache audacious audiofile bash-completion bcmath berkdb blas bluetooth boost branding bzip2 cairo caps cblas cddb cdparanoia cdr cgi clamav cli colordiff compress consolekit cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbi dbus dga dia directfb djbfft doc dri dts dv dvb dvd dvdr dvdread emacs emboss emf enblend encode enscript exif expat faad fam fame fat fbcon ffmpeg fftw firefox flac flash fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gsm gtk gtkhtml hal hdf hdf5 hp2xx i8x0 icc iconv icu id3 ieee1394 ifc imagemagick imlib inifile innodb ithreads jack java javascript jbig jce jikes jpeg jpeg2k kdtree kerberos lame lapack laptop lcms leim libcaca libnotify libwww live lzo lzw mad maildir matroska mhash mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug modules motif mozilla moznoirc mp2 mp3 mp4 mpeg mpi mpi_njtree mpich2 mplayer mudflap mule musepack mxdatetime mysql mysqli ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric ogg opengl openmp openssl pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt3support qt4 quicktime rar raw readline recode reflection reiserfs romio rpm samba sasl scanner scp seamonkey server session sftp sift slp smime sndfile soap sockets spell spl sqlite srt sse sse2 ssl startup-notification subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd tetex theora threads tidy tiff tk transcode truetype unicode urandom usb userlocales utils uuencode v4l v4l2 vcd vhook vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xanim xcf xfs xft xinerama xinetd xml xorg xpm xsl xslt xulrunner xv xvid xvmc yv12 zip zlib" ALSA_CARDS="intel-8x0m" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 Sebastian Pipping gentoo-dev 2010-06-18 00:54:46 UTC
Created attachment 235807 [details, diff]
Patch to fix for Python 2.6

I have written a patch that could solve this, see attachment.

The patch is untested, a bit like a proof of concept.
I need a real user of aubio to help me finish this from here.
20 minutes on IRC together could be all that's needed.
Please contact me on this matter.
Comment 4 Sebastian Pipping gentoo-dev 2010-07-05 14:08:50 UTC
Martin, esigra - are you available for testing?
Comment 5 Martin Mokrejš 2010-07-05 18:55:57 UTC
(In reply to comment #4)
> Martin, esigra - are you available for testing?
> 

I don't actually use it, sorry.
Comment 6 Erik 2010-07-05 20:04:46 UTC
(In reply to comment #4)
> Martin, esigra - are you available for testing?

I do not seem to have it installed. But I suppose that I could install it if you need me to test something.
Comment 7 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-08-23 13:02:58 UTC
*** Bug 251003 has been marked as a duplicate of this bug. ***
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2011-10-01 10:24:50 UTC
Hmm, instead of using the attached patch:

*aubio-0.3.2-r2 (01 Oct 2011)

  01 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> +aubio-0.3.2-r2.ebuild,
  +files/aubio-0.3.2-numarray-gnuplot.patch:
  Import Fedora patch for byte-compiling errors wrt #312915 by artin Mokrejš
  and Sebastian Pipping

If you feel the Fedora patch is wrong somehow, please let me know

Thanks!