question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'VistirSpinner' object has no attribute '_color_func' (2022.11.4)

See original GitHub issue

Issue description

Suddenly with 2022.11.4, running pipenv install even on an empty directory (under Python 3.9):

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/pipenv/utils/spinner.py", line 18, in create_spinner
    yield sp
  File "/usr/local/lib/python3.9/dist-packages/pipenv/core.py", line 1019, in do_create_virtualenv
    sp.green.ok(
  File "/usr/local/lib/python3.9/dist-packages/pipenv/vendor/vistir/spin.py", line 264, in ok
    self._freeze(_text, err=err)
  File "/usr/local/lib/python3.9/dist-packages/pipenv/vendor/vistir/spin.py", line 363, in _freeze
    last_frame = self._compose_out(text, mode="last")
  File "/usr/local/lib/python3.9/dist-packages/pipenv/vendor/vistir/spin.py", line 386, in _compose_out
    if self._color_func is not None:
  File "/usr/local/lib/python3.9/dist-packages/pipenv/vendor/vistir/spin.py", line 115, in __getattr__
    retval = super(DummySpinner, self).__getattribute__(k)
AttributeError: 'VistirSpinner' object has no attribute '_color_func'

Traceback (most recent call last):
  File "/usr/local/bin/pipenv", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.9/dist-packages/pipenv/vendor/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/pipenv/cli/options.py", line 57, in main
    return super().main(*args, **kwargs, windows_expand_args=False)
  File "/usr/local/lib/python3.9/dist-packages/pipenv/vendor/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/dist-packages/pipenv/vendor/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.9/dist-packages/pipenv/vendor/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.9/dist-packages/pipenv/vendor/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/pipenv/vendor/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/pipenv/vendor/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/pipenv/cli/command.py", line 236, in install
    do_install(
  File "/usr/local/lib/python3.9/dist-packages/pipenv/core.py", line 2115, in do_install
    ensure_project(
  File "/usr/local/lib/python3.9/dist-packages/pipenv/core.py", line 530, in ensure_project
    ensure_virtualenv(
  File "/usr/local/lib/python3.9/dist-packages/pipenv/core.py", line 463, in ensure_virtualenv
    do_create_virtualenv(
  File "/usr/local/lib/python3.9/dist-packages/pipenv/core.py", line 1019, in do_create_virtualenv
    sp.green.ok(
  File "/usr/local/lib/python3.9/dist-packages/pipenv/vendor/vistir/spin.py", line 264, in ok
    self._freeze(_text, err=err)
  File "/usr/local/lib/python3.9/dist-packages/pipenv/vendor/vistir/spin.py", line 363, in _freeze
    last_frame = self._compose_out(text, mode="last")
  File "/usr/local/lib/python3.9/dist-packages/pipenv/vendor/vistir/spin.py", line 386, in _compose_out
    if self._color_func is not None:
  File "/usr/local/lib/python3.9/dist-packages/pipenv/vendor/vistir/spin.py", line 115, in __getattr__
    retval = super(DummySpinner, self).__getattribute__(k)
AttributeError: 'VistirSpinner' object has no attribute '_color_func'

Nothing additional from verbose.


$ pipenv --support

Pipenv version: '2022.11.4'

Pipenv location: '/usr/local/lib/python3.9/dist-packages/pipenv'

Python location: '/usr/bin/python3.9'

OS Name: 'posix'

User pip version: '22.3'

user Python installations found:

  • 3.9.15: /usr/bin/python3.9
  • 3.6.9: /usr/bin/python3.6
  • 3.6.9: /usr/bin/python3.6m
  • 3.6.9: /usr/bin/python3

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.9.15',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '5.15.49-linuxkit',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022',
 'python_full_version': '3.9.15',
 'python_version': '3.9',
 'sys_platform': 'linux'}

System environment variables:

  • OLDPWD
  • _
  • PATH
  • CERTIFICATES_ARG
  • SHLVL
  • TERM
  • DEBIAN_FRONTEND
  • HOME
  • PWD
  • DISPLAY
  • LANG
  • LS_COLORS
  • LC_ALL
  • GRPC_POLL_STRATEGY
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PIP_PYTHON_PATH
  • PYTHONDONTWRITEBYTECODE
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  • LANG: C.UTF-8
  • PWD: /app/foo

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:11
  • Comments:7

github_iconTop GitHub Comments

4reactions
aflopezbeccommented, Nov 4, 2022

use 2022.10.25 version, in this version the problem not exist

2reactions
matteiuscommented, Nov 5, 2022

I am not sure how the CI is passing but I will take a look at this tonight.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting AttributeError: 'str' object has no attribute ...
I have a class city. In that, i have parameter color. And i try to call it in functions coloring. Pleas have a...
Read more >
Problems in the Vertex AI Qwik Start Lab
After running the first cell in the EDA in the BigQuery section, I got an attribute error. AttributeError: '_Plugin' object has no attribute...
Read more >
AttributeError: 'NoneType' object has no attribute 'mkdir'
Friends, on Paperspace, trying to go through 04_mnist_basics.ipynb. Cells 1 and 2 execute w/o error. But when I try to run cell 3,...
Read more >
Python error str object has no attribute turtle in Python turtle
I have the following python code using the module turtle: import turtle # Import the required ... object has no attribute 'turtle' in...
Read more >
'NoneType' object has no attribute 'TransformPoint' - NatCap ...
I'm trying to get the Coastal Vulnerability 3.9.0 model running and can't get past the following error AttributeError: 'NoneType' object has ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found