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

Tab completion broken for rez deployments installed with Python-3.6 #1020

Closed
zachlewis opened this issue Feb 3, 2021 · 0 comments · Fixed by #1021
Closed

Tab completion broken for rez deployments installed with Python-3.6 #1020

zachlewis opened this issue Feb 3, 2021 · 0 comments · Fixed by #1021

Comments

@zachlewis
Copy link
Contributor

If one installs rez with the system python3 interpreter, instead of the inspected tab completion behavior, one gets a faceful of this:

Traceback (most recent call last):
  File "/opt/rez/bin/rez/_rez-complete", line 8, in <module>
    sys.exit(run_rez_complete())
  File "/opt/rez/lib/python3.6/site-packages/rez/cli/_entry_points.py", line 80, in run_rez_complete
    return run("complete")
  File "/opt/rez/lib/python3.6/site-packages/rez/cli/_main.py", line 170, in run
    returncode = run_cmd()
  File "/opt/rez/lib/python3.6/site-packages/rez/cli/_main.py", line 162, in run_cmd
    return func(opts, opts.parser, extra_arg_groups)
  File "/opt/rez/lib/python3.6/site-packages/rez/cli/complete.py", line 97, in command
    comp_point=comp_point)
  File "/opt/rez/lib/python3.6/site-packages/rez/cli/_complete_util.py", line 16, in __init__
    comp_point = len(comp_line[:comp_point].decode(sys_encoding))
AttributeError: 'str' object has no attribute 'decode'
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

Successfully merging a pull request may close this issue.

1 participant