lulu@lulus ➜ minimal git:(master) ✗ mkvirtualenv clean
Using base prefix '/usr'
New python executable in /home/lulu/envs/clean/bin/python3
Also creating executable in /home/lulu/envs/clean/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /home/lulu/envs/clean/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/lulu/envs/clean/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/lulu/envs/clean/bin/preactivate
virtualenvwrapper.user_scripts creating /home/lulu/envs/clean/bin/postactivate
virtualenvwrapper.user_scripts creating /home/lulu/envs/clean/bin/get_env_details
(clean) lulu@lulus ➜ minimal git:(master) ✗ pip install pex
Collecting pex
Using cached pex-1.1.10-py2.py3-none-any.whl
Collecting setuptools<20.11,>=2.2 (from pex)
Using cached setuptools-20.10.1-py2.py3-none-any.whl
Installing collected packages: setuptools, pex
Found existing installation: setuptools 21.2.2
Uninstalling setuptools-21.2.2:
Successfully uninstalled setuptools-21.2.2
Successfully installed pex-1.1.10 setuptools-20.10.1
(clean) lulu@lulus ➜ minimal git:(master) ✗ pex pytest pytest-xdist -o pex.pex
(clean) lulu@lulus ➜ minimal git:(master) ✗ PEX_MODULE=pytest ./pex.pex -n 2
================================================= test session starts =================================================
platform linux -- Python 3.5.1, pytest-2.9.1, py-1.4.31, pluggy-0.3.1
rootdir: /home/lulu/snippets/pytest_docker/minimal, inifile:
plugins: xdist-1.14
gw0 I / gw1 ITraceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 3, in <module>
File "/home/lulu/.pex/install/execnet-1.4.1-py2.py3-none-any.whl.c34b5b3a3e260c938d0a55a12f00732609d1f3a4/execnet-1.4.1-py2.py3-none-any.whl/execnet/__init__.py", line 9, in <module>
import apipkg
ImportError: No module named 'apipkg'
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/home/lulu/.pex/install/pytest-2.9.1-py2.py3-none-any.whl.de80d0e0f3ea1ada1e4d4c8598120dc7ff110f32/pytest-2.9.1-py2.py3-none-any.whl/_pytest/main.py", line 92, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/home/lulu/.pex/install/pytest-2.9.1-py2.py3-none-any.whl.de80d0e0f3ea1ada1e4d4c8598120dc7ff110f32/pytest-2.9.1-py2.py3-none-any.whl/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File "/home/lulu/.pex/install/pytest-2.9.1-py2.py3-none-any.whl.de80d0e0f3ea1ada1e4d4c8598120dc7ff110f32/pytest-2.9.1-py2.py3-none-any.whl/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/home/lulu/.pex/install/pytest-2.9.1-py2.py3-none-any.whl.de80d0e0f3ea1ada1e4d4c8598120dc7ff110f32/pytest-2.9.1-py2.py3-none-any.whl/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File "/home/lulu/.pex/install/pytest-2.9.1-py2.py3-none-any.whl.de80d0e0f3ea1ada1e4d4c8598120dc7ff110f32/pytest-2.9.1-py2.py3-none-any.whl/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/home/lulu/.pex/install/pytest_xdist-1.14-py2.py3-none-any.whl.7cac688e4a81cde40d97f1b945f5875338cf77ba/pytest_xdist-1.14-py2.py3-none-any.whl/xdist/dsession.py", line 509, in pytest_sessionstart
INTERNALERROR> nodes = self.nodemanager.setup_nodes(putevent=self.queue.put)
INTERNALERROR> File "/home/lulu/.pex/install/pytest_xdist-1.14-py2.py3-none-any.whl.7cac688e4a81cde40d97f1b945f5875338cf77ba/pytest_xdist-1.14-py2.py3-none-any.whl/xdist/slavemanage.py", line 48, in setup_nodes
INTERNALERROR> nodes.append(self.setup_node(spec, putevent))
INTERNALERROR> File "/home/lulu/.pex/install/pytest_xdist-1.14-py2.py3-none-any.whl.7cac688e4a81cde40d97f1b945f5875338cf77ba/pytest_xdist-1.14-py2.py3-none-any.whl/xdist/slavemanage.py", line 52, in setup_node
INTERNALERROR> gw = self.group.makegateway(spec)
INTERNALERROR> File "/home/lulu/.pex/install/execnet-1.4.1-py2.py3-none-any.whl.c34b5b3a3e260c938d0a55a12f00732609d1f3a4/execnet-1.4.1-py2.py3-none-any.whl/execnet/multi.py", line 128, in makegateway
INTERNALERROR> gw = gateway_bootstrap.bootstrap(io, spec)
INTERNALERROR> File "/home/lulu/.pex/install/execnet-1.4.1-py2.py3-none-any.whl.c34b5b3a3e260c938d0a55a12f00732609d1f3a4/execnet-1.4.1-py2.py3-none-any.whl/execnet/gateway_bootstrap.py", line 92, in bootstrap
INTERNALERROR> bootstrap_import(io, spec)
INTERNALERROR> File "/home/lulu/.pex/install/execnet-1.4.1-py2.py3-none-any.whl.c34b5b3a3e260c938d0a55a12f00732609d1f3a4/execnet-1.4.1-py2.py3-none-any.whl/execnet/gateway_bootstrap.py", line 27, in bootstrap_import
INTERNALERROR> s = io.read(1)
INTERNALERROR> File "/home/lulu/.pex/install/execnet-1.4.1-py2.py3-none-any.whl.c34b5b3a3e260c938d0a55a12f00732609d1f3a4/execnet-1.4.1-py2.py3-none-any.whl/execnet/gateway_base.py", line 389, in read
INTERNALERROR> "expected %d bytes, got %d" % (numbytes, len(buf)))
INTERNALERROR> EOFError: expected 1 bytes, got 0
(clean) lulu@lulus ➜ minimal git:(master) ✗ PEX_MODULE=pytest ./pex.pex -n 0
================================================= test session starts =================================================
platform linux -- Python 3.5.1, pytest-2.9.1, py-1.4.31, pluggy-0.3.1
rootdir: /home/lulu/snippets/pytest_docker/minimal, inifile:
plugins: xdist-1.14
collected 0 items
============================================ no tests ran in 0.00 seconds =============================================