Skip to content

luigi server fails to start with python 3.12 #3350

@EugeneYushin

Description

@EugeneYushin

Luigi claims it supports python3.12, but fails to start central scheduler at runtime due to deprecated and removed package pkg_resources.

> mkvirtualenv --python=3.12 luigi
> python --version
Python 3.12.9
> pip install luigi
Collecting luigi
  Using cached luigi-3.6.0.tar.gz (1.2 MB)
...
> luigid
Traceback (most recent call last):
  File "/Users/eyushin/.virtualenvs/luigi/bin/luigid", line 8, in <module>
    sys.exit(luigid())
             ^^^^^^^^
  File "/Users/eyushin/.virtualenvs/luigi/lib/python3.12/site-packages/luigi/cmdline.py", line 13, in luigid
    import luigi.server
  File "/Users/eyushin/.virtualenvs/luigi/lib/python3.12/site-packages/luigi/server.py", line 47, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

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