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

Ctrl+C interupt not working #42

Open
susundberg opened this issue Nov 9, 2017 · 0 comments
Open

Ctrl+C interupt not working #42

susundberg opened this issue Nov 9, 2017 · 0 comments

Comments

@susundberg
Copy link

susundberg commented Nov 9, 2017

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?

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

1 participant