8000 [Bug]: `rocprof-compute analyze --gui` fails with `ObsoleteAttributeException` · Issue #640 · ROCm/rocprofiler-compute · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Bug]: rocprof-compute analyze --gui fails with ObsoleteAttributeException #640

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

Open
qedawkins opened this issue Mar 26, 2025 · 0 comments
Assignees
Labels
bug Something isn't working triage

Comments

@qedawkins
Copy link

Describe the bug

Following the official install instructions here: https://rocm.docs.amd.com/projects/rocprofiler-compute/en/latest/install/core-install.html#install-via-package-manager

And launching the gui on a recently captured trace

rocprof-compute analyze -q -p <trace_directory> --gui

Fails with the following message

Traceback (most recent call last):
  File "/usr/bin/rocprof-compute", line 153, in <module>
    main()
  File "/usr/bin/rocprof-compute", line 145, in main
    rocprof_compute.run_analysis()
  File "/opt/rocm-6.4.0/libexec/rocprofiler-compute/utils/utils.py", line 45, in wrap_function
    result = function(*args, **kwargs)
  File "/opt/rocm-6.4.0/libexec/rocprofiler-compute/rocprof_compute_base.py", line 295, in run_analysis
    analyzer.run_analysis()
  File "/opt/rocm-6.4.0/libexec/rocprofiler-compute/utils/utils.py", line 45, in wrap_function
    result = function(*args, **kwargs)
  File "/opt/rocm-6.4.0/libexec/rocprofiler-compute/rocprof_compute_analyze/analysis_webui.py", line 319, in run_analysis
    self.app.run_server(debug=False, host="0.0.0.0", port=args.gui)
  File "/home/qdawkins/threadtrace/trace_venv/lib/python3.10/site-packages/dash/_obsolete.py", line 22, in __getattr__
    raise err.exc(err.message)
dash.exceptions.ObsoleteAttributeException: app.run_server has been replaced by app.run

Manually replacing run_server with run in rocprofiler-compute/rocprof_compute_analyze/analysis_webui.py:319 fixes the issue.

Linux Distribution

Ubuntu 22.04.2 LTS

ROCm Compute Profiler Version

rocprofiler-compute version: 3.0.0 (release)

GPU

MI300X

ROCm Version

rocm-6.4.0

Cluster name (if applicable)

No response

Reproducer

$ sudo apt install rocprofiler-compute
# Include rocprofiler-compute in your system PATH
$ sudo update-alternatives --install /usr/bin/rocprofiler-compute rocprof-compute /opt/rocm/bin/rocprofiler-compute 0
# Install Python dependencies
$ python3 -m pip install -r /opt/rocm/libexec/rocprofiler-compute/requirements.txt
  1. Capture a trace

  2. Run rocprof-compute analyze -q -p <trace_directory> --gui

Expected behavior

No response

Relevant log output

Screenshots

No response

Additional Context

No response

@qedawkins qedawkins added bug Something isn't working triage labels Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants
0