make fails after mercurial pip install fails
make
------------------------------------------------------------
Generating gitlab-org/gitlab Rails translations
------------------------------------------------------------
WARNING: This version of GitLab depends on gitlab-shell 13.6.0, but you're running Unknown. Please update gitlab-shell.
rake aborted!
Errno::ENOENT: No such file or directory - /home/arthur/local/heptapod-development-kit/venv/bin/hg
/home/arthur/local/heptapod-development-kit/gitlab/lib/gitlab/popen.rb:38:in `popen_with_detail'
/home/arthur/local/heptapod-development-kit/gitlab/lib/gitlab.rb:32:in `hg_log'
/home/arthur/local/heptapod-development-kit/gitlab/lib/gitlab.rb:79:in `revision'
/home/arthur/local/heptapod-development-kit/gitlab/lib/gitlab/error_tracking.rb:23:in `block in configure'
/home/arthur/local/heptapod-development-kit/gitlab/lib/gitlab/error_tracking.rb:21:in `configure'
/home/arthur/local/heptapod-development-kit/gitlab/config/initializers/sentry.rb:5:in `<main>'
/home/arthur/local/heptapod-development-kit/gitlab/config/environment.rb:5:in `<main>'
/home/arthur/local/heptapod-development-kit/gitlab/lib/tasks/gettext.rake:27:in `block (2 levels) in <main>'
/home/arthur/.rbenv/versions/2.6.6/bin/bundle:23:in `load'
/home/arthur/.rbenv/versions/2.6.6/bin/bundle:23:in `<main>'
Tasks: TOP => gettext:po_to_json => environment
(See full trace by running task with --trace)
make: *** [Makefile:258: .gettext] Error 1
After getting :
[snip]
ln -s /home/arthur/local/heptapod-development-kit/venv3 venv
venv2/bin/pip install -e py-heptapod
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Obtaining file:///home/arthur/local/heptapod-development-kit/py-heptapod
Collecting Mercurial>=5.2
Downloading mercurial-5.5.2.tar.gz (7.8 MB)
|████████████████████████████████| 7.8 MB 1.1 MB/s
ERROR: Command errored out with exit status 1:
command: /home/arthur/local/heptapod-development-kit/venv2/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-btPSje/Mercurial/setup.py'"'"'; __file__='"'"'/tmp/pip-install-btPSje/Mercurial/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-btPSje/Mercurial/pip-egg-info
cwd: /tmp/pip-install-btPSje/Mercurial/
Complete output (7 lines):
running egg_info
creating /tmp/pip-install-btPSje/Mercurial/pip-egg-info/mercurial.egg-info
writing /tmp/pip-install-btPSje/Mercurial/pip-egg-info/mercurial.egg-info/PKG-INFO
writing top-level names to /tmp/pip-install-btPSje/Mercurial/pip-egg-info/mercurial.egg-info/top_level.txt
writing dependency_links to /tmp/pip-install-btPSje/Mercurial/pip-egg-info/mercurial.egg-info/dependency_links.txt
writing manifest file '/tmp/pip-install-btPSje/Mercurial/pip-egg-info/mercurial.egg-info/SOURCES.txt'
Python headers are required to build Mercurial but weren't found in /usr/include/python2.7/Python.h
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
make: *** [Makefile:281: py-heptapod] Error 1
(which required a apt install python-dev python3-dev
)