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

TypeError: 'Status' object is not callable #5507

Closed
nikolaik opened this issue Nov 28, 2022 · 4 comments · Fixed by #5513
Closed

TypeError: 'Status' object is not callable #5507

nikolaik opened this issue Nov 28, 2022 · 4 comments · Fixed by #5513
Labels
triage Type: Regression This issue is a regression of a previous behavior.

Comments

@nikolaik
Copy link

After #5468 using version 2022.11.25 I got the following crash:

❯ pipenv lock
Warning: Python 3.7 was not found on your system...
Would you like us to install CPython 3.7.15 with Pyenv? [Y/n]:
Installing CPython 3.7.15 with /opt/homebrew/Cellar/pyenv/2.3.6/libexec/pyenv (this may take a few minutes)...
Traceback (most recent call last):
  File "/Users/nikolark/.pyenv/versions/3.9.15/bin/pipenv", line 8, in <module>
    sys.exit(cli())
  File "/Users/nikolark/.pyenv/versions/3.9.15/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/Users/nikolark/.pyenv/versions/3.9.15/lib/python3.9/site-packages/pipenv/cli/options.py", line 57, in main
    return super().main(*args, **kwargs, windows_expand_args=False)
  File "/Users/nikolark/.pyenv/versions/3.9.15/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/Users/nikolark/.pyenv/versions/3.9.15/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/nikolark/.pyenv/versions/3.9.15/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/nikolark/.pyenv/versions/3.9.15/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/Users/nikolark/.pyenv/versions/3.9.15/lib/python3.9/site-packages/pipenv/vendor/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/Users/nikolark/.pyenv/versions/3.9.15/lib/python3.9/site-packages/pipenv/vendor/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/Users/nikolark/.pyenv/versions/3.9.15/lib/python3.9/site-packages/pipenv/vendor/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/nikolark/.pyenv/versions/3.9.15/lib/python3.9/site-packages/pipenv/cli/command.py", line 331, in lock
    ensure_project(
  File "/Users/nikolark/.pyenv/versions/3.9.15/lib/python3.9/site-packages/pipenv/core.py", line 538, in ensure_project
    ensure_virtualenv(
  File "/Users/nikolark/.pyenv/versions/3.9.15/lib/python3.9/site-packages/pipenv/core.py", line 459, in ensure_virtualenv
    python = ensure_python(project, three=three, python=python)
  File "/Users/nikolark/.pyenv/versions/3.9.15/lib/python3.9/site-packages/pipenv/core.py", line 419, in ensure_python
    st(environments.PIPENV_SPINNER_OK_TEXT.format("Success!"))
TypeError: 'Status' object is not callable

This looks like a regression. Should we call st.update here instead?

@matteius matteius added Type: Regression This issue is a regression of a previous behavior. triage labels Nov 29, 2022
@matteius
Copy link
Member

At present @oz123 likely has more context to me on the rich spinner API, but this sounds like the right approach.

@oz123
Copy link
Contributor

oz123 commented Nov 29, 2022

@nikolaik , yes, this should be st.update as in:

https://github.com/pypa/pipenv/blob/main/pipenv/core.py#L262

@Fran-Rg
Copy link

Fran-Rg commented Nov 30, 2022

Any workaround via the cli? I tried using the --quiet option but same thing happened

@matteius
Copy link
Member

I just pushed a new release to pypi which incudes a fix for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Type: Regression This issue is a regression of a previous behavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants