scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
833 stars 91 forks source link

Pip-Install Fails on Python-Ldap [CentOS7] #190

Closed vangourd closed 7 years ago

vangourd commented 7 years ago

Attempting to install on CentOS 7

  1. Run yum dependencies installs python-pip python-dev...etc

  2. sudo pip install realms-wiki

Where the trouble begins:

Rolling back uninstall of python-ldap Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-HhyOmZ/python-ldap/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-4KeEPc-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-HhyOmZ/python-ldap/

Full Pip Install Log: fullpip.txt

vangourd commented 7 years ago

This was actually because one of the dependencies for python-ldap on centos7 is openldap-devel. If you install that dependency manually it fixes this problem with the python-ldap error.

Fixed with yum install openldap-devel then pip install python-ldap although you can also just re-run the setup.