carlalexander / debops-wordpress

Your superpowered WordPress server in three commands.
GNU General Public License v3.0
440 stars 65 forks source link

Error installing ansible through pip on Debian jessie 8.9 #179

Closed skygunner closed 6 years ago

skygunner commented 7 years ago

sudo pip install ansible got this error:

` Downloading pycrypto-2.6.1.tar.gz (446kB): 446kB downloaded Running setup.py (path:/tmp/pip-build-zUBQN_/pycrypto/setup.py) egg_info for package pycrypto

File "", line 17, in

File "/tmp/pip-build-zUBQN_/pynacl/setup.py", line 232, in

"Programming Language :: Python :: 3.6",

File "/usr/lib/python2.7/distutils/core.py", line 111, in setup

_setup_distribution = dist = klass(attrs)

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 262, in init

self.fetch_build_eggs(attrs['setup_requires'])

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 287, in fetch_build_eggs

replace_conflicting=True,

File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 631, in resolve

dist = best[req.key] = env.best_match(req, ws, installer)

File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 874, in best_match

return self.obtain(req, installer)

File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 886, in obtain

return installer(requirement)

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 338, in fetch_build_egg

return cmd.easy_install(req)

File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 636, in easy_install

return self.install_item(spec, dist.location, tmpdir, deps)

File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 666, in install_item

dists = self.install_eggs(spec, download, tmpdir)

File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 856, in install_eggs

return self.build_and_install(setup_script, setup_base)

File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1078, in build_and_install

self.run_setup(setup_script, setup_base, args)

File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1066, in run_setup

raise DistutilsError("Setup script exited with %s" % (v.args[0],))

distutils.errors.DistutilsError: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


Cleaning up... Command python setup.py egginfo failed with error code 1 in /tmp/pip-build-zUBQN/pynacl Storing debug log for failure in /root/.pip/pip.log `

apt-get install ansible works fine.

carlalexander commented 7 years ago

What linux distro are you using?

skygunner commented 7 years ago

Debian jessie 8.9

apt-get install ansible works fine

carlalexander commented 7 years ago

Is debops supported on Debian Jessie @drybjed? I haven't tested setting up DebOps tools on Jessie.

drybjed commented 7 years ago

Yes, Debian Stable is the primary target of DebOps development. Debian Jessie should be supported, but not the ansible packages provided by it - they are too old. You should build your own .deb packages from Ansible 2.3 sources and install it that way.

carlalexander commented 6 years ago

Were you able to get this going @skygunner?

carlalexander commented 6 years ago

Closing this. Please reopen if you're still having an issue @skygunner.