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

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

Open
sgserg opened this issue Nov 6, 2023 · 0 comments
Open

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

sgserg opened this issue Nov 6, 2023 · 0 comments

Comments

@sgserg
Copy link

sgserg commented Nov 6, 2023

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.

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