jdiazbb / rfxcmd

Automatically exported from code.google.com/p/rfxcmd
1 stars 0 forks source link

Graphite not working #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

When I run your program with the -g option. I keep getting the following error:

Traceback (most recent call last):
  File "./rfxcmd.py", line 2603, in <module>
    rawcmd = read_rfx()
  File "./rfxcmd.py", line 1779, in read_rfx
    decodePacket( message )
  File "./rfxcmd.py", line 1226, in decodePacket
    send_graphite(config.graphite_server, config.graphite_port, linesg)
  File "./rfxcmd.py", line 299, in send_graphite
    for res in socket.getaddrinfo(CARBON_SERVER,int(CARBON_PORT), socket.AF_UNSPEC, socket.SOCK_STREAM):
AttributeError: type object '_socketobject' has no attribute 'getaddrinfo'

Any suggestions. I'm running this on the latest raspberry pi build.

Many thanks,
Steve

Original issue reported on code.google.com by sga...@gmail.com on 13 Apr 2013 at 10:51

GoogleCodeExporter commented 8 years ago
Hi,

Thanks for the feedback, I have updated the branch/0.24 with corrected "import" 
for socket function that caused the issue. You can download it here;

http://rfxcmd.googlecode.com/svn/branches/0.24/rfxcmd.py

The graphite function has been left behind as I don't have a graphite server, 
but managed to install one now on a VM so I will test the function better in 
the future.

Regards,
Sebastian

Original comment by sebastia...@gmail.com on 13 Apr 2013 at 4:16