joerick/pyinstrument

[bug] pyinstruments not working TypeError: 'NoneType' object is not callable

Opened this issue · 0 comments

I found a bug that pyinstrument not to work at all, I think it may be related with my logger configuration, but I'm not sure. this is the error:

Traceback (most recent call last):
  File "C:\Users\PabloRuiz\AppData\Local\Programs\Python\Python311\Lib\logging\__init__.py", line 845, in _removeHandlerRef
  File "C:\Users\PabloRuiz\AppData\Local\Programs\Python\Python311\Lib\logging\__init__.py", line 845, in _removeHandlerRef
  File "C:\Users\PabloRuiz\AppData\Local\pypoetry\Cache\virtualenvs\transformer-wi-nHELc-py3.11\Lib\site-packages\pyinstrument\stack_sampler.py", line 134, in _sample
  File "C:\Users\PabloRuiz\AppData\Local\pypoetry\Cache\virtualenvs\transformer-wi-nHELc-py3.11\Lib\site-packages\pyinstrument\stack_sampler.py", line 148, in _timer
TypeError: 'NoneType' object is not callable