[arch-general] Could python2 be breaking genpkgmetadata.py?
Ng Oon-Ee
ngoonee at gmail.com
Fri Nov 12 07:47:11 CET 2010
On Fri, 2010-11-12 at 13:46 +0800, Gergely Imreh wrote:
> On 12 November 2010 13:32, David C. Rankin
> <drankinatty at suddenlinkmail.com> wrote:
> > Guys,
> >
> > I'm using yum-createrepo 0.9.8-3 on from AUR and suddenly my createrepo updates
> > on my Arch server are failing with the following error:
> >
> > 23:22 nirvana:/home/backup/rpms> sudo createrepo --update -d openSUSE_11.3/
> > File "/usr/share/createrepo/genpkgmetadata.py", line 189
> > print thing
> > ^
> > SyntaxError: invalid syntax
>
> Not bug, change.
> Print is now a function in Python 3, i.e. one has to use print(thing)
> instead of the previous form.
> http://docs.python.org/release/3.0.1/whatsnew/3.0.html
>
> Most likely either change the call in beginning of the script to
> python2 instead of python, or roll up the sleeves and start converting
> to the new version (python 2to3 should help
> http://docs.python.org/library/2to3.html )
>
> Cheers,
> Greg
Out of curiosity, David, I know you're on the ML quite often, how could
you NOT realize all the python update emails and complaints going
around?
More information about the arch-general
mailing list