Skip to content

pkg_ressources removed in py 3.12 #20

@janesser

Description

@janesser

https://docs.python.org/3/whatsnew/3.12.html

There is no more pkg_resources in python 3.12 (which is standard in e.g. ubuntu noble)

Longer situational description here: mu-editor/mu#2485

Let's see if we can fix it.

> pipx run  yglu
Traceback (most recent call last):
  File "/home/jan/.local/pipx/.cache/3af48864adc97f2/bin/yglu", line 5, in <module>
    from yglu.cli import main
  File "/home/jan/.local/pipx/.cache/3af48864adc97f2/lib/python3.12/site-packages/yglu/cli.py", line 6, in <module>
    from .main import process
  File "/home/jan/.local/pipx/.cache/3af48864adc97f2/lib/python3.12/site-packages/yglu/main.py", line 5, in <module>
    from .builder import build_all
  File "/home/jan/.local/pipx/.cache/3af48864adc97f2/lib/python3.12/site-packages/yglu/builder.py", line 7, in <module>
    from .expression import Expression, Function, FunctionBlock
  File "/home/jan/.local/pipx/.cache/3af48864adc97f2/lib/python3.12/site-packages/yglu/expression.py", line 5, in <module>
    import yaql
  File "/home/jan/.local/pipx/.cache/3af48864adc97f2/lib/python3.12/site-packages/yaql/__init__.py", line 16, in <module>
    import pkg_resources

EDIT: affected version is yglu@1.1.2 (which is actually latest on pypy)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions