2.3.1 fails with: AttributeError: 'Action' object has no attribute 'envconfig'

Issue #299 on hold
Ned Batchelder created an issue

Windows 7, running tox for coverage.py's repo, using the "coverage-4.0.3" tag:

C:\Users\IEUser\coverage>pip install tox==2.2.1
Collecting tox==2.2.1
  Downloading tox-2.2.1-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): virtualenv>=1.11.2 in c:\python27\lib\site-packages (from tox==2.2.1)
Requirement already satisfied (use --upgrade to upgrade): py>=1.4.17 in c:\python27\lib\site-packages (from tox==2.2.1)
Requirement already satisfied (use --upgrade to upgrade): pluggy<0.4.0,>=0.3.0 in c:\python27\lib\site-packages (from tox==2.2.1)
Installing collected packages: tox
Successfully installed tox-2.2.1

C:\Users\IEUser\coverage>tox -e doc
doc recreate: C:\Users\IEUser\coverage\.tox\doc
doc installdeps: -rdoc/requirements.pip
doc develop-inst: C:\Users\IEUser\coverage
doc installed: alabaster==0.7.7,Babel==2.1.1,colorama==0.3.5,-e hg+file:///N:/coverage/trunk@1e245736f39c8968d7b437cfa47bdc7ccf7f8
ef7#egg=coverage-dev,docutils==0.12,Jinja2==2.8,MarkupSafe==0.23,pyenchant==1.6.6,Pygments==2.0.2,pytz==2015.7,six==1.10.0,snowbal
lstemmer==1.2.1,Sphinx==1.3.3,sphinx-rtd-theme==0.1.9,sphinxcontrib-spelling==2.1.2,wheel==0.24.0
doc runtests: PYTHONHASHSEED='427'
doc runtests: commands[0] | sphinx-build -aEnq doc doc/_build/html
doc runtests: commands[1] | sphinx-build -aEnQW doc doc/_build/html
doc runtests: commands[2] | rst2html.py --strict CHANGES.rst doc/_build/trash
doc runtests: commands[3] | rst2html.py --strict README.rst doc/_build/trash
___________________________________________________________ summary ____________________________________________________________
  doc: commands succeeded
  congratulations :)

C:\Users\IEUser\coverage>pip install tox==2.3.1
Collecting tox==2.3.1
  Using cached tox-2.3.1-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): virtualenv>=1.11.2 in c:\python27\lib\site-packages (from tox==2.3.1)
Requirement already satisfied (use --upgrade to upgrade): py>=1.4.17 in c:\python27\lib\site-packages (from tox==2.3.1)
Requirement already satisfied (use --upgrade to upgrade): pluggy<0.4.0,>=0.3.0 in c:\python27\lib\site-packages (from tox==2.3.1)
Installing collected packages: tox
  Found existing installation: tox 2.2.1
    Uninstalling tox-2.2.1:
      Successfully uninstalled tox-2.2.1
Successfully installed tox-2.3.1

C:\Users\IEUser\coverage>tox -e doc
doc recreate: C:\Users\IEUser\coverage\.tox\doc
doc installdeps: -rdoc/requirements.pip
doc develop-inst: C:\Users\IEUser\coverage
doc installed: alabaster==0.7.7,Babel==2.1.1,colorama==0.3.5,-e hg+file:///N:/coverage/trunk@1e245736f39c8968d7b437cfa47bdc7ccf7f8
ef7#egg=coverage-dev,docutils==0.12,Jinja2==2.8,MarkupSafe==0.23,pyenchant==1.6.6,Pygments==2.0.2,pytz==2015.7,six==1.10.0,snowbal
lstemmer==1.2.1,Sphinx==1.3.3,sphinx-rtd-theme==0.1.9,sphinxcontrib-spelling==2.1.2,wheel==0.24.0
doc runtests: PYTHONHASHSEED='17'
doc runtests: commands[0] | sphinx-build -aEnq doc doc/_build/html
doc runtests: commands[1] | sphinx-build -aEnQW doc doc/_build/html
doc runtests: commands[2] | rst2html.py --strict CHANGES.rst doc/_build/trash
Traceback (most recent call last):
  File "c:\python27\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Python27\Scripts\tox.exe\__main__.py", line 9, in <module>
  File "c:\python27\lib\site-packages\tox\session.py", line 39, in main
    retcode = Session(config).runcommand()
  File "c:\python27\lib\site-packages\tox\session.py", line 375, in runcommand
    return self.subcommand_test()
  File "c:\python27\lib\site-packages\tox\session.py", line 548, in subcommand_test
    self.runtestenv(venv)
  File "c:\python27\lib\site-packages\tox\session.py", line 556, in runtestenv
    venv.test(redirect=redirect)
  File "c:\python27\lib\site-packages\tox\venv.py", line 332, in test
    ignore_ret=ignore_ret, testcommand=True)
  File "c:\python27\lib\site-packages\tox\venv.py", line 362, in _pcall
    redirect=redirect, ignore_ret=ignore_ret)
  File "c:\python27\lib\site-packages\tox\session.py", line 136, in popen
    stdout=stdout, stderr=STDOUT)
  File "c:\python27\lib\site-packages\tox\session.py", line 219, in _popen
    args = self._rewriteargs(cwd, args)
  File "c:\python27\lib\site-packages\tox\session.py", line 214, in _rewriteargs
    newargs = [str(self.envconfig.envpython)] + newargs
AttributeError: 'Action' object has no attribute 'envconfig'

C:\Users\IEUser\coverage>

Comments (4)

  1. Ilya Kazakevich

    I have the same issue, but with custom runner (commands=my_runner.py) It is reproduced only with Python3.4 and Python3.5, but Python2.7 works well.

  2. Log in to comment