Skip to content

PyYaml-6.0.3 seems incompatible with Python 3.12 #891

@AmritaChoudhary

Description

@AmritaChoudhary

Starting today after the release of PyYaml-6.0.3, our CI/CD jobs have started to fail pointing to incompatibility between two. It worked fine after locking down PyYaml to 6.0.2. One of the error we received was,

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/rcp/scripts/build_gha/__main__.py", line 17, in <module>
    from .lib import Locality, Options
  File "/rcp/scripts/build_gha/lib.py", line 85, in <module>
    import yaml
  File "/usr/local/lib/python3.12/site-packages/yaml/__init__.py", line 13, in <module>
    from .cyaml import *
  File "/usr/local/lib/python3.12/site-packages/yaml/cyaml.py", line 7, in <module>
    from yaml._yaml import CParser, CEmitter
  File "yaml/_yaml.pyx", line 1, in init yaml._yaml
TypeError: Metaclasses with custom tp_new are not supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions