# building 1.0 on OSX

**URL:** <https://forum.ansible.com/t/building-1-0-on-osx/12291>\
**Category:** Ansible Project\
**Created:** [February 4, 2013, 8:35pm UTC](https://forum.ansible.com/t/building-1-0-on-osx/12291 "2013-02-04T20:35:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![James8](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@James8](https://forum.ansible.com/u/James8)\
**Post date:** [February 4, 2013, 8:35pm UTC](https://forum.ansible.com/t/building-1-0-on-osx/12291/1 "2013-02-04T20:35:37Z")

</div>

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](http://cl001.domain.com) -m ping  
[cl001.domain.com](http://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

---

<div class="post-metadata">

**Author:** ![CWS](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@CWS](https://forum.ansible.com/u/CWS)\
**Post date:** [February 4, 2013, 8:46pm UTC](https://forum.ansible.com/t/building-1-0-on-osx/12291/2 "2013-02-04T20:46:33Z")

</div>

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

&nbsp;&nbsp;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'

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [February 4, 2013, 9:02pm UTC](https://forum.ansible.com/t/building-1-0-on-osx/12291/3 "2013-02-04T21:02:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![James8](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@James8](https://forum.ansible.com/u/James8)\
**Post date:** [February 4, 2013, 9:11pm UTC](https://forum.ansible.com/t/building-1-0-on-osx/12291/4 "2013-02-04T21:11:15Z")

</div>

thanks this solved my problem.

James

---

<div class="post-metadata">

**Author:** ![James8](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@James8](https://forum.ansible.com/u/James8)\
**Post date:** [February 4, 2013, 9:27pm UTC](https://forum.ansible.com/t/building-1-0-on-osx/12291/5 "2013-02-04T21:27:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [February 4, 2013, 9:51pm UTC](https://forum.ansible.com/t/building-1-0-on-osx/12291/6 "2013-02-04T21:51:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Blair\_Zajac](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@Blair\_Zajac](https://forum.ansible.com/u/Blair_Zajac)\
**Post date:** [February 5, 2013, 2:36am UTC](https://forum.ansible.com/t/building-1-0-on-osx/12291/7 "2013-02-05T02:36:42Z")

</div>

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

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

Blair
