Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435270 - media-libs/aubio-0.3.2-r1 - SyntaxError: ('invalid syntax', ('/usr/lib64/python2.7/site-packages/aubio/bench/onset.py', 114, 36, "ttd.append(Gnuplot.Data(fp, gd, with='linespoints', n"))
Summary: media-libs/aubio-0.3.2-r1 - SyntaxError: ('invalid syntax', ('/usr/lib64/pyth...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-16 21:49 UTC by Samuele Santi
Modified: 2018-12-03 20:17 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 Samuele Santi 2012-09-16 21:49:02 UTC
I was installing =media-libs/aubio-0.3.2-r1 as a dependency of =media-sound/ardour-2.8.12, when i got these errors:



>>> Installing (1 of 1) media-libs/aubio-0.3.2-r1
 * Compilation and optimization of Python modules for CPython 2.7 ...                                                                                                                                                                 [ !! ]
 *     Compiling /usr/lib64/python2.7/site-packages/aubio/bench/onset.py ...
 *     SyntaxError: ('invalid syntax', ('/usr/lib64/python2.7/site-packages/aubio/bench/onset.py', 114, 36, "ttd.append(Gnuplot.Data(fp, gd, with='linespoints', n"))
 *     
 *     Compiling /usr/lib64/python2.7/site-packages/aubio/gnuplot.py ...
 *     SyntaxError: ('invalid syntax', ('/usr/lib64/python2.7/site-packages/aubio/gnuplot.py', 158, 30, "  return Gnuplot.Data(x,y,with='lines')n"))
 *     
 *     Compiling /usr/lib64/python2.7/site-packages/aubio/plot/keyboard.py ...
 *     SyntaxError: ('invalid syntax', ('/usr/lib64/python2.7/site-packages/aubio/plot/keyboard.py', 33, 51, "  whites  = Gnuplot.Data(xw,yw,xwdelta,ywdelta,with = 'boxxyerrorbars')n"))
 *     
 *     Compiling /usr/lib64/python2.7/site-packages/aubio/task/beat.py ...
 *     SyntaxError: ('invalid syntax', ('/usr/lib64/python2.7/site-packages/aubio/task/beat.py', 250, 41, 'ttoplots.append(Gnuplot.Data(results,with='linespoints',title="auto"))n'))
 *     
 *     Compiling /usr/lib64/python2.7/site-packages/aubio/task/notes.py ...
 *     SyntaxError: ('invalid syntax', ('/usr/lib64/python2.7/site-packages/aubio/task/notes.py', 98, 42, "ttoplots.append(Gnuplot.Data(now,freq,with='lines',n"))
 *     
 *     Compiling /usr/lib64/python2.7/site-packages/aubio/task/onset.py ...
 *     SyntaxError: ('invalid syntax', ('/usr/lib64/python2.7/site-packages/aubio/task/onset.py', 106, 47, "ttoplot.append(Gnuplot.Data(downtime,ofunc,with='lines',title=self.params.onsetmode))n"))
 *     
 *     Compiling /usr/lib64/python2.7/site-packages/aubio/task/pitch.py ...
 *     SyntaxError: ('invalid syntax', ('/usr/lib64/python2.7/site-packages/aubio/task/pitch.py', 159, 44, "ttoplots.append(Gnuplot.Data(time,pitch,with='lines',n"))




The emerge goes fine, and the ebuild is marked as merged, but I'm unsure whether this can lead to further problems.

The error is caused by the "with" keyword argument passed to Gnuplot.Data constructor. In Python <2.7 "with" was not a reserved keyword, while it is in 2.7 (I'm using 2.7.3).

I found the same problem in media-plugins/gst-plugins-jack (and it can possibly affect every python module using gnuplot)
Comment 1 Volkmar Glauche 2014-01-23 10:20:48 UTC
This seems to be fixed in upstream version 0.3.3 - see http://dev.aubio.org/ticket/13.
Comment 2 Andreas Sturmlechner gentoo-dev 2018-12-03 20:17:10 UTC
(In reply to Volkmar Glauche from comment #1)
> This seems to be fixed in upstream version 0.3.3 - see
> http://dev.aubio.org/ticket/13.

Thanks, this bug is long obsolete then.