Discussion:
[Supervisor-users] Not able to install supervisor in CentOS 6.9 using easy_install
r***@gmail.com
2018-01-24 01:53:52 UTC
Permalink
I am working in a Docker container which is being created from CentOS 6.
This is basically how the `Dockerfile` looks like:

```
FROM centos:centos6
RUN yum update -y && \
yum install -y epel-release && \
yum install -y iproute python-setuptools hostname inotify-tools
yum-utils which && \
yum clean all && \
easy_install supervisor
ADD container-files /
VOLUME ["/data"]
ENTRYPOINT ["/config/bootstrap.sh"]
```

When I run `docker build .` for build and test the image it ends up with
the following error:

```
...
Loaded plugins: fastestmirror, ovl
Cleaning repos: base epel extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
Searching for supervisor
Reading http://pypi.python.org/simple/supervisor/
Couldn't find index page for 'supervisor' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for supervisor
error: Could not find suitable distribution for
Requirement.parse('supervisor')
```

I have tried also installing first pip and then install supervisor using
pip as follow:

```
RUN yum update -y && \
yum install -y epel-release && \
yum install -y iproute python-setuptools hostname inotify-tools
yum-utils which && \
yum clean all && \
easy_install pip && \
pip install supervisor
```

And in this case it ends up with the following error:

```
...
Complete!
Loaded plugins: fastestmirror, ovl
Cleaning repos: base epel extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
Searching for pip
Reading http://pypi.python.org/simple/pip/
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')
```

- I do have Internet connection
- I am not behind any firewall and/or proxy
- I do not have any AV since I am building the container from Fedora 27
- I do not have any IPTables and/or SELinux enabled
- Everything else does install properly the only thing failing is
`supervisor`

I am missing something here? Is not supervisor supported by CentOS6? What's
the right way to install this?

Note: I could try installing directly from EPEL repos but the version is
really old and I will be missing a lot of features:

```
================================================================================
Package Arch Version Repository
Size
================================================================================
Installing:
inotify-tools x86_64 3.14-1.el6 epel
46 k
iproute x86_64 2.6.32-54.el6 base
389 k
python-setuptools noarch 0.6.10-3.el6 base
336 k
supervisor noarch 2.1-9.el6 epel
292 k
yum-utils noarch 1.1.30-40.el6 base
113 k
Installing for dependencies:
dbus-glib x86_64 0.86-6.el6 base
170 k
hwdata noarch 0.233-18.1.el6 base
1.3 M
initscripts x86_64 9.03.58-1.el6.centos.2 updates
949 k
iptables x86_64 1.4.7-16.el6 base
254 k
iputils x86_64 20071127-24.el6 base
121 k
libdrm x86_64 2.4.65-2.el6 base
136 k
libpciaccess x86_64 0.13.4-1.el6 base
24 k
libxml2-python x86_64 2.7.6-21.el6_8.1 base
325 k
plymouth x86_64 0.8.3-29.el6.centos base
89 k
policycoreutils x86_64 2.0.83-30.1.el6_8 base
663 k
python-meld3 x86_64 0.6.7-1.el6 epel
71 k
redhat-logos noarch 60.0.14-12.el6.centos base
15 M
sysvinit-tools x86_64 2.87-6.dsf.el6 base
60 k
udev x86_64 147-2.73.el6_8.2 base
358 k
upstart x86_64 0.6.5-16.el6 base
177 k
util-linux-ng x86_64 2.17.2-12.28.el6_9.1 updates
1.6 M
```

Reynier Perez Mira
P: (786) 580 7572
E: ***@gmail.com
W: http://www.dynamotechnology.com
Paul Lockaby
2018-01-24 16:19:02 UTC
Permalink
I ran into the same issue on CentOS 6 because CentOS 6 defaults to Python 2.6 and PyPI dropped support for using pip on Python 2.6. The only real work around is to download supervisord and its dependencies (specifically meld3) and build them manually, in order, with "python setup.py install".
Post by r***@gmail.com
```
FROM centos:centos6
RUN yum update -y && \
yum install -y epel-release && \
yum install -y iproute python-setuptools hostname inotify-tools yum-utils which && \
yum clean all && \
easy_install supervisor
ADD container-files /
VOLUME ["/data"]
ENTRYPOINT ["/config/bootstrap.sh"]
```
```
...
Loaded plugins: fastestmirror, ovl
Cleaning repos: base epel extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
Searching for supervisor
Reading http://pypi.python.org/simple/supervisor/
Couldn't find index page for 'supervisor' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for supervisor
error: Could not find suitable distribution for Requirement.parse('supervisor')
```
```
RUN yum update -y && \
yum install -y epel-release && \
yum install -y iproute python-setuptools hostname inotify-tools yum-utils which && \
yum clean all && \
easy_install pip && \
pip install supervisor
```
```
...
Complete!
Loaded plugins: fastestmirror, ovl
Cleaning repos: base epel extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
Searching for pip
Reading http://pypi.python.org/simple/pip/
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')
```
- I do have Internet connection
- I am not behind any firewall and/or proxy
- I do not have any AV since I am building the container from Fedora 27
- I do not have any IPTables and/or SELinux enabled
- Everything else does install properly the only thing failing is `supervisor`
I am missing something here? Is not supervisor supported by CentOS6? What's the right way to install this?
```
================================================================================
Package Arch Version Repository Size
================================================================================
inotify-tools x86_64 3.14-1.el6 epel 46 k
iproute x86_64 2.6.32-54.el6 base 389 k
python-setuptools noarch 0.6.10-3.el6 base 336 k
supervisor noarch 2.1-9.el6 epel 292 k
yum-utils noarch 1.1.30-40.el6 base 113 k
dbus-glib x86_64 0.86-6.el6 base 170 k
hwdata noarch 0.233-18.1.el6 base 1.3 M
initscripts x86_64 9.03.58-1.el6.centos.2 updates 949 k
iptables x86_64 1.4.7-16.el6 base 254 k
iputils x86_64 20071127-24.el6 base 121 k
libdrm x86_64 2.4.65-2.el6 base 136 k
libpciaccess x86_64 0.13.4-1.el6 base 24 k
libxml2-python x86_64 2.7.6-21.el6_8.1 base 325 k
plymouth x86_64 0.8.3-29.el6.centos base 89 k
policycoreutils x86_64 2.0.83-30.1.el6_8 base 663 k
python-meld3 x86_64 0.6.7-1.el6 epel 71 k
redhat-logos noarch 60.0.14-12.el6.centos base 15 M
sysvinit-tools x86_64 2.87-6.dsf.el6 base 60 k
udev x86_64 147-2.73.el6_8.2 base 358 k
upstart x86_64 0.6.5-16.el6 base 177 k
util-linux-ng x86_64 2.17.2-12.28.el6_9.1 updates 1.6 M
```
Reynier Perez Mira
P: (786) 580 7572
W: http://www.dynamotechnology.com
_______________________________________________
Supervisor-users mailing list
https://lists.supervisord.org/mailman/listinfo/supervisor-users
r***@gmail.com
2018-01-24 16:25:58 UTC
Permalink
Paul is right, I had to do the following:

FROM centos:centos6
RUN yum update -y && \
yum install -y epel-release && \
yum install -y \
iproute \
python-setuptools \
hostname \
inotify-tools \
yum-utils \
which \
python-meld3 \
python-pip && \
yum clean all && \
pip install supervisor


Now is allowing me to move on and install supervisord.

Thanks

Reynier Perez Mira
P: (786) 580 7572
E: ***@gmail.com
W: http://www.dynamotechnology.com
Post by Paul Lockaby
I ran into the same issue on CentOS 6 because CentOS 6 defaults to Python
2.6 and PyPI dropped support for using pip on Python 2.6. The only real
work around is to download supervisord and its dependencies (specifically
meld3) and build them manually, in order, with "python setup.py install".
Post by r***@gmail.com
I am working in a Docker container which is being created from CentOS 6.
```
FROM centos:centos6
RUN yum update -y && \
yum install -y epel-release && \
yum install -y iproute python-setuptools hostname inotify-tools
yum-utils which && \
Post by r***@gmail.com
yum clean all && \
easy_install supervisor
ADD container-files /
VOLUME ["/data"]
ENTRYPOINT ["/config/bootstrap.sh"]
```
When I run `docker build .` for build and test the image it ends up with
```
...
Loaded plugins: fastestmirror, ovl
Cleaning repos: base epel extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
Searching for supervisor
Reading http://pypi.python.org/simple/supervisor/
Couldn't find index page for 'supervisor' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for supervisor
error: Could not find suitable distribution for
Requirement.parse('supervisor')
Post by r***@gmail.com
```
I have tried also installing first pip and then install supervisor using
```
RUN yum update -y && \
yum install -y epel-release && \
yum install -y iproute python-setuptools hostname inotify-tools
yum-utils which && \
Post by r***@gmail.com
yum clean all && \
easy_install pip && \
pip install supervisor
```
```
...
Complete!
Loaded plugins: fastestmirror, ovl
Cleaning repos: base epel extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
Searching for pip
Reading http://pypi.python.org/simple/pip/
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')
```
- I do have Internet connection
- I am not behind any firewall and/or proxy
- I do not have any AV since I am building the container from Fedora 27
- I do not have any IPTables and/or SELinux enabled
- Everything else does install properly the only thing failing is
`supervisor`
Post by r***@gmail.com
I am missing something here? Is not supervisor supported by CentOS6?
What's the right way to install this?
Post by r***@gmail.com
Note: I could try installing directly from EPEL repos but the version is
```
============================================================
====================
Post by r***@gmail.com
Package Arch Version
Repository Size
Post by r***@gmail.com
============================================================
====================
Post by r***@gmail.com
inotify-tools x86_64 3.14-1.el6 epel
46 k
Post by r***@gmail.com
iproute x86_64 2.6.32-54.el6 base
389 k
Post by r***@gmail.com
python-setuptools noarch 0.6.10-3.el6 base
336 k
Post by r***@gmail.com
supervisor noarch 2.1-9.el6 epel
292 k
Post by r***@gmail.com
yum-utils noarch 1.1.30-40.el6 base
113 k
Post by r***@gmail.com
dbus-glib x86_64 0.86-6.el6 base
170 k
Post by r***@gmail.com
hwdata noarch 0.233-18.1.el6 base
1.3 M
Post by r***@gmail.com
initscripts x86_64 9.03.58-1.el6.centos.2 updates
949 k
Post by r***@gmail.com
iptables x86_64 1.4.7-16.el6 base
254 k
Post by r***@gmail.com
iputils x86_64 20071127-24.el6 base
121 k
Post by r***@gmail.com
libdrm x86_64 2.4.65-2.el6 base
136 k
Post by r***@gmail.com
libpciaccess x86_64 0.13.4-1.el6 base
24 k
Post by r***@gmail.com
libxml2-python x86_64 2.7.6-21.el6_8.1 base
325 k
Post by r***@gmail.com
plymouth x86_64 0.8.3-29.el6.centos base
89 k
Post by r***@gmail.com
policycoreutils x86_64 2.0.83-30.1.el6_8 base
663 k
Post by r***@gmail.com
python-meld3 x86_64 0.6.7-1.el6 epel
71 k
Post by r***@gmail.com
redhat-logos noarch 60.0.14-12.el6.centos base
15 M
Post by r***@gmail.com
sysvinit-tools x86_64 2.87-6.dsf.el6 base
60 k
Post by r***@gmail.com
udev x86_64 147-2.73.el6_8.2 base
358 k
Post by r***@gmail.com
upstart x86_64 0.6.5-16.el6 base
177 k
Post by r***@gmail.com
util-linux-ng x86_64 2.17.2-12.28.el6_9.1 updates
1.6 M
Post by r***@gmail.com
```
Reynier Perez Mira
P: (786) 580 7572
W: http://www.dynamotechnology.com
_______________________________________________
Supervisor-users mailing list
https://lists.supervisord.org/mailman/listinfo/supervisor-users
Continue reading on narkive:
Loading...