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

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

Open
PabloRuizCuevas opened this issue Mar 19, 2024 · 0 comments

Comments

@PabloRuizCuevas
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant