Open Bug 1894839 Opened 15 days ago Updated 8 hours ago

mozregression 6.1.0 won't run on Python 3.12: ModuleNotFoundError: No module named 'pkg_resources'

Categories

(Testing :: mozregression, defect, P2)

Default
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: i, Unassigned, NeedInfo)

References

Details

Steps to reproduce:

  1. Install Python 3.12
  2. Install mozregression 6.1.0
  3. Run mozregression --good 2024-04-15

Actual results:

Traceback (most recent call last):
  File "/home/[username]/.mozilla/.venv/bin/mozregression", line 5, in <module>
    from mozregression.main import main
  File "/home/[username]/.mozilla/.venv/lib/python3.12/site-packages/mozregression/main.py", line 31, in <module>
    from mozregression.telemetry import UsageMetrics, get_system_info, send_telemetry_ping_oop
  File "/home/[username]/.mozilla/.venv/lib/python3.12/site-packages/mozregression/telemetry.py", line 8, in <module>
    from glean import Configuration, Glean, load_metrics, load_pings
  File "/home/[username]/.mozilla/.venv/lib/python3.12/site-packages/glean/__init__.py", line 10, in <module>
    from pkg_resources import get_distribution, DistributionNotFound
ModuleNotFoundError: No module named 'pkg_resources'

Expected results:

mozregression runs normally.

It's an issue from glean, which happened to be fixed by Bug 1894635 earlier today: https://github.com/mozilla/glean/pull/2820

See Also: → 1851620
Priority: -- → P2

The severity field is not set for this bug.
:zeid, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(zeid)
You need to log in before you can comment on or make changes to this bug.