building 1.0 on OSX

Hi,
I’m trying to build 1.0 on OS X
using
sheepchase:ansible-1.0 jmarcus$ sudo python2.7 setup.py install

or

sheepchase:ansible-1.0 jmarcus$ sudo make install

and I get:

cat: VERSION: No such file or directory
fatal: Not a git repository (or any of the parent directories): .git
Failed conversion of '' using format %Y-%m-%d %H:%M:%S’’
date: illegal time format
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] …
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
python setup.py install
DATA FILES=[(‘/usr/share/ansible/’, [‘./library/add_host’, ‘./library/apt’, ‘./library/apt_key’, ‘./library/apt_repository’, ‘./library/assemble’, ‘./library/async_status’, ‘./library/async_wrapper’, ‘./library/authorized_key’, ‘./library/command’, ‘./library/copy’, ‘./library/cron’, ‘./library/debug’, ‘./library/easy_install’, ‘./library/ec2’, ‘./library/ec2_facts’, ‘./library/facter’, ‘./library/fail’, ‘./library/fetch’, ‘./library/file’, ‘./library/fireball’, ‘./library/get_url’, ‘./library/git’, ‘./library/group’, ‘./library/group_by’, ‘./library/hg’, ‘./library/ini_file’, ‘./library/lineinfile’, ‘./library/mail’, ‘./library/mount’, ‘./library/mysql_db’, ‘./library/mysql_user’, ‘./library/nagios’, ‘./library/ohai’, ‘./library/pacman’, ‘./library/pause’, ‘./library/ping’, ‘./library/pip’, ‘./library/pkgin’, ‘./library/postgresql_db’, ‘./library/postgresql_user’, ‘./library/raw’, ‘./library/script’, ‘./library/seboolean’, ‘./library/selinux’, ‘./library/service’, ‘./library/setup’, ‘./library/shell’, ‘./library/slurp’, ‘./library/subversion’, ‘./library/supervisorctl’, ‘./library/svr4pkg’, ‘./library/sysctl’, ‘./library/template’, ‘./library/user’, ‘./library/virt’, ‘./library/wait_for’, ‘./library/yum’])]
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: ‘install_requires’
warnings.warn(msg)
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
changing mode of /usr/local/bin/ansible to 755
changing mode of /usr/local/bin/ansible-doc to 755
changing mode of /usr/local/bin/ansible-playbook to 755
changing mode of /usr/local/bin/ansible-pull to 755
running install_data
running install_egg_info
Removing /Library/Python/2.7/site-packages/ansible-1.0-py2.7.egg-info
Writing /Library/Python/2.7/site-packages/ansible-1.0-py2.7.egg-info

Am I do anything wrong?

sheepchase:ansible-1.0 jmarcus$ ansible cl001.domain.com -m ping
cl001.domain.com | FAILED => Traceback (most recent call last):
File “/Library/Python/2.7/site-packages/ansible/runner/init.py”, line 237, in _executor
exec_rc = self._executor_internal(host)
File “/Library/Python/2.7/site-packages/ansible/runner/init.py”, line 293, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port)
File “/Library/Python/2.7/site-packages/ansible/runner/init.py”, line 408, in _executor_internal_inner
tmp = self._make_tmp_path(conn)
File “/Library/Python/2.7/site-packages/ansible/runner/init.py”, line 510, in _make_tmp_path
result = self._low_level_exec_command(conn, cmd, None, sudoable=False)
File “/Library/Python/2.7/site-packages/ansible/runner/init.py”, line 448, in _low_level_exec_command
rc, stdin, stdout, stderr = conn.exec_command(cmd, tmp, sudo_user, sudoable=sudoable, executable=executable)
TypeError: exec_command() got an unexpected keyword argument ‘executable’

Thanks,
James

Can you run ansible from checkout? Did you have an older version of
ansible installed? If yes to both, then run

  mv /Library/Python/2.7/site-packages/ansible/
/Library/Python/2.7/site-packages/ansible.bak/

and do another make install

Hi, I'm trying to build 1.0 on OS X using sheepchase:ansible-1.0
jmarcus$ sudo python2.7 setup.py install or sheepchase:ansible-1.0
jmarcus$ sudo make install

and I get:

cat: VERSION: No such file or directory fatal: Not a git repository
(or any of the parent directories): .git Failed conversion of ``''
using format ``%Y-%m-%d %H:%M:%S'' date: illegal time format usage:
date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]]
... [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] python
setup.py install DATA FILES=[('/usr/share/ansible/',
['./library/add_host', './library/apt', './library/apt_key',
'./library/apt_repository', './library/assemble',
'./library/async_status', './library/async_wrapper',
'./library/authorized_key', './library/command', './library/copy',
'./library/cron', './library/debug', './library/easy_install',
'./library/ec2', './library/ec2_facts', './library/facter',
'./library/fail', './library/fetch', './library/file',
'./library/fireball', './library/get_url', './library/git',
'./library/group', './library/group_by', './library/hg',
'./library/ini_file', './library/lineinfile', './library/mail',
'./library/mount', './library/mysql_db', './library/mysql_user',
'./library/nagios', './library/ohai', './library/pacman',
'./library/pause', './library/ping', './library/pip',
'./library/pkgin', './library/postgresql_db',
'./library/postgresql_user', './library/raw', './library/script',
'./library/seboolean', './library/selinux', './library/service',
'./library/setup', './library/shell', './library/slurp',
'./library/subversion', './library/supervisorctl',
'./library/svr4pkg', './library/sysctl', './library/template',
'./library/user', './library/virt', './library/wait_for',
'./library/yum'])]
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267:

UserWarning: Unknown distribution option: 'install_requires'

If you want, you can also skip doing a make install.

source ./hacking/env-setup

And run from checkout.

This also just sets some environment variables that you can also set
on your own.

thanks this solved my problem.

James

Michael,
I was doing the install from the tar ball because I understood that you didn’t want users running from checkout because it was difficult to open bugs against a checkout and not a version.

Is that correct?

James

On the contrary, the more users running from checkout the better.

We typically test the devel tip so well we barely ever need to
backport anything.

BTW, I maintain a MacPorts package for ansible if you are using MacPorts.

$ sudo port -v sync && sudo port -v install ansible

Blair