[issue38739] pyperformance html5lib cannot import Mapping (and fails)

2019-11-07 Thread Travis Lazar


New submission from Travis Lazar :

When running pyperformance html5lib test, the application crashes with 
"ImportError: cannot import name 'Mapping' from 'collections' 
(/py3buildpath/lib/python3.9/collections/__init__.py)"

To reproduce:

1 - Build Python from source. I produced with git commit 
befa032d8869e0fab4732d910f3887642879d644 from cpython GitHub.

2 - Run pyperformance with: /py3buildpath/bin/pyperformance run 
--python=/py3buildpath/bin/python3 --venv venvpath -b html5lib -o output.json

3 - Immediate crash is seen with message:

#!/bin/sh
  File 
"/usr/local/src/pyperf-tot-no-venv/lib/python3.9/site-packages/html5lib/_tokenizer.py",
 line 16, in 
from ._trie import Trie
  File 
"/usr/local/src/pyperf-tot-no-venv/lib/python3.9/site-packages/html5lib/_trie/__init__.py",
 line 3, in 
from .py import Trie as PyTrie
  File 
"/usr/local/src/pyperf-tot-no-venv/lib/python3.9/site-packages/html5lib/_trie/py.py",
 line 6, in 
from ._base import Trie as ABCTrie
  File 
"/usr/local/src/pyperf-tot-no-venv/lib/python3.9/site-packages/html5lib/_trie/_base.py",
 line 3, in 
from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' 
(/root/py3-tot-no/lib/python3.9/collections/__init__.py)
ERROR: Benchmark html5lib failed: Benchmark died
Traceback (most recent call last):
  File 
"/usr/local/src/pyperf-tot-no-venv/lib/python3.9/site-packages/pyperformance/run.py",
 line 132, in run_benchmarks
bench = func(cmd_prefix, options)
  File 
"/usr/local/src/pyperf-tot-no-venv/lib/python3.9/site-packages/pyperformance/benchmarks/__init__.py",
 line 244, in BM_html5lib
return run_perf_script(python, options, "html5lib")
  File 
"/usr/local/src/pyperf-tot-no-venv/lib/python3.9/site-packages/pyperformance/run.py",
 line 98, in run_perf_script
run_command(cmd, hide_stderr=not options.verbose)
  File 
"/usr/local/src/pyperf-tot-no-venv/lib/python3.9/site-packages/pyperformance/run.py",
 line 66, in run_command
raise RuntimeError("Benchmark died")
RuntimeError: Benchmark died

--
components: Tests
messages: 356219
nosy: Travis Lazar
priority: normal
severity: normal
status: open
title: pyperformance html5lib cannot import Mapping (and fails)
type: crash
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue38739>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38739] pyperformance html5lib cannot import Mapping (and fails)

2019-11-07 Thread Travis Lazar


Travis Lazar  added the comment:

Forgot to include that this was built on an aarch64 (Ampere eMAG) system.

--

___
Python tracker 
<https://bugs.python.org/issue38739>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38739] pyperformance html5lib cannot import Mapping (and fails)

2019-11-08 Thread Travis Lazar


Travis Lazar  added the comment:

Really appreciate all the commentary and references here. Thanks for that.

The resolution of disabling html5lib in pyperformance is good. I'll assume no 
html5lib benchmarking in pyperformance (master) until a version of html5lib is 
released compatible with 3.9.

Thanks again.

--

___
Python tracker 
<https://bugs.python.org/issue38739>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38739] pyperformance html5lib cannot import Mapping (and fails)

2019-11-11 Thread Travis Lazar


Travis Lazar  added the comment:

FYI: this affects tornado_http and django_template as well.

--

___
Python tracker 
<https://bugs.python.org/issue38739>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com