Skip to content

Instantly share code, notes, and snippets.

@selimb
Created March 16, 2017 21:27
Show Gist options
  • Save selimb/8e100d30117b52547cf927257b6678c7 to your computer and use it in GitHub Desktop.
Save selimb/8e100d30117b52547cf927257b6678c7 to your computer and use it in GitHub Desktop.
tox error
$ tox -e py27 -- tests/test_z_cmdline.py::test_alwayscopy
GLOB sdist-make: /Users/selimb/Projects/tox/setup.py
py27 create: /Users/selimb/Projects/tox/.tox/py27
py27 installdeps: pytest>=2.3.5, pytest-timeout
py27 inst: /Users/selimb/Projects/tox/.tox/dist/tox-2.6.1.dev1.zip
py27 installed: appdirs==1.4.3,packaging==16.8,pluggy==0.4.0,py==1.4.32,pyparsing==2.2.0,pytest==3.0.7,pytest-timeout==1.2.0,six==1.10.0,tox==2.6.1.dev1,virtualenv==15.1.0
py27 runtests: PYTHONHASHSEED='113965478'
py27 runtests: commands[0] | py.test --timeout=180 tests/test_z_cmdline.py::test_alwayscopy
=============================================================================== test session starts ===============================================================================
platform darwin -- Python 2.7.10, pytest-3.0.7, py-1.4.32, pluggy-0.4.0
tox comes from: '/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/site-packages/tox/__init__.pyc'
rootdir: /Users/selimb/Projects/tox, inifile: tox.ini
plugins: timeout-1.2.0
timeout: 180.0s method: signal
collected 44 items
tests/test_z_cmdline.py F
==================================================================================== FAILURES =====================================================================================
_________________________________________________________________________________ test_alwayscopy _________________________________________________________________________________
initproj = <function initproj at 0x105b2ede8>, cmd = <tox._pytestplugin.Cmd instance at 0x10592d5f0>
def test_alwayscopy(initproj, cmd):
initproj("example123", filedefs={'tox.ini': """
[testenv]
commands={envpython} --version
alwayscopy=True
"""})
result = cmd.run("tox", "-vv")
> assert not result.ret
E assert not 1
E + where 1 = <tox._pytestplugin.RunResult instance at 0x105b08998>.ret
/Users/selimb/Projects/tox/tests/test_z_cmdline.py:650: AssertionError
------------------------------------------------------------------------------ Captured stdout call -------------------------------------------------------------------------------
created project in /private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123
/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123$ tox -vv
using tox.ini: /private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/tox.ini
using tox-2.6.1.dev1 from /Users/selimb/Projects/tox/.tox/py27/lib/python2.7/site-packages/tox/__init__.pyc
GLOB start: packaging
GLOB sdist-make: /private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/setup.py
/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123$ /Users/selimb/Projects/tox/.tox/py27/bin/python /private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/setup.py sdist --formats=zip --dist-dir /private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/dist >/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/log/tox-0.log
GLOB finish: packaging after 0.39 seconds
copying new sdistfile to '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/distshare/example123-0.1.zip'
python start: getenv /private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python
python create: /private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python
setting PATH=/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/bin:/Users/selimb/Projects/tox/.tox/py27/bin:/Users/selimb/dotfiles/bin:/Users/selimb/.pipsi/bin:/Applications/Sublime Text.app/Contents/SharedSupport/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin
/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox$ /Users/selimb/Projects/tox/.tox/py27/bin/python -m virtualenv --always-copy --python /Users/selimb/Projects/tox/.tox/py27/bin/python python >/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/log/python-0.log
ERROR: invocation failed (exit code 1), logfile: /private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/log/python-0.log
ERROR: actionid: python
msg: getenv
cmdargs: ['/Users/selimb/Projects/tox/.tox/py27/bin/python', '-m', 'virtualenv', '--always-copy', '--python', '/Users/selimb/Projects/tox/.tox/py27/bin/python', 'python']
env: {'VERSIONER_PYTHON_PREFER_32_BIT': 'no', 'LANG': 'en_CA.UTF-8', 'PYTHONHASHSEED': '3786016490', 'PYTHONPATH': '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123', 'VIRTUAL_ENV': '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python', 'TMPDIR': '/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/', 'VERSIONER_PYTHON_VERSION': '2.7', 'PATH': '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/bin:/Users/selimb/Projects/tox/.tox/py27/bin:/Users/selimb/dotfiles/bin:/Users/selimb/.pipsi/bin:/Applications/Sublime Text.app/Contents/SharedSupport/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin', '__CF_USER_TEXT_ENCODING': '0x1F5:0x0:0x0'}
Already using interpreter /Users/selimb/Projects/tox/.tox/py27/bin/python
Using real prefix '/System/Library/Frameworks/Python.framework/Versions/2.7'
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/site-packages/virtualenv.py", line 2328, in <module>
main()
File "/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/site-packages/virtualenv.py", line 713, in main
symlink=options.symlink)
File "/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/site-packages/virtualenv.py", line 925, in create_environment
site_packages=site_packages, clear=clear, symlink=symlink))
File "/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/site-packages/virtualenv.py", line 1130, in install_python
copyfile(join(stdlib_dir, fn), join(lib_dir, fn), symlink)
File "/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/site-packages/virtualenv.py", line 357, in copyfile
copyfileordir(src, dest, symlink)
File "/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/site-packages/virtualenv.py", line 329, in copyfileordir
shutil.copytree(src, dest, symlink)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 208, in copytree
raise Error, errors
shutil.Error: [('/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/config/config.c', '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/config.c', "[Errno 1] Operation not permitted: '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/config.c'"), ('/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/config/config.c.in', '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/config.c.in', "[Errno 1] Operation not permitted: '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/config.c.in'"), ('/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/config/install-sh', '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/install-sh', "[Errno 1] Operation not permitted: '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/install-sh'"), ('/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/config/libpython2.7.a', '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/libpython2.7.a', "[Errno 1] Operation not permitted: '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/libpython2.7.a'"), ('/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/config/libpython2.7.dylib', '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/libpython2.7.dylib', "[Errno 1] Operation not permitted: '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/libpython2.7.dylib'"), ('/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/config/Makefile', '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/Makefile', "[Errno 1] Operation not permitted: '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/Makefile'"), ('/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/config/makesetup', '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/makesetup', "[Errno 1] Operation not permitted: '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/makesetup'"), ('/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/config/python.o', '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/python.o', "[Errno 1] Operation not permitted: '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/python.o'"), ('/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/config/Setup', '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/Setup', "[Errno 1] Operation not permitted: '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/Setup'"), ('/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/config/Setup.config', '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/Setup.config', "[Errno 1] Operation not permitted: '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/Setup.config'"), ('/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/config/Setup.local', '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/Setup.local', "[Errno 1] Operation not permitted: '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config/Setup.local'"), ('/Users/selimb/Projects/tox/.tox/py27/lib/python2.7/config', '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config', "[Errno 1] Operation not permitted: '/private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/lib/python2.7/config'")]
ERROR: InvocationError: /Users/selimb/Projects/tox/.tox/py27/bin/python -m virtualenv --always-copy --python /Users/selimb/Projects/tox/.tox/py27/bin/python python (see /private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/log/python-0.log)
python finish: getenv after 0.31 seconds
___________________________________ summary ____________________________________
ERROR: python: InvocationError: /Users/selimb/Projects/tox/.tox/py27/bin/python -m virtualenv --always-copy --python /Users/selimb/Projects/tox/.tox/py27/bin/python python (see /private/var/folders/81/yw_sbkk14kn_6mg5rqdh4s7w0000gn/T/pytest-of-selimb/pytest-100/test_alwayscopy0/example123/.tox/python/log/python-0.log)
============================================================================ 1 failed in 1.30 seconds =============================================================================
ERROR: InvocationError: '/Users/selimb/Projects/tox/.tox/py27/bin/py.test --timeout=180 tests/test_z_cmdline.py::test_alwayscopy'
_____________________________________________________________________________________ summary _____________________________________________________________________________________
ERROR: py27: commands failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment