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

[BUG] Spinner fails in CI on UnicodeDecodeError #1223

Closed
tpazderka opened this issue Mar 29, 2019 · 1 comment
Closed

[BUG] Spinner fails in CI on UnicodeDecodeError #1223

tpazderka opened this issue Mar 29, 2019 · 1 comment
Labels
bug:normal affects many people or has quite an impact

Comments

@tpazderka
Copy link

After upgrading tox to version 3.8.* my CI fails to run parallel test with the following traceback:

Traceback (most recent call last):
  File "/usr/local/bin/tox", line 11, in <module>
    sys.exit(cmdline())
  File "/usr/local/lib/python3.5/dist-packages/tox/session/__init__.py", line 42, in cmdline
    main(args)
  File "/usr/local/lib/python3.5/dist-packages/tox/session/__init__.py", line 63, in main
    retcode = session.runcommand()
  File "/usr/local/lib/python3.5/dist-packages/tox/session/__init__.py", line 187, in runcommand
    return self.subcommand_test()
  File "/usr/local/lib/python3.5/dist-packages/tox/session/__init__.py", line 213, in subcommand_test
    run_parallel(self.config, self.venv_dict)
  File "/usr/local/lib/python3.5/dist-packages/tox/session/commands/run/parallel.py", line 29, in run_parallel
    with Spinner(enabled=show_progress) as spinner:
  File "/usr/local/lib/python3.5/dist-packages/tox/util/spinner.py", line 47, in __init__
    if _file_support_encoding(self.UNICODE_FRAMES, sys.stdout)
  File "/usr/local/lib/python3.5/dist-packages/tox/util/spinner.py", line 27, in _file_support_encoding
    char.encode(encoding)
UnicodeEncodeError: 'ascii' codec can't encode character '\u280b' in position 0: ordinal not in range(128)

The spinner works fine when tox is downgraded to version 3.7.0.

@tpazderka tpazderka added the bug:normal affects many people or has quite an impact label Mar 29, 2019
@gaborbernat
Copy link
Member

Resolved via #1225

@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug:normal affects many people or has quite an impact
Projects
None yet
Development

No branches or pull requests

2 participants