Re: Biting the bullet?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx
cummings@xxxxxxxxxxxxxxxxxx
cummings@xxxxxxxxxxxxxxxxxxxxxxx
Registered Linux User #1232 (http://www.linuxcounter.net/)
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
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




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux