Open oprypin opened 5 years ago
Using a python:latest container, which defaults to python3, the following test fails:
# catapult/tracing/bin/run_py_tests
[50/139] trace_data.trace_data_unittest.TraceDataTest.testSerializeTraceback (most recent call last):
File "/tmp/catapult/tracing/tracing/trace_data/../../bin/trace2html", line 13, in
It works by launching through python3
and only if python
is 2.7.
# python3 --version Python 3.7.1
# python2 --version Python 2.7.13
One point is that the docker container has a symlink called python, that was linked to python3, which caused the failed test. Once I replaced it with a symlink to python2, all worked as expected.
Catapult relies on Python 2 but it's nearing end-of-life in the year 2020. This is a tracking bug for Python 3 compatibility fixes.