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

gcbench fails on Windows #670

Closed
rahulporuri opened this issue Mar 3, 2021 · 2 comments · Fixed by #671
Closed

gcbench fails on Windows #670

rahulporuri opened this issue Mar 3, 2021 · 2 comments · Fixed by #671

Comments

@rahulporuri
Copy link
Contributor

Benchmarking backend: svg
        Benchmark draw_image
        Benchmark draw_marker_at_points ... Failed
        Benchmark draw_path
        Benchmark draw_path_at_points
        Benchmark draw_rect
        Benchmark show_text ... Failed
Traceback (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\work\github\ets\enable\enable\gcbench\__main__.py", line 38, in <module>
    main()
  File "C:\Users\rporuri\work\github\ets\enable\enable\gcbench\__main__.py", line 34, in main
    publish(results, outdir)
  File "C:\Users\rporuri\work\github\ets\enable\enable\gcbench\publish.py", line 103, in publish
    fp.write(_INDEX_TEMPLATE.format(comparison_table=comparison_table))
  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 character '\u2718' in position 915: character maps to <undefined>
@rahulporuri rahulporuri changed the title gcbench fails with an error for the svg backend on Windows gcbench fails on Windows Mar 3, 2021
@rahulporuri
Copy link
Contributor Author

Correction - It's not the SVG backend that's making gcbench fail. I commented out svg from the _BACKENDS dictionary and I still see the error. I commented out all of the file backends and I still see the error :|

@rahulporuri
Copy link
Contributor Author

@jwiggins looks like this got broken in #666.

rahulporuri pushed a commit that referenced this issue Mar 3, 2021
fixes #670

	modified:   enable/gcbench/publish.py
rahulporuri pushed a commit that referenced this issue Mar 3, 2021
fixes #670

	modified:   enable/gcbench/publish.py
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