Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError when using list_signals #1851

Open
jvacek opened this issue Dec 13, 2023 · 1 comment
Open

ReferenceError when using list_signals #1851

jvacek opened this issue Dec 13, 2023 · 1 comment

Comments

@jvacek
Copy link

jvacek commented Dec 13, 2023

This is from Django 4.2:

Traceback (most recent call last):
  File "/Users/jvacek/repositories/my_repo/manage.py", line 11, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/jvacek/.pyenv/versions/3.10.3/envs/my_repo/lib/python3.10/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/Users/jvacek/.pyenv/versions/3.10.3/envs/my_repo/lib/python3.10/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/jvacek/.pyenv/versions/3.10.3/envs/my_repo/lib/python3.10/site-packages/django/core/management/base.py", line 412, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/Users/jvacek/.pyenv/versions/3.10.3/envs/my_repo/lib/python3.10/site-packages/django/core/management/base.py", line 458, in execute
    output = self.handle(*args, **options)
  File "/Users/jvacek/.pyenv/versions/3.10.3/envs/my_repo/lib/python3.10/site-packages/django_extensions/management/commands/list_signals.py", line 41, in handle
    signals = [obj for obj in gc.get_objects() if isinstance(obj, ModelSignal)]
  File "/Users/jvacek/.pyenv/versions/3.10.3/envs/my_repo/lib/python3.10/site-packages/django_extensions/management/commands/list_signals.py", line 41, in <listcomp>
    signals = [obj for obj in gc.get_objects() if isinstance(obj, ModelSignal)]
ReferenceError: weakly-referenced object no longer exists
@foarsitter
Copy link
Contributor

Dumping a trace like is of no help @jvacek, so can you please provide some more context?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants