ImportError: bad magic number in 'sentry.models.widget': b'\x03\xf3\r\n'

I had a problem when I configure the local development environment for the Sentry server on macOS.
In the make bootstrap step.
21.1.0 version

sentry devservices up
04:40:51 [WARNING] sentry.utils.geo: settings.GEOIP_PATH_MMDB not configured.
Traceback (most recent call last):
  File "/Users/yunan/code/kwai/sentry/sentry/.venv/bin/sentry", line 33, in <module>
    sys.exit(load_entry_point('sentry', 'console_scripts', 'sentry')())
  File "/Users/yunan/code/kwai/sentry/sentry/src/sentry/runner/__init__.py", line 166, in main
    cli(prog_name=get_prog(), obj={}, max_content_width=100)
  File "/Users/yunan/code/kwai/sentry/sentry/.venv/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users/yunan/code/kwai/sentry/sentry/.venv/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users/yunan/code/kwai/sentry/sentry/.venv/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/yunan/code/kwai/sentry/sentry/.venv/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/yunan/code/kwai/sentry/sentry/.venv/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/yunan/code/kwai/sentry/sentry/.venv/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/yunan/code/kwai/sentry/sentry/.venv/lib/python3.6/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/yunan/code/kwai/sentry/sentry/src/sentry/runner/commands/devservices.py", line 179, in up
    configure()
  File "/Users/yunan/code/kwai/sentry/sentry/src/sentry/runner/__init__.py", line 129, in configure
    configure(ctx, py, yaml, skip_service_validation)
  File "/Users/yunan/code/kwai/sentry/sentry/src/sentry/runner/settings.py", line 158, in configure
    skip_service_validation=skip_service_validation,
  File "/Users/yunan/code/kwai/sentry/sentry/src/sentry/runner/initializer.py", line 362, in initialize_app
    django.setup()
  File "/Users/yunan/code/kwai/sentry/sentry/.venv/lib/python3.6/site-packages/django/__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/Users/yunan/code/kwai/sentry/sentry/.venv/lib/python3.6/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models()
  File "/Users/yunan/code/kwai/sentry/sentry/.venv/lib/python3.6/site-packages/django/apps/config.py", line 202, in import_models
    self.models_module = import_module(models_module_name)
  File "/Users/yunan/.pyenv/versions/3.6.10/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/yunan/code/kwai/sentry/sentry/src/sentry/models/__init__.py", line 5, in <module>
    import_submodules(globals(), __name__, __path__)
  File "/Users/yunan/code/kwai/sentry/sentry/src/sentry/utils/imports.py", line 45, in import_submodules
    module = __import__(module_name, globals(), locals(), ["__name__"])
ImportError: bad magic number in 'sentry.models.widget': b'\x03\xf3\r\n'
make: *** [run-dependent-services] Error 1

You have dangling pyc files. Run make clean

Thank you for your reply。
I resolved it by run

find . -name \*.pyc -delete