Skip to content

[Bug] zulip_bots does not include importlib-metadata as a dependency on Python>=3.10 but tries to import it regardless of version #829

@cauebs

Description

@cauebs

Running on Python 3.10:

  File ".../zulip_bots/finder.py", line 11, in <module>

    import importlib_metadata as metadata
ModuleNotFoundError: No module named 'importlib_metadata'

Solution is to either always include importlib-metadata as a dependency in zulip_bots/setup.py, independently of the Python version, or do a conditional import checking for the Python version and using std's importlib.metadata instead of importlib_metadata for Python>=3.10.

Whichever the maintainers decide, I can file a pull request for it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions