Could not install packages due to an EnvironmentError: [Errno 13]
Permission denied: '/usr/lib/python2.7/site-packages/docker/__init__.py'
Consider using the `--user` option or check the permissions.

you can do this with --user but, again I prefer to use a virtualenv.

On Tue, Apr 9, 2019 at 3:47 PM Andrew Meyer <[email protected]> wrote:

> pip install docker-compose==1.22
> DEPRECATION: Python 2.7 will reach the end of its life on January 1st,
> 2020. Please upgrade your Python as Python 2.7 won't be maintained after
> that date. A future version of pip will drop support for Python 2.7.
> Requirement already satisfied: docker-compose==1.22 in
> /usr/lib/python2.7/site-packages (1.22.0)
> Requirement already satisfied: PyYAML<4,>=3.10 in
> /usr/lib64/python2.7/site-packages (from docker-compose==1.22) (3.10)
> Requirement already satisfied: backports.ssl-match-hostname>=3.5;
> python_version < "3.5" in /usr/lib/python2.7/site-packages (from
> docker-compose==1.22) (3.5.0.1)
> Requirement already satisfied: six<2,>=1.3.0 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (1.9.0)
> Collecting docker<4.0,>=3.4.1 (from docker-compose==1.22)
>   Using cached
> https://files.pythonhosted.org/packages/48/68/c3afca1a5aa8d2997ec3b8ee822a4d752cf85907b321f07ea86888545152/docker-3.7.2-py2.py3-none-any.whl
> Requirement already satisfied: texttable<0.10,>=0.9.0 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (0.9.1)
> Requirement already satisfied: dockerpty<0.5,>=0.4.1 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (0.4.1)
> Requirement already satisfied: ipaddress>=1.0.16; python_version < "3.3"
> in /usr/lib/python2.7/site-packages (from docker-compose==1.22) (1.0.16)
> Requirement already satisfied:
> requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (2.18.4)
> Requirement already satisfied: websocket-client<1.0,>=0.32.0 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (0.56.0)
> Requirement already satisfied: enum34<2,>=1.0.4; python_version < "3.4" in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (1.0.4)
> Requirement already satisfied: docopt<0.7,>=0.6.1 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (0.6.2)
> Requirement already satisfied: jsonschema<3,>=2.5.1 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (2.6.0)
> Requirement already satisfied: cached-property<2,>=1.2.0 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (1.5.1)
> Requirement already satisfied: docker-pycreds>=0.4.0 in
> /usr/lib/python2.7/site-packages (from
> docker<4.0,>=3.4.1->docker-compose==1.22) (0.4.0)
> Requirement already satisfied: urllib3<1.23,>=1.21.1 in
> /usr/lib/python2.7/site-packages (from
> requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose==1.22)
> (1.22)
> Requirement already satisfied: idna<2.7,>=2.5 in
> /usr/lib/python2.7/site-packages (from
> requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose==1.22)
> (2.6)
> Requirement already satisfied: chardet<3.1.0,>=3.0.2 in
> /usr/lib/python2.7/site-packages (from
> requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose==1.22)
> (3.0.4)
> Requirement already satisfied: certifi>=2017.4.17 in
> /usr/lib/python2.7/site-packages (from
> requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose==1.22)
> (2019.3.9)
> Requirement already satisfied: functools32; python_version == "2.7" in
> /usr/lib/python2.7/site-packages (from
> jsonschema<3,>=2.5.1->docker-compose==1.22) (3.2.3.post2)
> Installing collected packages: docker
> Could not install packages due to an EnvironmentError: [Errno 13]
> Permission denied: '/usr/lib/python2.7/site-packages/docker/__init__.py'
> Consider using the `--user` option or check the permissions.
>
>
>
>
> On Tuesday, April 9, 2019 at 2:44:52 PM UTC-5, Jonathan Lozada De La Matta
> wrote:
>>
>> that might explain why. You are installing the package under root and you
>> might be running as yourself. I suggest you use virtualenv and install pip
>> using a virtualenv.
>>
>> On Tue, Apr 9, 2019 at 3:41 PM Andrew Meyer <[email protected]> wrote:
>>
>>> For pip install I did:
>>> sudo pip install docker-compose==1.22.0
>>>
>>> Playbook
>>> https://github.com/geerlingguy/ansible-role-awx
>>>
>>>
>>> Please remember to reply to all if there are multiple recipients.
>>>
>>> Andrew Meyer
>>> [email protected]
>>> [email protected]
>>> 314-266-4837
>>>
>>>
>>> On Tue, Apr 9, 2019 at 2:30 PM Jonathan Lozada De La Matta <
>>> [email protected]> wrote:
>>>
>>>> how did you pip install ? and can we see the playbook?
>>>>
>>>> On Tue, Apr 9, 2019 at 3:26 PM Andrew Meyer <[email protected]> wrote:
>>>>
>>>>> I seem to be having an issue when trying to run this playbook for
>>>>> building AWX.
>>>>>
>>>>> When I go to run the ansible playbook I get the following error:
>>>>>
>>>>>         "ok: [localhost] => (item=environment.sh)",
>>>>>         "ok: [localhost] => (item=credentials.py)",
>>>>>         "ok: [localhost] => (item=docker-compose.yml)",
>>>>>         "",
>>>>>         "TASK [local_docker : Render SECRET_KEY file]
>>>>> ***********************************",
>>>>>         "ok: [localhost]",
>>>>>         "",
>>>>>         "TASK [local_docker : Start the containers]
>>>>> *************************************",
>>>>>         "fatal: [localhost]: FAILED! => {\"changed\": false, \"msg\":
>>>>> \"Unable to load docker-compose. Try `pip install docker-compose`. Error:
>>>>> cannot import name ImageNotFound\"}",
>>>>>         "\tto retry, use: --limit @/root/awx/installer/install.retry",
>>>>>         "",
>>>>>         "PLAY RECAP
>>>>> *********************************************************************",
>>>>>         "localhost                  : ok=8    changed=0
>>>>> unreachable=0    failed=1   "
>>>>>     ]
>>>>> }
>>>>>
>>>>> I was getting errors about docker-compose installation prior and tried
>>>>> installing the specific version the playbook calls for:
>>>>> pip freeze|grep -i docker
>>>>> DEPRECATION: Python 2.7 will reach the end of its life on January 1st,
>>>>> 2020. Please upgrade your Python as Python 2.7 won't be maintained after
>>>>> that date. A future version of pip will drop support for Python 2.7.
>>>>> docker-compose==1.22.0
>>>>> docker-py==1.10.6
>>>>> docker-pycreds==0.4.0
>>>>> dockerpty==0.4.1
>>>>>
>>>>>
>>>>> I'm not sure why this is not working.  I am running this against the
>>>>> localhost.
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Ansible Project" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To post to this group, send email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/ansible-project/6db44832-6056-4afe-b1f9-1332fd03e1dd%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/ansible-project/6db44832-6056-4afe-b1f9-1332fd03e1dd%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Jonathan lozada de la matta
>>>>
>>>> AUTOMATION PRACTICE
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "Ansible Project" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/ansible-project/5ypc54DVfMs/unsubscribe
>>>> .
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> [email protected].
>>>> To post to this group, send email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BKtE5iRUUJhjH8OLH%3D0vdmY55XPzfkjPvw1QVbEy1V_tA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BKtE5iRUUJhjH8OLH%3D0vdmY55XPzfkjPvw1QVbEy1V_tA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/CAEAR6cOb5iuw2Z89o2FLxgZVKKRAUdGKPRYP-dv4FiAeNRvrvA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/ansible-project/CAEAR6cOb5iuw2Z89o2FLxgZVKKRAUdGKPRYP-dv4FiAeNRvrvA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>>
>> Jonathan lozada de la matta
>>
>> AUTOMATION PRACTICE
>>
>>
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/14bb5271-b0fd-42fd-9345-47dc8f970803%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/14bb5271-b0fd-42fd-9345-47dc8f970803%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Jonathan lozada de la matta

AUTOMATION PRACTICE

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFYJA%2B%2BHTzDM9mcGPQ%2BjOragksxXN-kduPjqiF-Gp8HT65%3Dcuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to