Hello everyone,
I’m following the docker installation guide and when I run the docker-compose run --rm server create_db it list the following error

Traceback (most recent call last):
  File "/app/manage.py", line 9, in <module>
    manager()
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/flask/cli.py", line 586, in main
    return super(FlaskGroup, self).main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/flask/cli.py", line 425, in decorator
    with __ctx.ensure_object(ScriptInfo).load_app().app_context():
  File "/usr/local/lib/python3.7/site-packages/flask/cli.py", line 381, in load_app
    app = call_factory(self, self.create_app)
  File "/usr/local/lib/python3.7/site-packages/flask/cli.py", line 117, in call_factory
    return app_factory(script_info)
  File "/app/redash/cli/__init__.py", line 13, in create
    app = current_app or create_app()
  File "/app/redash/app.py", line 57, in create_app
    extensions.init_app(app)
  File "/app/redash/extensions.py", line 107, in init_app
    load_extensions(app)
  File "/app/redash/extensions.py", line 69, in load_extensions
    entry_point_loader("redash.extensions", extensions, logger=app.logger, app=app)
  File "/app/redash/extensions.py", line 30, in entry_point_loader
    for entry_point in entry_points().get(group_name, []):
AttributeError: 'EntryPoints' object has no attribute 'get'

from what I read, the issue lies in importlib-metadata which is requirements_bundles.txt file. I have changed it to be a version less than (5). Unfortunatly, it didn’t work.

Any ideas ?

Were you able to get this fixed? I’m also facing the same issue when trying to set this up on M1 Mac.

I found this link useful, incase anyone needs: python - 'EntryPoints' object has no attribute 'get' - Digital ocean - Stack Overflow

I started a PR to pin importlib-metadata to 4.13.0