CI on GRICAD: pybatsim install randomly fails
The CI has been migrated to the GRICAD Gitlab server (https://gricad-gitlab.univ-grenoble-alpes.fr/batsim/batsim/pipelines).
Unfortunately, it seems that pybatsim installation randomly crashes on it :(.
Log when it works
$ pip3 install --upgrade /builds/batsim/batsim/schedulers/pybatsim
Processing /builds/batsim/batsim/schedulers/pybatsim
Collecting click (from pybatsim==1.2)
Downloading click-6.7-py2.py3-none-any.whl (71kB)
Collecting docopt==0.6.1 (from pybatsim==1.2)
Downloading docopt-0.6.1.tar.gz
Requirement already up-to-date: pandas in /usr/local/lib/python3.5/dist-packages (from pybatsim==1.2)
Requirement already up-to-date: pyzmq in /usr/local/lib/python3.5/dist-packages (from pybatsim==1.2)
Requirement already up-to-date: redis in /usr/local/lib/python3.5/dist-packages (from pybatsim==1.2)
Requirement already up-to-date: sortedcontainers in /usr/local/lib/python3.5/dist-packages (from pybatsim==1.2)
Requirement already up-to-date: python-dateutil>=2 in /usr/local/lib/python3.5/dist-packages (from pandas->pybatsim==1.2)
Requirement already up-to-date: pytz>=2011k in /usr/local/lib/python3.5/dist-packages (from pandas->pybatsim==1.2)
Requirement already up-to-date: numpy>=1.7.0 in /usr/local/lib/python3.5/dist-packages (from pandas->pybatsim==1.2)
Collecting six>=1.5 (from python-dateutil>=2->pandas->pybatsim==1.2)
Downloading six-1.11.0-py2.py3-none-any.whl
Building wheels for collected packages: docopt
Running setup.py bdist_wheel for docopt: started
Running setup.py bdist_wheel for docopt: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/86/1b/8a/0933395aaae19f42bfa2363cdce97175e221e8dca3a17b780b
Successfully built docopt
Installing collected packages: click, docopt, pybatsim, six
Found existing installation: docopt 0.6.2
Uninstalling docopt-0.6.2:
Successfully uninstalled docopt-0.6.2
Running setup.py install for pybatsim: started
Running setup.py install for pybatsim: finished with status 'done'
Found existing installation: six 1.10.0
Not uninstalling six at /usr/lib/python3/dist-packages, outside environment /usr
Successfully installed click-6.7 docopt-0.6.1 pybatsim-1.2 six-1.11.0
Log when it crashes
$ pip3 install --upgrade /builds/batsim/batsim/schedulers/pybatsim
Processing /builds/batsim/batsim/schedulers/pybatsim
Complete output from command python setup.py egg_info:
warning: no files found matching 'test/example'
warning: no files found matching 'test/example/x.py'
warning: no previously-included files matching '*.py' found under directory 'test/suite'
warning: no previously-included files matching '*.py' found under directory 'test/suite/out'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'CONTRIBUTING.rst'
warning: no previously-included files found matching 'Makefile'
warning: no previously-included files found matching 'coveralls.bash'
warning: no previously-included files found matching 'hooks'
warning: no previously-included files found matching 'hooks/pre-push'
warning: no previously-included files found matching 'install_hooks.bash'
warning: no previously-included files found matching 'test/.gitignore'
warning: no previously-included files found matching 'test/acid.py'
warning: no previously-included files found matching 'test/acid_pypi.py'
warning: no previously-included files found matching 'test/suite'
warning: no previously-included files found matching 'test/suite/out'
warning: no previously-included files found matching 'test/vim_autopep8.py'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'update_readme.py'
Installed /tmp/pip-r4fwyf6g-build/.eggs/autopep8-1.3.2-py3.5.egg
Searching for coverage
Reading https://pypi.python.org/simple/coverage/
Downloading https://pypi.python.org/packages/36/db/690ee79312bb60f121c0da1c973856ddb751afe09cc10caec1452208eaf4/coverage-4.4.1.tar.gz#md5=4c4d997cb32be4703f1fde54e6cd1b1c
Best match: coverage 4.4.1
Processing coverage-4.4.1.tar.gz
Writing /tmp/easy_install-6uh5wu1z/coverage-4.4.1/setup.cfg
Running coverage-4.4.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-6uh5wu1z/coverage-4.4.1/egg-dist-tmp-1shsgzlm
warning: no previously-included files found matching 'ci/appveyor.token'
no previously-included directories found matching 'doc/_build'
no previously-included directories found matching 'tests/eggsrc/build'
no previously-included directories found matching 'tests/eggsrc/dist'
no previously-included directories found matching 'tests/eggsrc/*.egg-info'
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
creating /tmp/pip-r4fwyf6g-build/.eggs/coverage-4.4.1-py3.5-linux-x86_64.egg
Extracting coverage-4.4.1-py3.5-linux-x86_64.egg to /tmp/pip-r4fwyf6g-build/.eggs
Installed /tmp/pip-r4fwyf6g-build/.eggs/coverage-4.4.1-py3.5-linux-x86_64.egg
Traceback (most recent call last):
File "/usr/lib/python3.5/shutil.py", line 420, in _rmtree_safe_fd
os.rmdir(name, dir_fd=topfd)
OSError: [Errno 39] Directory not empty: 'coverage'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-r4fwyf6g-build/setup.py", line 136, in <module>
'doc': DocCommand,
File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 317, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 372, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 846, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1118, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1130, in obtain
return installer(requirement)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 440, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 699, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python3.5/contextlib.py", line 66, in __exit__
next(self.gen)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 663, in _tmpdir
os.path.exists(tmpdir) and rmtree(rmtree_safe(tmpdir))
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 2287, in rmtree
return shutil.rmtree(path, ignore_errors, onerror)
File "/usr/lib/python3.5/shutil.py", line 480, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/usr/lib/python3.5/shutil.py", line 418, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/usr/lib/python3.5/shutil.py", line 418, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/usr/lib/python3.5/shutil.py", line 418, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/usr/lib/python3.5/shutil.py", line 422, in _rmtree_safe_fd
onerror(os.rmdir, fullname, sys.exc_info())
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1737, in auto_chmod
six.reraise(et, (ev[0], ev[1] + (" %s %s" % (func, arg))))
TypeError: 'OSError' object is not subscriptable
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-r4fwyf6g-build/
ERROR: Job failed: exit code 1