[Piglit] Is piglit not portable? Unicode errors

Dylan Baker baker.dylan.c at gmail.com
Fri Mar 25 19:24:02 UTC 2016


Quoting Marek Olšák (2016-03-25 08:50:44)
> Hi,
> 
> I received piglit results from somebody else and can't generate html.
> Any idea what is wrong?
> 
> Traceback (most recent call last):
>   File "../piglit/piglit-summary-html.py", line 28, in <module>
>     html(sys.argv[1:])
>   File "/home/marek/dev/piglit/framework/exceptions.py", line 50, in _inner
>     func(*args, **kwargs)
>   File "/home/marek/dev/piglit/framework/programs/summary.py", line 111, in html
>     summary.html(args.resultsFiles, args.summaryDir, args.exclude_details)
>   File "/home/marek/dev/piglit/framework/summary/html_.py", line 174, in html
>     _make_testrun_info(results, destination, exclude)
>   File "/home/marek/dev/piglit/framework/summary/html_.py", line 118,
> in _make_testrun_info
>     index=os.path.relpath(index, temp_path)))
> UnicodeEncodeError: 'ascii' codec can't encode characters in position
> 985-986: ordinal not in range(128)
> 
> I can attach the results file if needed.
> 
> Thanks,
> Marek
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit

That looks like I probably missed converting a bytes string into a
unicode string explicitly.

Let me have a look.

Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20160325/a9f2add2/attachment.sig>


More information about the Piglit mailing list