This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: PyErr_WriteUnraisable while running cProfile
Type: behavior Stage: test needed
Components: Interpreter Core Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: tleeuwenburg@gmail.com
Priority: normal Keywords:

Created on 2011-03-30 10:08 by tleeuwenburg@gmail.com, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg132577 - (view) Author: Tennessee Leeuwenburg (tleeuwenburg@gmail.com) (Python triager) Date: 2011-03-30 10:08
I am happy to come up with a minimal test for this if that would help, but repeating the problem is not hard. Take a Python2.7 interpreter, install the decorator module from PyPi, and also the code at https://bitbucket.org/tleeuwenburg/benchmarker.py/. Running test_benchmarker.py will cause the problem.

Exception TypeError: "'str' object is not callable" in '/tmp/benchlog/2011/30/2011_03_30_09_41.pstats' ignored

I've tracked this message down and it's likely being writted to stdout by errors.c, where unraisable exceptions are handled.

Using hotshot, and otherwise the same code, the error does not occur. Diagnosing the true cause of this issue is probably beyond me, but I'm more than happy to try to come up with a more minimal example or help any way I can.
msg132578 - (view) Author: Tennessee Leeuwenburg (tleeuwenburg@gmail.com) (Python triager) Date: 2011-03-30 10:26
Never mind, I was doing something stupid. The error message doesn't really make it terribly obvious, but the cause is in my code.
History
Date User Action Args
2022-04-11 14:57:15adminsetgithub: 55929
2011-03-30 10:26:38tleeuwenburg@gmail.comsetstatus: open -> closed
resolution: not a bug
messages: + msg132578
2011-03-30 10:08:11tleeuwenburg@gmail.comcreate