Installation issues

Trying to install Indico on Ubuntu Server 18.04.2 LTS
Ubuntu Server is up to date.

Following the steps here:

https://docs.getindico.io/en/stable/installation/development

At the pip install -e . step (under Configuration), I get the following:

(env) user@ubuntu-server:~/dev/indico/src$ pip install -e .
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Obtaining file:///home/user/dev/indico/src
Requirement already satisfied: Babel==2.7.0 in /home/user/dev/indico/env/lib/python2.7/site-packages (from indico==2.2.dev0) (2.7.0)
Requirement already satisfied: MarkupSafe==1.1.1 in /home/user/dev/indico/env/lib/python2.7/site-packages (from indico==2.2.dev0) (1.1.1)
Collecting indico-fonts==1.1 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/26/e4/9aafeddba9d28a81a8b40d85cdee9d674a93fe5040825ef1bb03287ea768/indico_fonts-1.1-py2.py3-none-any.whl
Collecting icalendar==4.0.3 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/05/00/af65fe57330c5b087ee497d3e412b03432a1823a46bac6900f956b9393a1/icalendar-4.0.3-py2.py3-none-any.whl
Collecting lxml[html5]==4.3.4 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/af/31/47cce58942bbf4b8f1c975ec2d1ab52141f7b7cf8cdecb58f25546d2c4fd/lxml-4.3.4-cp27-cp27mu-manylinux1_x86_64.whl
Requirement already satisfied: pojson==0.7 in /home/user/dev/indico/env/lib/python2.7/site-packages (from indico==2.2.dev0) (0.7)
Collecting pyPdf==1.13 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/bd/22/e1df75dffb7679344bcf986abd473d7c0e22ba976f2caef31551e394a3a2/pyPdf-1.13.tar.gz
Collecting pyatom==1.4 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/ee/a3/ca8d9d4255e71d12c2f88523f431b88868ec73c2fdeae7eca8e64ae0908e/pyatom-1.4.tar.gz
Collecting pycountry==18.12.8 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/f8/39/04d8215fddd5b263beb36cc324e5656714a19081cacb2fc7c8e6afc2817d/pycountry-18.12.8-py2.py3-none-any.whl
Collecting mock==3.0.5 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/05/d2/f94e68be6b17f46d2c353564da56e6fb89ef09faeeff3313a046cb810ca9/mock-3.0.5-py2.py3-none-any.whl
Collecting freezegun==0.3.12 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/81/98/801900ea24536928a99e40a815812c1bc7d7f833d53ec53f216d8330db7d/freezegun-0.3.12-py2.py3-none-any.whl
Requirement already satisfied: pytest==4.6.4 in /home/user/dev/indico/env/lib/python2.7/site-packages (from indico==2.2.dev0) (4.6.4)
Collecting pytest-cov==2.7.1 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/84/7b/73f8522619d1cbb22b9a36f9c54bc5ce5e24648e53cc1bf566477d2d1f2b/pytest_cov-2.7.1-py2.py3-none-any.whl
Collecting pytest-localserver==0.5.0 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/6c/b3/db8f8700718fbefaa2e8b2ef690fec147e560ce92e2300cdb3ff462d313c/pytest-localserver-0.5.0.tar.gz
Collecting pytest-mock==1.10.4 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/30/43/8deecb4c123bbc16d25666f1a6d241109c97aeb2e50806b952661c8e4b95/pytest_mock-1.10.4-py2.py3-none-any.whl
Collecting python-dateutil==2.8.0 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl
Requirement already satisfied: pytz in /home/user/dev/indico/env/lib/python2.7/site-packages (from indico==2.2.dev0) (2019.1)
Collecting reportlab==3.5.23 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/62/50/39ba99b78e7f5a171ebe7da519ff3fb4bd155f871905c36bf62bc7fe2654/reportlab-3.5.23-cp27-cp27mu-manylinux1_x86_64.whl
Requirement already satisfied: simplejson==3.16.0 in /home/user/dev/indico/env/lib/python2.7/site-packages (from indico==2.2.dev0) (3.16.0)
Requirement already satisfied: termcolor==1.1.0 in /home/user/dev/indico/env/lib/python2.7/site-packages (from indico==2.2.dev0) (1.1.0)
Requirement already satisfied: wsgiref==0.1.2 in /usr/lib/python2.7 (from indico==2.2.dev0) (0.1.2)
Collecting zope.interface==3.8.0 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/a9/8d/cea179e663f9656f07d09b0b181299a2d8949fb6491ce3c5bc923ca9dd9f/zope.interface-3.8.0.tar.gz
Requirement already satisfied: requests==2.22.0 in /home/user/dev/indico/env/lib/python2.7/site-packages (from indico==2.2.dev0) (2.22.0)
Requirement already satisfied: Werkzeug==0.15.4 in /home/user/dev/indico/env/lib/python2.7/site-packages (from indico==2.2.dev0) (0.15.4)
Requirement already satisfied: Flask==1.1.1 in /home/user/dev/indico/env/lib/python2.7/site-packages (from indico==2.2.dev0) (1.1.1)
Collecting bcrypt==3.1.7 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/ad/36/9a0227d048e98409f012570f7bef8a8c2373b9c9c5dfbf82963cbae05ede/bcrypt-3.1.7-cp27-cp27mu-manylinux1_x86_64.whl
Collecting Pillow==6.1.0 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/cc/a4/79b5f36d1e1a2b426073bd62217d1530fcd939950c2936651e6b39127a9b/Pillow-6.1.0-cp27-cp27mu-manylinux1_x86_64.whl
Collecting qrcode==6.1 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/42/87/4a3a77e59ab7493d64da1f69bf1c2e899a4cf81e51b2baa855e8cc8115be/qrcode-6.1-py2.py3-none-any.whl
Collecting Markdown==2.3.1 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/78/e9/f433f3774d27ae6748a601ba8607e433eec23e8b3ddd4ea88338de8443bf/Markdown-2.3.1.tar.gz
Collecting bleach==3.1.0 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/ab/05/27e1466475e816d3001efb6e0a85a819be17411420494a1e602c36f8299d/bleach-3.1.0-py2.py3-none-any.whl
Collecting Flask-SQLAlchemy==2.4.0 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/08/ca/582442cad71504a1514a2f053006c8bb128844133d6076a4df17117545fa/Flask_SQLAlchemy-2.4.0-py2.py3-none-any.whl
Collecting Flask-WTF==0.14.2 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/60/3a/58c629472d10539ae5167dc7c1fecfa95dd7d0b7864623931e3776438a24/Flask_WTF-0.14.2-py2.py3-none-any.whl
Collecting Flask-BabelEx==0.9.3 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/80/ad/cc2b0becd98050eed775ca85d6e5fa784547acff69f968183098df8a52b3/Flask-BabelEx-0.9.3.tar.gz
Collecting SQLAlchemy==1.3.5 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/62/3c/9dda60fd99dbdcbc6312c799a3ec9a261f95bc12f2874a35818f04db2dd9/SQLAlchemy-1.3.5.tar.gz
Collecting WTForms==2.2.1 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/9f/c8/dac5dce9908df1d9d48ec0e26e2a250839fa36ea2c602cc4f85ccfeb5c65/WTForms-2.2.1-py2.py3-none-any.whl
Collecting WTForms-Components==0.10.4 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/22/19/7075cb32afc09962f8871bacc55214040dae06f0a7870033f7ceba0a9490/WTForms-Components-0.10.4.tar.gz
Collecting psycopg2==2.8.3 (from indico==2.2.dev0)
  Using cached https://files.pythonhosted.org/packages/5c/1c/6997288da181277a0c29bc39a5f9143ff20b8c99f2a7d059cfb55163e165/psycopg2-2.8.3.tar.gz
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: running egg_info
    creating pip-egg-info/psycopg2.egg-info
    writing pip-egg-info/psycopg2.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
    Error: You need to install postgresql-server-dev-NN for building a server-side extension or libpq-dev for building a client-side application.

    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-9Oz9We/psycopg2/

Any ideas? :frowning:

Nevermind,

I ran sudo apt install libpq-dev python-dev and it fixed it.