# Error on Ansible tower cli on OSX

**URL:** <https://forum.ansible.com/t/error-on-ansible-tower-cli-on-osx/17660>\
**Category:** Ansible Project\
**Created:** [March 4, 2015, 11:29am UTC](https://forum.ansible.com/t/error-on-ansible-tower-cli-on-osx/17660 "2015-03-04T11:29:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JuanJose\_Vidanez](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@JuanJose\_Vidanez](https://forum.ansible.com/u/JuanJose_Vidanez)\
**Post date:** [March 4, 2015, 11:29am UTC](https://forum.ansible.com/t/error-on-ansible-tower-cli-on-osx/17660/1 "2015-03-04T11:29:04Z")

</div>

Hello all,  
I’m trying to use the tower-cli on OSx and I’m getting the following error:

**➜**  **~** sudo pip install ansible-tower-cli

The directory ‘/Users/jvidanez/Library/Logs/pip’ or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.

The directory ‘/Users/jvidanez/Library/Caches/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.

The directory ‘/Users/jvidanez/Library/Caches/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.

Collecting ansible-tower-cli

Downloading ansible-tower-cli-2.1.0.tar.gz

Requirement already satisfied (use --upgrade to upgrade): click\>=2.1 in /Library/Python/2.7/site-packages (from ansible-tower-cli)

Requirement already satisfied (use --upgrade to upgrade): colorama\>=0.3.1 in /Library/Python/2.7/site-packages (from ansible-tower-cli)

Requirement already satisfied (use --upgrade to upgrade): dict.sorted==1.0.0 in /Library/Python/2.7/site-packages (from ansible-tower-cli)

Requirement already satisfied (use --upgrade to upgrade): requests\>=2.3.0 in /Library/Python/2.7/site-packages (from ansible-tower-cli)

Requirement already satisfied (use --upgrade to upgrade): six\>=1.7.2 in /Library/Python/2.7/site-packages (from ansible-tower-cli)

Installing collected packages: ansible-tower-cli

Running setup.py install for ansible-tower-cli

changing mode of build/scripts-2.7/tower-cli from 644 to 755

changing mode of /usr/local/bin/tower-cli to 755

Successfully installed ansible-tower-cli-2.1.0

**➜**  **~** tower-cli

Traceback (most recent call last):

File “/usr/local/bin/tower-cli”, line 80, in

cli()

File “/Library/Python/2.7/site-packages/click/core.py”, line 610, in **call**

return self.main(\*args, \*\*kwargs)

File “/Library/Python/2.7/site-packages/click/core.py”, line 589, in main

with self.make\_context(prog\_name, args, \*\*extra) as ctx:

File “/Library/Python/2.7/site-packages/click/core.py”, line 506, in make\_context

self.parse\_args(ctx, args)

File “/Library/Python/2.7/site-packages/click/core.py”, line 896, in parse\_args

echo(ctx.get\_help())

File “/Library/Python/2.7/site-packages/click/core.py”, line 368, in get\_help

return self.command.get\_help(self)

File “/Library/Python/2.7/site-packages/click/core.py”, line 717, in get\_help

self.format\_help(ctx, formatter)

File “/Library/Python/2.7/site-packages/click/core.py”, line 732, in format\_help

self.format\_options(ctx, formatter)

File “/Library/Python/2.7/site-packages/click/core.py”, line 837, in format\_options

self.format\_commands(ctx, formatter)

File “/Library/Python/2.7/site-packages/click/core.py”, line 881, in format\_commands

for subcommand in self.list\_commands(ctx):

File “/usr/local/bin/tower-cli”, line 45, in list\_commands

res = tower\_cli.get\_resource(filename[:-3])

File “/Library/Python/2.7/site-packages/tower\_cli/ **init**.py”, line 32, in get\_resource

module = importlib.import\_module(‘tower\_cli.resources.%s’ % name)

File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/ **init**.py”, line 37, in import\_module

**import** (name)

File “/Library/Python/2.7/site-packages/tower\_cli/resources/credential.py”, line 18, in

from tower\_cli import models

File “/Library/Python/2.7/site-packages/tower\_cli/models/ **init**.py”, line 18, in

from tower\_cli.models.base import BaseResource, Resource, MonitorableResource

File “/Library/Python/2.7/site-packages/tower\_cli/models/base.py”, line 125, in

class BaseResource(six.with\_metaclass(ResourceMeta)):

File “/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six.py”, line 566, in with\_metaclass

return meta(“NewBase”, bases, {})

File “/Library/Python/2.7/site-packages/tower\_cli/models/base.py”, line 112, in **new**

raise TypeError(‘Resource subclasses must have an `endpoint`.’)

TypeError: Resource subclasses must have an `endpoint`.

**➜**  **~**

**Any suggestions?**

---

<div class="post-metadata">

**Author:** ![Daniel\_Siechniewicz](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@Daniel\_Siechniewicz](https://forum.ansible.com/u/Daniel_Siechniewicz)\
**Post date:** [March 9, 2015, 10:59am UTC](https://forum.ansible.com/t/error-on-ansible-tower-cli-on-osx/17660/2 "2015-03-09T10:59:37Z")

</div>

Just so that it doesn’t stay unanswered here, it’s also been created and resolved under this issue: [https://github.com/ansible/tower-cli/issues/41](https://github.com/ansible/tower-cli/issues/41)

Basically python version in OSX 10.10.2 (python 2.7.7) is what causes this problem. Python update or downgrade fixes it.

Regards,  
Daniel
