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] Unable to run werkzeug profiler on python 3.12 #3145

Open
Farkites opened this issue Jan 31, 2025 · 1 comment
Open

[BUG] Unable to run werkzeug profiler on python 3.12 #3145

Farkites opened this issue Jan 31, 2025 · 1 comment
Labels
bug something broken sev-3 annoyance with workaround

Comments

@Farkites
Copy link

Describe your context

I'm following the instructions posted in this Community forum blog post to run werkzeug profiler in my Dash application to identify performance bottlenecks.

It doesn't work with python version 3.12, receiving error:ValueError: Another profiling tool is already active. I'm not running any other profiler in the application and I've tried disabling Linux profiler (python app.py -X perf 0)
It works fine with python <=3.11

  • pip list | grep dash:
dash                    2.18.0
dash-core-components    2.0.0
dash-html-components    2.0.0
dash-iconify            0.1.2
dash-table              5.0.0

Describe the bug

I receiving the error ValueError: Another profiling tool is already active when running the application with python version 3.12.

Expected behavior

It should work as it does with python<=3.11

@Farkites Farkites added bug something broken sev-3 annoyance with workaround labels Jan 31, 2025
@ndrezn
Copy link
Member

ndrezn commented Jan 31, 2025

This issue would need to be fixed upstream in Werkzeug (pallets/werkzeug#2909 ) or cpython (python/cpython#110770 ). As in both cases it's not planned, we might consider updating our recommendations for profiling instead of trying to change anything in core Dash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken sev-3 annoyance with workaround
Projects
None yet
Development

No branches or pull requests

2 participants