tox crashes with UnicodeEncodeError

Issue #300 on hold
Alex Gaynor created an issue

https://jenkins.cryptography.io/job/cryptography-pr-builder/4866/TOXENV=py27,label=10.10/console

Here's the full traceback:

GLOB sdist-make: /Users/jenkins/workspace/cryptography-pr-builder/TOXENV/py27/label/10.10/cryptography/setup.py
py27 create: /Users/jenkins/workspace/cryptography-pr-builder/TOXENV/py27/label/10.10/cryptography/.tox/py27
Traceback (most recent call last):
  File "/Users/jenkins/.pyenv/versions/3.3.6/bin/tox", line 11, in <module>
    sys.exit(cmdline())
  File "/Users/jenkins/.pyenv/versions/3.3.6/lib/python3.3/site-packages/tox/session.py", line 39, in main
    retcode = Session(config).runcommand()
  File "/Users/jenkins/.pyenv/versions/3.3.6/lib/python3.3/site-packages/tox/session.py", line 375, in runcommand
    return self.subcommand_test()
  File "/Users/jenkins/.pyenv/versions/3.3.6/lib/python3.3/site-packages/tox/session.py", line 526, in subcommand_test
    if self.setupenv(venv):
  File "/Users/jenkins/.pyenv/versions/3.3.6/lib/python3.3/site-packages/tox/session.py", line 434, in setupenv
    status = venv.update(action=action)
  File "/Users/jenkins/.pyenv/versions/3.3.6/lib/python3.3/site-packages/tox/venv.py", line 146, in update
    self.hook.tox_testenv_create(action=action, venv=self)
  File "/Users/jenkins/.pyenv/versions/3.3.6/lib/python3.3/site-packages/pluggy.py", line 724, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "/Users/jenkins/.pyenv/versions/3.3.6/lib/python3.3/site-packages/pluggy.py", line 338, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/Users/jenkins/.pyenv/versions/3.3.6/lib/python3.3/site-packages/pluggy.py", line 333, in <lambda>
    _MultiCall(methods, kwargs, hook.spec_opts).execute()
  File "/Users/jenkins/.pyenv/versions/3.3.6/lib/python3.3/site-packages/pluggy.py", line 596, in execute
    res = hook_impl.function(*args)
  File "/Users/jenkins/.pyenv/versions/3.3.6/lib/python3.3/site-packages/tox/venv.py", line 392, in tox_testenv_create
    venv._pcall(args, venv=False, action=action, cwd=basepath)
  File "/Users/jenkins/.pyenv/versions/3.3.6/lib/python3.3/site-packages/tox/venv.py", line 362, in _pcall
    redirect=redirect, ignore_ret=ignore_ret)
  File "/Users/jenkins/.pyenv/versions/3.3.6/lib/python3.3/site-packages/tox/session.py", line 123, in popen
    self.id, self.msg, args, env))
UnicodeEncodeError: 'ascii' codec can't encode character '\u2026' in position 2359: ordinal not in range(128)

I think this is caused by having a non-ascii character in the environment.

Comments (2)

  1. Log in to comment