Which since I don't know python -- it might as well be Greek. But from the
error, I can tell it chokes on the line "print thing"... whatever that thing is.
Anybody have any info on any problems caused by recent python changes?
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
11-12-2010, 05:46 AM
Could python2 be breaking genpkgmetadata.py?
On 12 November 2010 13:32, David C. Rankin
> * * * *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.
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