Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: "cryptography requires setuptools 18.5 or newer, please upgrade to a newer version of setuptools" while running setup.py during controller vm provisioning. #2

Open
teterkin opened this issue Aug 2, 2018 · 2 comments

Comments

@teterkin
Copy link

teterkin commented Aug 2, 2018

    controller:   Running setup.py (path:/tmp/pip_build_root/ansible/setup.py) egg_info for package ansible
    controller:
    controller:     no previously-included directories found matching 'hacking'
    controller: Downloading/unpacking jinja2 (from ansible)
    controller: Requirement already satisfied (use --upgrade to upgrade): PyYAML in /usr/lib/python2.7/dist-packages (from ansible)
    controller: Downloading/unpacking paramiko (from ansible)
    controller: Downloading/unpacking cryptography (from ansible)
    controller:   Running setup.py (path:/tmp/pip_build_root/cryptography/setup.py) egg_info for package cryptography
    controller:     Traceback (most recent call last):
    controller:       File "<string>", line 17, in <module>
    controller:       File "/tmp/pip_build_root/cryptography/setup.py", line 28, in <module>
    controller:         "cryptography requires setuptools 18.5 or newer, please upgrade to a "
    controller:     RuntimeError: cryptography requires setuptools 18.5 or newer, please upgrade to a newer version of setuptools
    controller:     Complete output from command python setup.py egg_info:
    controller:     Traceback (most recent call last):
    controller:
    controller:   File "<string>", line 17, in <module>
    controller:
    controller:   File "/tmp/pip_build_root/cryptography/setup.py", line 28, in <module>
    controller:
    controller:     "cryptography requires setuptools 18.5 or newer, please upgrade to a "
    controller:
    controller: RuntimeError: cryptography requires setuptools 18.5 or newer, please upgrade to a newer version of setuptools
    controller:
    controller: ----------------------------------------

To fix this I did the following:
vagrant@controller:~$ sudo pip install setuptools --upgrade
But still I have a problem to build Ansible ( I have openned a separate issue: #1).
Why don't you use official Ansible installation method on Ubuntu?
Like this:

$ sudo apt-get update && sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update && sudo apt-get install ansible
@lekum
Copy link
Owner

lekum commented Aug 2, 2018

Hi @teterkin !

Thanks for spotting the problem. This repo was for a workshop 3 years ago, and I'm sure many things have changed in Ansible (even in Ubuntu, this probably should be changed to support 18.04).

If you prepare a Pull Request with the changes, I will accept them 😉

@teterkin
Copy link
Author

teterkin commented Aug 3, 2018

Thank you! Let's see If I can make it. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants