[issue39419] Core dump when trying to use workaround for custom warning category (Fatal Python error: init_sys_streams: can't initialize sys standard streams)

Gerrit Holl report at bugs.python.org
Wed Jan 22 09:11:07 EST 2020


New submission from Gerrit Holl <gerrit.holl at gmail.com>:

Pythons commandline warning filter cannot currently handle custom warning categories.  See https://bugs.python.org/issue22543

I tried a workaround as suggested on Stack Overflow <https://stackoverflow.com/a/53538033/974555> to filter on a warning category defined in pandas.errors.__init__.py (DtypeWarning):

PYTHONPATH=/media/nas/x21324/miniconda3/envs/py37e/lib/python3.7/site-packages/pandas/ python -Werror::errors.DtypeWarning

However, this results in a Fatal Python error and core dump:

Fatal Python error: init_sys_streams: can't initialize sys standard streams
AttributeError: module 'io' has no attribute 'OpenWrapper'

Current thread 0x00007f7bb3be76c0 (most recent call first):
Aborted (core dumped)

----------
messages: 360469
nosy: Gerrit.Holl
priority: normal
severity: normal
status: open
title: Core dump when trying to use workaround for custom warning category (Fatal Python error: init_sys_streams: can't initialize sys standard streams)
type: crash
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39419>
_______________________________________


More information about the Python-bugs-list mailing list