Biting the bullet?
Kevin Cummings
cummings at kjchome.homeip.net
Fri May 22 04:13:53 UTC 2015
On 05/21/2015 05:44 PM, Ranjan Maitra wrote:
> Hi,
>
> I have been working on this again, but am unable to compile:
>
> Here is the file:
>
[snip]
> byte-compiling /home/maitra/rpmbuild/BUILDROOT/pdf-stapler-0.3.0-1.fc22.x86_64/usr/lib/python3.4/site-packages/staplelib/commands.py to commands.cpython-34.pyc
> File "/usr/lib/python3.4/site-packages/staplelib/commands.py", line 33
> print input['name']
> ^
> SyntaxError: Missing parentheses in call to 'print'
> byte-compiling /home/maitra/rpmbuild/BUILDROOT/pdf-stapler-0.3.0-1.fc22.x86_64/usr/lib/python3.4/site-packages/staplelib/stapler.py to stapler.cpython-34.pyc
> File "/usr/lib/python3.4/site-packages/staplelib/stapler.py", line 79
> print "Mode: %s" % mode
^
> SyntaxError: Missing parentheses in call to 'print'
>
> byte-compiling /home/maitra/rpmbuild/BUILDROOT/pdf-stapler-0.3.0-1.fc22.x86_64/usr/lib/python3.4/site-packages/staplelib/tests.py to tests.cpython-34.pyc
> byte-compiling /home/maitra/rpmbuild/BUILDROOT/pdf-stapler-0.3.0-1.fc22.x86_64/usr/lib/python3.4/site-packages/staplelib/iohelper.py to iohelper.cpython-34.pyc
> File "/usr/lib/python3.4/site-packages/staplelib/iohelper.py", line 36
> print "The password did not match."
> ^
> SyntaxError: Missing parentheses in call to 'print'
> byte-compiling /home/maitra/rpmbuild/BUILDROOT/pdf-stapler-0.3.0-1.fc22.x86_64/usr/lib/python3.4/site-packages/staplelib/__init__.py to __init__.cpython-34.pyc
> writing byte-compilation script '/tmp/tmpzhfhibts.py'
> /usr/bin/python3 -O /tmp/tmpzhfhibts.py
> File "/usr/lib/python3.4/site-packages/staplelib/commands.py", line 33
> print input['name']
^
> SyntaxError: Missing parentheses in call to 'print'
>
> File "/usr/lib/python3.4/site-packages/staplelib/stapler.py", line 79
> print "Mode: %s" % mode
> ^
> SyntaxError: Missing parentheses in call to 'print'
> File "/usr/lib/python3.4/site-packages/staplelib/iohelper.py", line 36
> print "The password did not match."
> ^
> SyntaxError: Missing parentheses in call to 'print'
> Bytecompiling .py files below /home/maitra/rpmbuild/BUILDROOT/pdf-stapler-0.3.0-1.fc22.x86_64/usr/lib/python3.4 using /usr/bin/python3.4
> *** Error compiling '/home/maitra/rpmbuild/BUILDROOT/pdf-stapler-0.3.0-1.fc22.x86_64/usr/lib/python3.4/site-packages/staplelib/commands.py'...
> File "/usr/lib/python3.4/site-packages/staplelib/commands.py", line 33
> print input['name']
> ^
> SyntaxError: Missing parentheses in call to 'print'
> *** Error compiling '/home/maitra/rpmbuild/BUILDROOT/pdf-stapler-0.3.0-1.fc22.x86_64/usr/lib/python3.4/site-packages/staplelib/iohelper.py'...
> File "/usr/lib/python3.4/site-packages/staplelib/iohelper.py", line 36
> print "The password did not match."
> ^
> SyntaxError: Missing parentheses in call to 'print'
> *** Error compiling '/home/maitra/rpmbuild/BUILDROOT/pdf-stapler-0.3.0-1.fc22.x86_64/usr/lib/python3.4/site-packages/staplelib/stapler.py'...
> File "/usr/lib/python3.4/site-packages/staplelib/stapler.py", line 79
> print "Mode: %s" % mode
> ^
> SyntaxError: Missing parentheses in call to 'print'
> WHat is wrong?
print is a function in python. Its arguments must appear inside ()'s,
just like the error messages tell you.
ie not:
print input['name']
but instead:
print(input['name'])
> Thanks,
> Ranjan
>
> ____________________________________________________________
> FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
> Visit http://www.inbox.com/photosharing to find out more!
>
>
--
Kevin J. Cummings
kjchome at verizon.net
cummings at kjchome.homeip.net
cummings at kjc386.framingham.ma.us
Registered Linux User #1232 (http://www.linuxcounter.net/)
More information about the users
mailing list