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

TypeError: a bytes-like object is required, not 'NoneType' in _analyze_impl #46

Open
rcv911 opened this issue Mar 31, 2021 · 1 comment

Comments

@rcv911
Copy link

rcv911 commented Mar 31, 2021

Hi. I have a question.

I've got a bunch of large .csv files and parse it via multiprocessing Pool

res = [pool.apply_async(func=func, args=(file,)) for file in files]

So when I try do lemmatize(ru_text) I got exception on:
https://github.com/nlpub/pymystem3/blob/master/pymystem3/mystem.py#L370

sio.write(out)
TypeError: a bytes-like object is required, not 'NoneType'

I don't get it how https://github.com/nlpub/pymystem3/blob/master/pymystem3/mystem.py#L369 can read None? It because of stdout non-blocking?

out = self._procout.read()
@Dmitry513
Copy link

Faced the same issue when using threads

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants