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

rez-pip crashes with TypeError #949

Closed
kguyaux opened this issue Sep 4, 2020 · 1 comment
Closed

rez-pip crashes with TypeError #949

kguyaux opened this issue Sep 4, 2020 · 1 comment
Labels
bug rez-pip ingesting py pkgs into rez (pip, wheels, etc)

Comments

@kguyaux
Copy link

kguyaux commented Sep 4, 2020

platform=linux
arch=x86_64
os=LinuxMint-19.1

$ rez pip --python 3.7 --install PyQt5
12:32:59 INFO     Trying to use pip from python package
Traceback (most recent call last):
  File "/opt/rez/bin/rez/rez", line 8, in <module>
    sys.exit(run_rez())
  File "/opt/rez/lib/python3.7/site-packages/rez/cli/_entry_points.py", line 64, in run_rez
    return run()

  File "/opt/rez/lib/python3.7/site-packages/rez/cli/_main.py", line 170, in run
    returncode = run_cmd()
  File "/opt/rez/lib/python3.7/site-packages/rez/cli/_main.py", line 162, in run_cmd
    return func(opts, opts.parser, extra_arg_groups)
  File "/opt/rez/lib/python3.7/site-packages/rez/cli/pip.py", line 76, in command
    extra_args=opts.extra)
  File "/opt/rez/lib/python3.7/site-packages/rez/pip.py", line 261, in pip_install_package
    py_exe, context = find_pip(pip_version, python_version)
  File "/opt/rez/lib/python3.7/site-packages/rez/pip.py", line 95, in find_pip
    python_version, pip_version=version
  File "/opt/rez/lib/python3.7/site-packages/rez/pip.py", line 203, in find_pip_from_context
    py_exe = find_python_in_context(context)
  File "/opt/rez/lib/python3.7/site-packages/rez/pip.py", line 142, in find_python_in_context
    python_package = context.get_resolved_package("python")
  File "/opt/rez/lib/python3.7/site-packages/rez/resolved_context.py", line 419, in get_resolved_package
    pkgs = [x for x in self._resolved_packages if x.name == name]
TypeError: 'NoneType' object is not iterable
@alexey-pelykh
Copy link
Contributor

Related to #1325

@JeanChristopheMorinPerso JeanChristopheMorinPerso added bug rez-pip ingesting py pkgs into rez (pip, wheels, etc) labels Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug rez-pip ingesting py pkgs into rez (pip, wheels, etc)
Projects
None yet
Development

No branches or pull requests

3 participants