Skip to content

Windows: module 'signal' has no attribute 'SIGQUIT' #46

@johncmacy

Description

@johncmacy

When running py manage.py worker on Windows, I get the following:

AttributeError: module 'signal' has no attribute 'SIGQUIT'

Which is coming from here:

signal.signal(signal.SIGQUIT, self.shutdown)

I was able to successfully run the worker and create jobs by modifying it like this:

if hasattr(signal, 'SIGQUIT'):
    signal.signal(signal.SIGQUIT, self.shutdown)

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