Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG backend fails with encoding issue when running benchmark #734

Closed
rahulporuri opened this issue Mar 22, 2021 · 0 comments · Fixed by #735
Closed

SVG backend fails with encoding issue when running benchmark #734

rahulporuri opened this issue Mar 22, 2021 · 0 comments · Fixed by #735

Comments

@rahulporuri
Copy link
Contributor

I see the following error when I run the enable gcbenchmark on windows with the pyqt5 backend. This is a release blocker for the upcoming 5.1.0 release (ref #719 )

Benchmarking backend: svg
        Benchmark draw_image
        Benchmark draw_marker_at_points ... Failed
        Benchmark draw_path
        Benchmark draw_path_at_points ... Failed
        Benchmark draw_path_linear_gradient
        Benchmark draw_rect
        Benchmark show_textTraceback (most recent call last):
  File "C:\Users\rporuri\.edm\envs\enable-test-3.6-pyqt5\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\rporuri\.edm\envs\enable-test-3.6-pyqt5\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\rporuri\.edm\envs\enable-test-3.6-pyqt5\lib\site-packages\enable\gcbench\__main__.py", line 38, in <module>
    main()
  File "C:\Users\rporuri\.edm\envs\enable-test-3.6-pyqt5\lib\site-packages\enable\gcbench\__main__.py", line 32, in main
    results = benchmark(outdir=outdir)
  File "C:\Users\rporuri\.edm\envs\enable-test-3.6-pyqt5\lib\site-packages\enable\gcbench\bench.py", line 63, in benchmark
    suite, name, module, extension=name, outdir=outdir
  File "C:\Users\rporuri\.edm\envs\enable-test-3.6-pyqt5\lib\site-packages\enable\gcbench\bench.py", line 147, in exercise_backend
    gc.save(fname)
  File "C:\Users\rporuri\.edm\envs\enable-test-3.6-pyqt5\lib\site-packages\kiva\svg.py", line 180, in save
    f.write(template % locals())
  File "C:\Users\rporuri\.edm\envs\enable-test-3.6-pyqt5\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 1292-1295: character maps to <undefined>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant