I'm seeing a repeated test failure on master for m...
# development
h
I'm seeing a repeated test failure on master for me locally in
./pants test src/python/pants/core/goals/repl_integration_test.py
, deep in some python library
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 51: ordinal not in range(128)
is the exact error
are other peopel seeing this? @witty-crayon-22786 @jolly-midnight-72759 ?
w
checking
h
I saw this error message when switching dep inference to be a subprocess last week, because we were trying to load the AST as a string instead of bytes. But I fixed that and don't think it should still happen during dep inference - might be worth isolating when it fails
w
i don’t repro
j
I have not see this error on my repo.
we are currently running 2.1.0rc1
h
thanks for checking - I think what might've been going on is that I forgot I still had python3.6 installed, and not 3.8 or 3.7 (but my system python is 3.9)
I am fixing this now and I think that makes the problem go away
👍 1
e
Makes sense, Arch just rolled 3.8 -> 3.9.
w
reporting a 3.9 only bug might be good
h
I think it might've been a 3.6 bug actually
w
I think that that would mean that the pants script in the pantsbuild/pants repo didn't filter out 3.6 appropriately...?
h
which is surprising to me - I changed it to use the same logic as the
setup/
repo that it looks for
python3.7
or
python3.8
, rather than using
python3
h
okay, I can actually confirm that something is broken on python 3.9 specifically
w
yea, that makes a bit more sense.
h
if I run
./pants
in the toolchain repo:
Copy code
at 14:36:18 ➤ ./pants help
Using base prefix '/usr'
New python executable in /home/gregs/.cache/pants/setup/bootstrap-Linux-x86_64/pants.ThVYaB/install/bin/python3.9
Also creating executable in /home/gregs/.cache/pants/setup/bootstrap-Linux-x86_64/pants.ThVYaB/install/bin/python
Installing setuptools, pip, wheel...
done.
Collecting pip
  Using cached <https://files.pythonhosted.org/packages/ab/11/2dc62c5263d9eb322f2f028f7b56cd9d096bb8988fcf82d65fa2e4057afe/pip-20.3.1-py2.py3-none-any.whl>
Installing collected packages: pip
  Found existing installation: pip 19.0.3
    Uninstalling pip-19.0.3:
      Successfully uninstalled pip-19.0.3
Successfully installed pip-20.3.1
ERROR: Could not find a version that satisfies the requirement pantsbuild.pants==2.1.0
ERROR: No matching distribution found for pantsbuild.pants==2.1.0
goes away if I set
PYTHON
to my 3.8 interpreter
this is not what I was seeing last week I'm pretty sure, but it is a python3.9 related bug
w
ah. i don’t think we started building for 3.9 before the 2.1.x branch.
so not a bug, per-se… just that 3.9 wasn’t supported for older versions
… although i suppose the fact that that isn’t clear from the script’s error is a bug
h
We’ve never built for Py39, and still don’t
h
it would be nice to provide a clearer error message