carbon icon indicating copy to clipboard operation
carbon copied to clipboard

Python 3.9.6 causes warning about buffering for binary mode

Open wvolz opened this issue 5 years ago • 5 comments

Running Carbon 1.1.8 is causing a warning when starting up under Python 3.9.6:

lib/python3.9/os.py:1023: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used

I believe the issue is caused by the "1" on this line: https://github.com/graphite-project/carbon/blob/9fad18df5731271aab6f5c81d32eddcecdc1a695/lib/carbon/log.py#L24

wvolz avatar Aug 17 '21 18:08 wvolz

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 17 '21 03:10 stale[bot]

Should be addressed

deniszh avatar Oct 17 '21 03:10 deniszh

I also see it on FreeBSD with python 3.8.12:

Starting carbon.
Starting carbon-cache (instance a)
/usr/local/lib/python3.8/os.py:1023: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
  return io.open(fd, *args, **kwargs)

JohnHay avatar Oct 17 '21 07:10 JohnHay

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 16 '21 23:12 stale[bot]

catching the same issue

RedShiba avatar Jun 25 '24 10:06 RedShiba