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
kjch...@verizon.net
cummi...@kjchome.homeip.net
cummi...@kjc386.framingham.ma.us
Registered Linux User #1232 (http://www.linuxcounter.net/)
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to