aenigma icon indicating copy to clipboard operation
aenigma copied to clipboard

Error when installing patroni

Open TheFlipside opened this issue 5 years ago • 0 comments

On an Ubuntu 18.04 system I ran into errors at the part of installing patroni:

Finished installing PostgreSQL. Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable postgresql Collecting patroni Using cached https://files.pythonhosted.org/packages/d9/71/f1465e00f5e2d3e4c00c4ef8d80c02e3c31ac76dcf6a9d3b0cdef3b62305/patroni-1.6.5.tar.gz Complete output from command python setup.py egg_info: WARNING: The wheel package is not available. WARNING: The wheel package is not available. WARNING: The wheel package is not available. WARNING: The wheel package is not available. WARNING: The wheel package is not available. WARNING: The wheel package is not available. WARNING: The wheel package is not available. ERROR: Failed to build one or more wheels Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-ntghgy/patroni/setup.py", line 166, in setup_package(version) File "/tmp/pip-build-ntghgy/patroni/setup.py", line 150, in setup_package entry_points={'console_scripts': CONSOLE_SCRIPTS}, File "/usr/local/lib/python2.7/dist-packages/setuptools/init.py", line 161, in setup _install_setup_requires(attrs) File "/usr/local/lib/python2.7/dist-packages/setuptools/init.py", line 156, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 721, in fetch_build_eggs replace_conflicting=True, File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 782, in resolve replace_conflicting=replace_conflicting File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 1065, in best_match return self.obtain(req, installer) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 1077, in obtain return installer(requirement) File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 777, in fetch_build_egg return fetch_build_egg(self, req) File "/usr/local/lib/python2.7/dist-packages/setuptools/installer.py", line 130, in fetch_build_egg raise DistutilsError(str(e)) distutils.errors.DistutilsError: Command '['/usr/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp45RgeS', '--quiet', 'functools32']' returned non-zero exit status 1 ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ntghgy/patroni/

I was able to solve this by running pip install wheel but another run of the setup resulted in an even bigger error: https://pastebin.com/bkGnnvAn

I was able to resolve this one with apt install python-dev just wanted to mention this as some dependencies seem to be missing from the setup scripts

TheFlipside avatar Aug 14 '20 16:08 TheFlipside