ResourceWarning raising
daskol opened this issue · 5 comments
daskol commented
If one calls resetwarnings()
, starts mystem and lemmatizes something then python will notify with ResouceWarning
due to opened IO pipes like following.
/lib/python3.6/site-packages/pymystem3/mystem.py:210: ResourceWarning: unclosed file <_io.FileIO name=5 mode='wb' closefd=True>
self._proc = None
/lib/python3.6/site-packages/pymystem3/mystem.py:210: ResourceWarning: unclosed file <_io.FileIO name=6 mode='rb' closefd=True>
alexanderpanchenko commented
Thank you for reporting this issue: due to the limited amount of resources, a pull request with a fix is greatly appreciated.
daskol commented
Okay. Could you update package on PyPI after fix applying?
alexanderpanchenko commented
sure, i will try to update by the end of the week
meanwhile you can pip install git+https://github.com/nlpub/pymystem3
alexanderpanchenko commented
uploaded the new version to pypi
https://pypi.python.org/pypi?:action=display&name=pymystem3&version=0.1.6
daskol commented
That is great!