trbs/bucky

Bucky fails to start under Python 3.6.9 with error on this line

sgserg opened this issue · 0 comments

sgserg commented

https://github.com/trbs/bucky/blob/cda507241c8898c3a1926cae18371bce84be6d2c/bucky/carbon.py#L102C25-L102C25

[2023-11-06 18:11:29,614][INFO] carbon - Connected to Carbon at 127.0.0.1:2003
Process PlaintextClient-5:
Traceback (most recent call last):
  File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/data/coral/graphite/lib/python3.6/site-packages/bucky/client.py", line 45, in run
    self.send(*sample)
  File "/data/coral/graphite/lib/python3.6/site-packages/bucky/carbon.py", line 102, in send
    self.sock.sendall(mesg)
TypeError: a bytes-like object is required, not 'str'

adding .encode('utf8') to mesg in failing line seems to help.