whiskerlabs / ansible-python Goto Github PK
View Code? Open in Web Editor NEWAn Ansible role for installing a sane Python execution environment.
License: MIT License
An Ansible role for installing a sane Python execution environment.
License: MIT License
TASK: [whiskerlabs.python | configure a makefile for readline 6.2] ************
failed: [www2] => {"changed": true, "cmd": "./configure --disable-shared --enable-static --prefix=/tmp/python/readline", "delta": "0:00:00.191346", "end": "2015-10-30 22:59:56
.356111", "rc": 1, "start": "2015-10-30 22:59:56.164765", "warnings": []}
stderr: configure: error: in /tmp/python/readline-6.2': configure: error: no acceptable C compiler found in $PATH See
config.log' for more details.
stdout: checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
Beginning configuration for readline-6.2 for x86_64-unknown-linux-gnu
checking whether make sets $(MAKE)... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
FATAL: all hosts have already failed -- aborting
Hello ,
the task inside tasks/main.yml named "remove sandbox directory" .
Wish to know why we are deleting sandbox directory , because of this task the play is not idempotent.
Must be there some genuine reason for this.
Any chance of creating tags for versions so if an update happens we don't get automatically upgraded?
From the bottom of https://galaxy.ansible.com/intro
Versions
If you applied any tags to your repository, Galaxy will automatically display a “version” for each tag. This means users can choose the version (tag) to download.
The default behavior, if there are no tags, is to make the “HEAD” version available. This means users downloading the role will always get the latest from the github repository.
To import new tags, trigger a re-import from the My Roles page anytime.
TASK: [whiskerlabs.python | upgrade packaging tools] **************************
<45.79.9.93> ESTABLISH CONNECTION FOR USER: root
<45.79.9.93> REMOTE_MODULE pip name=setuptools executable=/usr/local/bin/pip state=latest
<45.79.9.93> EXEC sshpass -d8 ssh -C -vvv -o ForwardAgent=yes -o GSSAPIAuthentication=no -o PubkeyAuthentication=no -o User=root -o ConnectTimeout=10 45.79.9.9
3 /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python'
failed: [neomonolith] => (item=setuptools) => {"cmd": "/usr/local/bin/pip install -U setuptools", "failed": true, "item": "setuptools"}
msg: stdout: Collecting setuptools
Downloading setuptools-21.2.1-py2.py3-none-any.whl (509kB)
Installing collected packages: setuptools
Found existing installation: setuptools 20.7.0
Uninstalling setuptools-20.7.0:
Successfully uninstalled setuptools-20.7.0
Successfully installed setuptools
:stderr: Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in
load_entry_point('pip==8.1.1', 'console_scripts', 'pip')()
File "/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/init.py", line 217, in main
return command.main(cmd_args)
File "/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/basecommand.py", line 246, in main
pip_version_check(session)
File "/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/utils/outdated.py", line 102, in pip_version_check
installed_version = get_installed_version("pip")
File "/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/utils/init.py", line 848, in get_installed_version
working_set = pkg_resources.WorkingSet()
File "/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/pkg_resources/init.py", line 626, in init
self.add_entry(entry)
File "/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/pkg_resources/init.py", line 682, in add_entry
for dist in find_distributions(entry, True):
File "/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/pkg_resources/init.py", line 2080, in find_eggs_in_zip
if metadata.has_metadata('PKG-INFO'):
File "/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/pkg_resources/init.py", line 1610, in has_metadata
return self.egg_info and self._has(self._fn(self.egg_info, name))
File "/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/pkg_resources/init.py", line 1968, in _has
return zip_path in self.zipinfo or zip_path in self._index()
File "/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/pkg_resources/init.py", line 1848, in zipinfo
return self._zip_manifests.load(self.loader.archive)
File "/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/pkg_resources/init.py", line 1788, in load
mtime = os.stat(path).st_mtime
OSError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/site-packages/setuptools-20.7.0-py2.7.egg'
I've run into cases where upgrading setuptools (via the python_upgrade_packaging_tools
role variable) fails, I believe due to conflicts with the existing python-setuptools
package installed with apt. Similar issues have been filed against pip: pypa/pip#2438, pypa/pip#2545
Pretty strange
TASK: [whiskerlabs.python | download source tarballs] *************************
<45.79.9.93> ESTABLISH CONNECTION FOR USER: root
<45.79.9.93> REMOTE_MODULE get_url dest=/tmp/python/readline-6.2.tar.gz url=ftp://ftp.cwru.edu/pub/bash/readline-6.2.tar.gz
<45.79.9.93> EXEC sshpass -d7 ssh -C -vvv -o ForwardAgent=yes -o GSSAPIAuthentication=no -o PubkeyAuthentication=no -o User=root -o ConnectTimeout=10 45.79.9.93 /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python'
failed: [neomonolith] => (item={'url': u'ftp://ftp.cwru.edu/pub/bash/readline-6.2.tar.gz', 'dest': u'/tmp/python/readline-6.2.tar.gz'}) => {"dest": "/tmp/python/readline-6.2.tar.gz", "failed": true, "item": {"dest": "/tmp/python/readline-6.2.tar.gz", "url": "ftp://ftp.cwru.edu/pub/bash/readline-6.2.tar.gz"}, "response": "Request failed: ", "state": "absent", "status_code": -1, "url": "ftp://ftp.cwru.edu/pub/bash/readline-6.2.tar.gz"}
Resolving ftp.cwru.edu (ftp.cwru.edu)... 52.87.62.244, 50.17.163.19
Connecting to ftp.cwru.edu (ftp.cwru.edu)|52.87.62.244|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/bash ... done.
==> SIZE readline-6.2.tar.gz ... 2277926
==> PASV ...
couldn't connect to 172.22.8.106 port 32086: Connection timed out
Retrying.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.