Skip to content
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.

ERROR:gntp.notifier:Invalid response #46

Closed
shrx opened this issue Jun 19, 2013 · 0 comments
Closed

ERROR:gntp.notifier:Invalid response #46

shrx opened this issue Jun 19, 2013 · 0 comments

Comments

@shrx
Copy link

shrx commented Jun 19, 2013

When I try to run the /test/attributes.py script, it fails:

No handlers could be found for logger "gntp.notifier"

When I add the lines to import logging,

import logging
logging.basicConfig(level=logging.ERROR)

I get two errors:

ERROR:gntp.notifier:Invalid response: (u'402', u'A is not registered for Python GNTP')
ERROR:gntp.notifier:Invalid response: (u'402', u'B is not registered for Python GNTP')

EDIT: with debug logging, this is the output:

INFO:gntp.notifier:Sending notification [A] to localhost:23053
DEBUG:gntp.notifier:To : localhost:23053 <<class 'gntp.core.GNTPNotice'>>
GNTP/1.0 NOTIFY NONE
Application-Name: Python GNTP
Notification-Sticky: True
Notification-Name: A
Notification-Text: A
Origin-Platform-Version: Darwin-12.4.0-x86_64-i386-64bit
Origin-Software-Version: 1.0.1
Origin-Machine-Name: mbp
Origin-Software-Name: gntp.py
Notification-Title: A
Origin-Platform-Name: Darwin

DEBUG:gntp.notifier:From : localhost:23053 <<class 'gntp.core.GNTPError'>>
GNTP/1.0 -ERROR NONE
Error-Code: 402
Response-Action: NOTIFY
Error-Description: A is not registered for Python GNTP

ERROR:gntp.notifier:Invalid response: (u'402', u'A is not registered for Python GNTP')

... and same for B.

Edit: fixed by adding gntp.notifier.GrowlNotifier.register()

@shrx shrx closed this as completed Jun 19, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant