Skip to content

Does not work with Python 3.4 #22

@aherbjornsen

Description

@aherbjornsen

I'm trying to get this to work with python3 (currently 3.4) but can't seem to get it to work.

I receive this message:

$ python3
Python 3.4.2 (default, Oct 19 2014, 13:31:11) 
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pynsca
>>> from pynsca import NSCANotifier
>>> notif = NSCANotifier("nagios")
>>> notif.svc_result("localhost", "testservice", pynsca.OK, "OK: testing")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/pynsca.py", line 181, in svc_result
    buf += data
TypeError: Can't convert 'bytes' object to str implicitly
>>> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions