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

_PyUnicode_DecodeUnicodeEscape on Py3.9, ubuntu-20.04 v 20211108.1 #4463

Closed
1 of 7 tasks
hbq1 opened this issue Nov 10, 2021 · 4 comments
Closed
1 of 7 tasks

_PyUnicode_DecodeUnicodeEscape on Py3.9, ubuntu-20.04 v 20211108.1 #4463

hbq1 opened this issue Nov 10, 2021 · 4 comments
Assignees
Labels

Comments

@hbq1
Copy link

hbq1 commented Nov 10, 2021

Description

Hello,

We are getting the following error on py3.9 Github Actions workflow after the ubuntu-20.04 v20211108.1 release (2 days ago):

Traceback (most recent call last):
  File "/tmp/distrax-env/bin/pytype", line 5, in <module>
    from pytype.tools.analyze_project.main import main
  File "/tmp/distrax-env/lib/python3.9/site-packages/pytype/tools/analyze_project/main.py", line 13, in <module>
    from pytype import io
  File "/tmp/distrax-env/lib/python3.9/site-packages/pytype/io.py", line 11, in <module>
    from pytype import analyze
  File "/tmp/distrax-env/lib/python3.9/site-packages/pytype/analyze.py", line 6, in <module>
    from pytype import context
  File "/tmp/distrax-env/lib/python3.9/site-packages/pytype/context.py", line 6, in <module>
    from pytype import annotation_utils
  File "/tmp/distrax-env/lib/python3.9/site-packages/pytype/annotation_utils.py", line 12, in <module>
    from pytype.overlays import typing_overlay
  File "/tmp/distrax-env/lib/python3.9/site-packages/pytype/overlays/typing_overlay.py", line 18, in <module>
    from pytype.overlays import collections_overlay
  File "/tmp/distrax-env/lib/python3.9/site-packages/pytype/overlays/collections_overlay.py", line 11, in <module>
    from pytype.pyi import parser
  File "/tmp/distrax-env/lib/python3.9/site-packages/pytype/pyi/parser.py", line 11, in <module>
    from pytype.pyi import classdef
  File "/tmp/distrax-env/lib/python3.9/site-packages/pytype/pyi/classdef.py", line 7, in <module>
    from pytype.pyi.types import ParseError  # pylint: disable=g-importing-member
  File "/tmp/distrax-env/lib/python3.9/site-packages/pytype/pyi/types.py", line 11, in <module>
    from typed_ast import ast3
  File "/tmp/distrax-env/lib/python3.9/site-packages/typed_ast/ast3.py", line 40, in <module>
    from typed_ast import _ast3
ImportError: /tmp/distrax-env/lib/python3.9/site-packages/typed_ast/_ast3.cpython-39-x86_64-linux-gnu.so: undefined symbol: _PyUnicode_DecodeUnicodeEscape

Full log: https://github.com/deepmind/distrax/runs/4168111281?check_suite_focus=true

Virtual environments affected

  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.15
  • macOS 11
  • Windows Server 2016
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

20211108.1

Is it regression?

Yes, 20211101.1 seems to work: https://github.com/deepmind/distrax/runs/4156977602?check_suite_focus=true

Expected behavior

No response

Actual behavior

No response

Repro steps

See logs and the workflow definition.

@hbq1
Copy link
Author

hbq1 commented Nov 10, 2021

The error occurs only in py3.9 virtualenv.

@al-cheb al-cheb added Area: Python bug Something isn't working investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu and removed needs triage labels Nov 10, 2021
@al-cheb
Copy link
Contributor

al-cheb commented Nov 10, 2021

Hey, @hbq1
We will take a look at it.

Looks like a bug:
python/typed_ast#169
python/typed_ast#170

copybara-service bot pushed a commit to google-deepmind/distrax that referenced this issue Nov 10, 2021
Until actions/runner-images#4463 is resolved.

PiperOrigin-RevId: 408887786
copybara-service bot pushed a commit to google-deepmind/distrax that referenced this issue Nov 10, 2021
Until actions/runner-images#4463 is resolved.

PiperOrigin-RevId: 408887786
copybara-service bot pushed a commit to google-deepmind/distrax that referenced this issue Nov 10, 2021
Until actions/runner-images#4463 is resolved.

PiperOrigin-RevId: 408887786
copybara-service bot pushed a commit to google-deepmind/distrax that referenced this issue Nov 10, 2021
Until actions/runner-images#4463 is resolved.

PiperOrigin-RevId: 408924209
@mikhailkoliada mikhailkoliada self-assigned this Nov 11, 2021
@mikhailkoliada mikhailkoliada added external and removed investigate Collect additional information, like space on disk, other tool incompatibilities etc. labels Nov 12, 2021
@mikhailkoliada
Copy link
Member

The minimal repro is

pip install typed_ast
python3 -c 'from typed_ast import ast3'

I can reproduce the problem with python v3.9.8 even on my personal Linux machine (older versions do not seem to be affected), and as was linked above it looks like the problem was fixed by upstream in their repo already, so nothing we can do about it but waiting for another release.

I am going to close this issue now, but feel free to ping us if you have questions.

@hbq1
Copy link
Author

hbq1 commented Nov 12, 2021

Thanks guys! I can confirm that the issue has been resolved.

@actions actions deleted a comment Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants