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

RuntimeWarning: line buffering #1

Open
shipurjan opened this issue Jul 7, 2020 · 1 comment
Open

RuntimeWarning: line buffering #1

shipurjan opened this issue Jul 7, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@shipurjan
Copy link

I'm using Python 3.8.3
In mecab.py, line 47

def write_stdout(data):
    if sys.version_info[0] == 3:
        return sys.stdout.buffer.write(data)
    elif sys.version_info[0] == 2:
        return `sys.stdout.write(data)

I'm getting error

C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py:844: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
  self.stdout = io.open(c2pread, 'rb', bufsize)

I installed MeCab with UTF-8 encoding, if that matters.

@siikamiika
Copy link
Owner

I'm also seeing this on both Windows and Linux. It does work even with the error, but I think I should do something about it. Anyway usually this is hidden from the user if you just use mecab.py as the native component between MeCab and the browser. Installation happens from install_mecab_for_yomichan.py.

@siikamiika siikamiika added the bug Something isn't working label Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants