← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1600068] Re: Cannot run tox using python 3

 

Reviewed:  https://review.openstack.org/339359
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=b06c7e857edbffe21745e0c85b021cc2d7423a7f
Submitter: Jenkins
Branch:    master

commit b06c7e857edbffe21745e0c85b021cc2d7423a7f
Author: Brandon Logan <brandon.logan@xxxxxxxxxxxxx>
Date:   Fri Jul 8 01:30:52 2016 -0500

    Allow tox to be run with python 3
    
    The tox.ini has some unicode characters that cannot be
    decoded, so just executing tox will immediately cause an error
    because the tox.ini cannot be parsed.
    
    Closes-Bug: #1600068
    Change-Id: Ia01ae80d9321584845bb06c3f6673d13027bd2db


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1600068

Title:
  Cannot run tox using python 3

Status in neutron:
  Fix Released

Bug description:
  This is because of a unicode character that can't be decoded

  Traceback (most recent call last):
    File "/usr/bin/tox", line 11, in <module>
      sys.exit(cmdline())
    File "/usr/lib/python3.5/site-packages/tox/session.py", line 38, in main
      config = prepare(args)
    File "/usr/lib/python3.5/site-packages/tox/session.py", line 26, in prepare
      config = parseconfig(args)
    File "/usr/lib/python3.5/site-packages/tox/config.py", line 229, in parseconfig
      parseini(config, inipath)
    File "/usr/lib/python3.5/site-packages/tox/config.py", line 644, in __init__
      self._cfg = py.iniconfig.IniConfig(config.toxinipath)
    File "/usr/lib/python3.5/site-packages/py/_iniconfig.py", line 52, in __init__
      tokens = self._parse(iter(f))
    File "/usr/lib/python3.5/site-packages/py/_iniconfig.py", line 80, in _parse
      for lineno, line in enumerate(line_iter):
    File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
      return codecs.ascii_decode(input, self.errors)[0]
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4222: ordinal not in range(128)

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1600068/+subscriptions


References