I am trying to run rfpkg on a Fedora Silverblue system but I'm getting this error:
raceback (most recent call last):
File "/usr/bin/rfpkg", line 13, in <module>
from rfpkg.__main__ import main
File "/usr/lib/python2.7/site-packages/rfpkg/__init__.py", line 18, in
File "/usr/lib/python2.7/site-packages/rpmfusion_cert/__init__.py", line 7
SyntaxError: Non-ASCII character '\xc3' in file
/usr/lib/python2.7/site-packages/rpmfusion_cert/__init__.py on line 7, but no encoding
declared; see http://python.org/dev/peps/pep-0263/
I talked with otaylor yesterday about this and he told me that the #! line(shebang) for
rpmfusion-cert.py should specify a particular version. In python3 you *don't* need an
encoding declaration, and in python2 you *do* need a encoding declaration and according to
him, the file shouldn't even supposed to work(even in normal Fedora and it's weird
how it works). This is mentioned in the error itself. The line 7 of the file
rpmfusion_cert/__init__.py contains a name " Sérgio Basto" and é is most
probably not in ASCII and that's what causes the error. Unfortunately I cannot edit a
"linked" file on a live booted silverblue system.
1) Please use versioned shebangs
2) Keep an eye on python activities/decisions on Fedora and adjust ourselves with them.
3) Use encoding declaration for python2 files (please) / Switch to python3 entirely.
I request to whoever in-charge to please take this issue seriously and fix it ASAP.