Skip to content

Ctrl+C interupt not working  #42

Description

@susundberg

Hi!

I ended up to this wonderfull library while trying to get dbus - service loop up-n-running inside virtual enviroment.

The issue is on:

loop.quit()

Error given:

  File "_ctypes/callbacks.c", line 234, in 'calling callback function'
  File "<string>", line 3, in SourceFunc
  File "/home/salmenrinne/PEX/pex-scanning-proto/ENV/lib/python3.6/site-packages/pgi/overrides/GLib.py", line 551, in _handler
    loop.quit()
AttributeError: 'NoneType' object has no attribute 'quit'

Fixes the issue:

            self.quit()
            self._quit_by_sigint = True

Package installed from pip:

Name: pgi
Version: 0.0.11.1
Summary: Pure Python GObject Introspection Bindings
Home-page: https://github.com/lazka/pgi
Author: Christoph Reiter
Author-email: reiter.christoph@gmail.com
License: LGPL-2.1+

Python: Python 3.6.3 (default, Oct 3 2017, 21:45:48)

Should i make pull request or is the setup invalid?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions