## i started seeing failure with cloud-init and tox on xenial
## This is a simple project using setuptools that I made to see it fail also
## I'm sure there is some Luser error here.
##
## lp:~smoser/+junk/tox-simple-setuptools
## https://code.launchpad.net/~smoser/+junk/tox-simple-setuptools
$ ( d=/tmp/mytest.build; rm -Rf "$d" && bzr branch lp:~smoser/+junk/tox-simple-setuptools "$d" && cd "$d" && tox -vv -e py27 )
Branched 1 revision.
using tox.ini: /tmp/mytest.build/tox.ini
using tox-2.3.1 from /usr/lib/python3/dist-packages/tox/__init__.py
GLOB start: packaging
GLOB sdist-make: /tmp/mytest.build/setup.py
/tmp/mytest.build$ /usr/bin/python3 /tmp/mytest.build/setup.py sdist --formats=zip --dist-dir /tmp/mytest.build/.tox/dist >/tmp/mytest.build/.tox/log/tox-0.log
GLOB finish: packaging after 0.23 seconds
copying new sdistfile to '/home/smoser/.tox/distshare/mytest-0.1.zip'
py27 start: getenv /tmp/mytest.build/.tox/py27
py27 create: /tmp/mytest.build/.tox/py27
setting PATH=/tmp/mytest.build/.tox/py27/bin:/home/smoser/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
/tmp/mytest.build/.tox$ /usr/bin/python3 -m virtualenv --python /usr/bin/python2.7 py27 >/tmp/mytest.build/.tox/py27/log/py27-0.log
py27 finish: getenv after 2.52 seconds
py27 start: installpkg /tmp/mytest.build/.tox/dist/mytest-0.1.zip
py27 inst: /tmp/mytest.build/.tox/dist/mytest-0.1.zip
setting PATH=/tmp/mytest.build/.tox/py27/bin:/home/smoser/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
/tmp/mytest.build$ /tmp/mytest.build/.tox/py27/bin/pip install /tmp/mytest.build/.tox/dist/mytest-0.1.zip >/tmp/mytest.build/.tox/py27/log/py27-1.log
ERROR: invocation failed (exit code 1), logfile: /tmp/mytest.build/.tox/py27/log/py27-1.log
ERROR: actionid: py27
msg: installpkg
cmdargs: [local('/tmp/mytest.build/.tox/py27/bin/pip'), 'install', '/tmp/mytest.build/.tox/dist/mytest-0.1.zip']
env: {'SESSION_MANAGER': 'local/milhouse:@/tmp/.ICE-unix/4076,unix/milhouse:/tmp/.ICE-unix/4076', 'PYTHONHASHSEED': '1538751919', 'XMODIFIERS': '@im=ibus', 'XDG_GREETER_DATA_DIR': '/var/lib/lightdm-data/smoser', 'WINDOWID': '56728901', 'CLUTTER_IM_MODULE': 'xim', 'DBUS_STARTER_BUS_TYPE': 'session', 'GTK_MODULES': 'gail:atk-bridge:unity-gtk-module', 'XDG_VTNR': '7', 'QT_IM_MODULE': 'ibus', 'PWD': '/tmp/mytest.build', 'TERM': 'xterm-256color', 'XAPIAN_CJK_NGRAM': '1', 'COMPIZ_CONFIG_PROFILE': 'ubuntu', 'XAUTHORITY': '/home/smoser/.Xauthority', 'IM_CONFIG_PHASE': '1', 'PATH': '/tmp/mytest.build/.tox/py27/bin:/home/smoser/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games', 'JOB': 'xsession-init', 'GTK_IM_MODULE': 'ibus', '_': '/usr/bin/tox', 'GDM_LANG': 'en_US', 'XDG_RUNTIME_DIR': '/run/user/1000', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'MANDATORY_PATH': '/usr/share/gconf/ubuntu.mandatory.path', 'SHLVL': '1', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg', 'VTE_VERSION': '4204', 'UPSTART_INSTANCE': '', 'DEBFULLNAME': 'Scott Moser', 'SSH_AUTH_SOCK': '/tmp/ssh-DZUw59jhGiFY/agent.3806', 'USER': 'smoser', 'XDG_SESSION_PATH': '/org/freedesktop/DisplayManager/Session0', 'XDG_SEAT': 'seat0', 'QT_ACCESSIBILITY': '1', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'UPSTART_EVENTS': 'starting', 'SESSIONTYPE': 'gnome-session', 'INSTANCE': '', 'GPG_AGENT_INFO': '/tmp/gpg-IzGV72/S.gpg-agent:3782:1', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'VIRTUAL_ENV': '/tmp/mytest.build/.tox/py27', 'ZEITGEIST_DATA_PATH': '/home/smoser/.local/share/zeitgeist', 'UPSTART_JOB': 'dbus', 'XDG_SESSION_ID': 'c2', 'DBUS_STARTER_ADDRESS': 'unix:abstract=/tmp/dbus-2X9ve7Blk7,guid=b60f06519be48be1e4e1b39456d45284', 'DEFAULTS_PATH': '/usr/share/gconf/ubuntu.default.path', 'XDG_CURRENT_DESKTOP': 'Unity', 'QT_LINUX_ACCESSIBILITY_ALWAYS_ON': '1', 'XDG_DATA_DIRS': '/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/', 'UPSTART_SESSION': 'unix:abstract=/com/ubuntu/upstart-session/1000/3746', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'LANG': 'en_US.UTF-8', 'XDG_SESSION_TYPE': 'x11', 'QT4_IM_MODULE': 'xim', 'GDMSESSION': 'ubuntu', 'EDITOR': 'vim', 'XDG_MENU_PREFIX': 'gnome-', 'GTK2_MODULES': 'overlay-scrollbar', 'DBUS_DEBUG_OUTPUT': '1', 'XDG_SESSION_DESKTOP': 'ubuntu', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-2X9ve7Blk7,guid=b60f06519be48be1e4e1b39456d45284', 'DISPLAY': ':0', 'LANGUAGE': 'en_US', 'SSH_AGENT_PID': '3807', 'SHELL': '/bin/bash', 'QT_QPA_PLATFORMTHEME': 'appmenu-qt5', 'DESKTOP_SESSION': 'ubuntu', 'HOME': '/home/smoser', 'DEBEMAIL': 'smoser@ubuntu.com', 'XDG_SEAT_PATH': '/org/freedesktop/DisplayManager/Seat0', 'OLDPWD': '/home/smoser-public/src/cloud-init/mytest', 'LOGNAME': 'smoser'}
Processing ./.tox/dist/mytest-0.1.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-PoreSu-build/setup.py", line 6, in <module>
packages = find_packages(),
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/tmp/mytest.build/.tox/py27/local/lib/python2.7/site-packages/setuptools/dist.py", line 272, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/tmp/mytest.build/.tox/py27/local/lib/python2.7/site-packages/setuptools/dist.py", line 326, in finalize_options
ep.require(installer=self.fetch_build_egg)
File "/tmp/mytest.build/.tox/py27/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2395, in require
reqs = self.dist.requires(self.extras)
File "/tmp/mytest.build/.tox/py27/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2640, in requires
dm = self._dep_map
File "/tmp/mytest.build/.tox/py27/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2864, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/tmp/mytest.build/.tox/py27/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2881, in _compute_dependencies
from _markerlib import compile as compile_marker
ImportError: No module named _markerlib
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-PoreSu-build
py27 finish: installpkg after 0.68 seconds
py27 start: envreport
setting PATH=/tmp/mytest.build/.tox/py27/bin:/home/smoser/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
/tmp/mytest.build$ /tmp/mytest.build/.tox/py27/bin/pip freeze >/tmp/mytest.build/.tox/py27/log/py27-2.log
py27 installed: pkg-resources==0.0.0,wheel==0.29.0
py27 finish: envreport after 0.36 seconds
___________________________________ summary ____________________________________
ERROR: py27: InvocationError: /tmp/mytest.build/.tox/py27/bin/pip install /tmp/mytest.build/.tox/dist/mytest-0.1.zip (see /tmp/mytest.build/.tox/py27/log/py27-1.log)
$ cat /tmp/mytest.build/.tox/py27/log/py27-1.log
actionid: py27
msg: installpkg
cmdargs: [local('/tmp/mytest.build/.tox/py27/bin/pip'), 'install', '/tmp/mytest.build/.tox/dist/mytest-0.1.zip']
env: {'SESSION_MANAGER': 'local/milhouse:@/tmp/.ICE-unix/4076,unix/milhouse:/tmp/.ICE-unix/4076', 'PYTHONHASHSEED': '1538751919', 'XMODIFIERS': '@im=ibus', 'XDG_GREETER_DATA_DIR': '/var/lib/lightdm-data/smoser', 'WINDOWID': '56728901', 'CLUTTER_IM_MODULE': 'xim', 'DBUS_STARTER_BUS_TYPE': 'session', 'GTK_MODULES': 'gail:atk-bridge:unity-gtk-module', 'XDG_VTNR': '7', 'QT_IM_MODULE': 'ibus', 'PWD': '/tmp/mytest.build', 'TERM': 'xterm-256color', 'XAPIAN_CJK_NGRAM': '1', 'COMPIZ_CONFIG_PROFILE': 'ubuntu', 'XAUTHORITY': '/home/smoser/.Xauthority', 'IM_CONFIG_PHASE': '1', 'PATH': '/tmp/mytest.build/.tox/py27/bin:/home/smoser/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games', 'JOB': 'xsession-init', 'GTK_IM_MODULE': 'ibus', '_': '/usr/bin/tox', 'GDM_LANG': 'en_US', 'XDG_RUNTIME_DIR': '/run/user/1000', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'MANDATORY_PATH': '/usr/share/gconf/ubuntu.mandatory.path', 'SHLVL': '1', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg', 'VTE_VERSION': '4204', 'UPSTART_INSTANCE': '', 'DEBFULLNAME': 'Scott Moser', 'SSH_AUTH_SOCK': '/tmp/ssh-DZUw59jhGiFY/agent.3806', 'USER': 'smoser', 'XDG_SESSION_PATH': '/org/freedesktop/DisplayManager/Session0', 'XDG_SEAT': 'seat0', 'QT_ACCESSIBILITY': '1', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'UPSTART_EVENTS': 'starting', 'SESSIONTYPE': 'gnome-session', 'INSTANCE': '', 'GPG_AGENT_INFO': '/tmp/gpg-IzGV72/S.gpg-agent:3782:1', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'VIRTUAL_ENV': '/tmp/mytest.build/.tox/py27', 'ZEITGEIST_DATA_PATH': '/home/smoser/.local/share/zeitgeist', 'UPSTART_JOB': 'dbus', 'XDG_SESSION_ID': 'c2', 'DBUS_STARTER_ADDRESS': 'unix:abstract=/tmp/dbus-2X9ve7Blk7,guid=b60f06519be48be1e4e1b39456d45284', 'DEFAULTS_PATH': '/usr/share/gconf/ubuntu.default.path', 'XDG_CURRENT_DESKTOP': 'Unity', 'QT_LINUX_ACCESSIBILITY_ALWAYS_ON': '1', 'XDG_DATA_DIRS': '/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/', 'UPSTART_SESSION': 'unix:abstract=/com/ubuntu/upstart-session/1000/3746', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'LANG': 'en_US.UTF-8', 'XDG_SESSION_TYPE': 'x11', 'QT4_IM_MODULE': 'xim', 'GDMSESSION': 'ubuntu', 'EDITOR': 'vim', 'XDG_MENU_PREFIX': 'gnome-', 'GTK2_MODULES': 'overlay-scrollbar', 'DBUS_DEBUG_OUTPUT': '1', 'XDG_SESSION_DESKTOP': 'ubuntu', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-2X9ve7Blk7,guid=b60f06519be48be1e4e1b39456d45284', 'DISPLAY': ':0', 'LANGUAGE': 'en_US', 'SSH_AGENT_PID': '3807', 'SHELL': '/bin/bash', 'QT_QPA_PLATFORMTHEME': 'appmenu-qt5', 'DESKTOP_SESSION': 'ubuntu', 'HOME': '/home/smoser', 'DEBEMAIL': 'smoser@ubuntu.com', 'XDG_SEAT_PATH': '/org/freedesktop/DisplayManager/Seat0', 'OLDPWD': '/home/smoser-public/src/cloud-init/mytest', 'LOGNAME': 'smoser'}
Processing ./.tox/dist/mytest-0.1.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-PoreSu-build/setup.py", line 6, in <module>
packages = find_packages(),
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/tmp/mytest.build/.tox/py27/local/lib/python2.7/site-packages/setuptools/dist.py", line 272, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/tmp/mytest.build/.tox/py27/local/lib/python2.7/site-packages/setuptools/dist.py", line 326, in finalize_options
ep.require(installer=self.fetch_build_egg)
File "/tmp/mytest.build/.tox/py27/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2395, in require
reqs = self.dist.requires(self.extras)
File "/tmp/mytest.build/.tox/py27/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2640, in requires
dm = self._dep_map
File "/tmp/mytest.build/.tox/py27/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2864, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/tmp/mytest.build/.tox/py27/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2881, in _compute_dependencies
from _markerlib import compile as compile_marker
ImportError: No module named _markerlib
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-PoreSu-build