yglu icon indicating copy to clipboard operation
yglu copied to clipboard

pkg_ressources removed in py 3.12

Open janesser opened this issue 5 months ago • 2 comments

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: https://github.com/mu-editor/mu/issues/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 [email protected] (which is actually latest on pypy)

janesser avatar Sep 07 '24 06:09 janesser