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

[v5.0.9-r0] TypeError: 'type' object is not subscriptable #4262

Closed
MaxGyver83 opened this issue Jun 21, 2024 · 2 comments
Closed

[v5.0.9-r0] TypeError: 'type' object is not subscriptable #4262

MaxGyver83 opened this issue Jun 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@MaxGyver83
Copy link

Describe the bug

When I start the xpra server, I get this error:

$ xpra start :100
xpra main error:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/xpra/scripts/main.py", line 111, in main
    options, args = do_parse_cmdline(cmdline, defaults)
  File "/usr/lib/python3/dist-packages/xpra/scripts/parsing.py", line 1783, in do_parse_cmdline
    fixup_options(options)
  File "/usr/lib/python3/dist-packages/xpra/scripts/config.py", line 1581, in fixup_options
    fixup_encodings(options)
  File "/usr/lib/python3/dist-packages/xpra/scripts/config.py", line 1432, in fixup_encodings
    from xpra.codecs.codec_constants import PREFERRED_ENCODING_ORDER
  File "/usr/lib/python3/dist-packages/xpra/codecs/codec_constants.py", line 29, in <module>
    PREFERRED_REFRESH_ENCODING_ORDER: tuple[str, ...] = (
TypeError: 'type' object is not subscriptable

To Reproduce
Steps to reproduce the behavior:

  1. xpra start :100

System Information (please complete the following information):

  • Server OS: Ubuntu 20.04
  • Xpra Server Version: xpra v5.0.9-r0

Additional context

I think this error started after the upgrade to version v5.0.9-r0.

@MaxGyver83 MaxGyver83 added the bug Something isn't working label Jun 21, 2024
@totaam
Copy link
Collaborator

totaam commented Jun 21, 2024

Thanks, fixed by the commit above.
This only affects distributions with older python versions.

@totaam totaam closed this as completed Jun 21, 2024
@MaxGyver83
Copy link
Author

Wow, this was quick. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants