The CRAN packages abnormality and ABC.RAP give errors (among 50 packages I tried): UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 45: ordinal not in range(128)
The bytecode differs for both. The DESCRIPTIONs look quite innocent.
The command line was: R2rpm --verbose --debug --no-check --no-suggest -p $package
48 other packages worked flawless.
Here is the traceback for ABC.RAP
INFO:R2spec:Filling spec variable from info collected INFO:R2spec:Filling spec template Traceback (most recent call last): File "/usr/bin/R2rpm", line 29, in <module> R2rpm().main(ARG) File "/usr/lib/python2.7/site-packages/r2spec/r2spec_obj.py", line 363, in main self.pack = super(R2rpm, self).main(args) File "/usr/lib/python2.7/site-packages/r2spec/r2spec_obj.py", line 286, in main spec.get_template() File "/usr/lib/python2.7/site-packages/r2spec/spec.py", line 233, in get_template self.spec = mytemplate.render(self.__dict) File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "<template>", line 48, in top-level template code UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 45: ordinal not in range(128) Warnung: Ausführung von Kommando 'R2rpm --verbose --debug --no-check --no-suggest -p ABC.RAP' ergab Status 1
Any ideas?
@pingou @qulogic
The quotes in the description are not valid ASCII. But I'm not too interested in fixing it on Python 2 until #11 is merged (if any more changes are even needed).
Am 21=2E April 2018 02:11:59 MESZ schrieb Elliott Sales de Andrade pagure@= pagure=2Eio:
qulogic added a new comment to an issue you are following: The quotes in the description are not valid ASCII=2E But I'm not too interested in fixing it on Python 2 until #11 is merged (if any more changes are even needed)=2E
The quotes in the description are not valid ASCII=2E But I'm not too interested in fixing it on Python 2 until #11 is merged (if any more changes are even needed)=2E
Ok, thx! Did you test your python3 version on these? I would use your patc= hes in=20 my fork then without waiting for master to catch up=2E
Detlef
To reply, visit the link below or just reply to this email https://pagure=2Eio/r2spec/issue/13
--=20 Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesende= t=2E
ABC.RAP works in Python 3 for me, but I don't know about any other packages. Probably what should be done is to read the encoding from the DESCRIPTION to be completely certain.
DESCRIPTION
I can confirm that the packages that fail for UTF-8 chars in their description work with the python3 version. Instances tested: abnormality, ABC.RAP, BGGE
Log in to comment on this ticket.