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

NameError: name 'avg' is not defined in session_info.py #3972

Closed
allo- opened this issue Aug 22, 2023 · 1 comment
Closed

NameError: name 'avg' is not defined in session_info.py #3972

allo- opened this issue Aug 22, 2023 · 1 comment
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@allo-
Copy link

allo- commented Aug 22, 2023

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. xpra start
  2. xpra connect
  3. Choose Information -> Session Info in the tray menu

System Information (please complete the following information):

  • Server OS: Debian Bookworm
  • Client OS: Debian Trixie
  • Xpra Server Version xpra 5.0-r0-1
  • Xpra Client Version 5.0-r32900-1

Additional context

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/xpra/client/gtk3/menu_helper.py", line 478, in show_session_info_cb
    self.show_session_info()
  File "/usr/lib/python3/dist-packages/xpra/client/gtk3/menu_helper.py", line 359, in show_session_info
    self.client.show_session_info(*args)
  File "/usr/lib/python3/dist-packages/xpra/client/gtk3/gtk_client_base.py", line 697, in show_session_info
    self.session_info = SessionInfo(self, self.session_name, conn)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/xpra/client/gtk3/session_info.py", line 491, in __init__
    self.populate_all()
  File "/usr/lib/python3/dist-packages/xpra/client/gtk3/session_info.py", line 582, in populate_all
    p_cb()
  File "/usr/lib/python3/dist-packages/xpra/client/gtk3/session_info.py", line 1049, in populate_statistics
    setall(self.quality_labels, self.all_values_from_info("quality", "encoding.quality"))
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/xpra/client/gtk3/session_info.py", line 1009, in all_values_from_info
    return getv("cur", avg), getv("min", min), getv("avg", avg), getv("90p", avg), getv("max", max)
                       ^^^
NameError: name 'avg' is not defined
@allo- allo- added the bug Something isn't working label Aug 22, 2023
@totaam
Copy link
Collaborator

totaam commented Aug 23, 2023

Already fixed in ad068ec.

Your client is out of date because CUDA fails to build on Trixie: #3808 (comment)

@totaam totaam added the invalid This doesn't seem right label Aug 23, 2023
@totaam totaam closed this as completed Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants