aramsanのブログ

八方塞がりの年にあえて挑戦し始めるエンジニアリングブログ

meld3のバージョン依存でsupervisordが起動しない!

掲題の通り、supervisordのインストールではまりました。

supervisordからプロセスが起動できない。

 [root@localhost]# supervisorctl
Traceback (most recent call last):
File "/usr/bin/supervisorctl", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in <module>
working_set.require(__requires__)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: meld3>=0.6.5

 うーん、meld3のバージョンを見てみよう

 [root@localhost]# pip list
distribute (0.6.10)
ethtool (0.6)
firstboot (1.110)
gyp (0.1)
iniparse (0.3.1)
meld3 (1.0.2)
pip (7.0.3)
pycurl (7.19.0)
pygpgme (0.1)
python-meh (0.11)
scdate (1.9.60)
setuptools (0.6rc11)
slip (0.2.20)
supervisor (3.1.3)
urlgrabber (3.9.1)
yum-metadata-parser (1.1.2)

 0.65以上なんだけど。

ググってたら、こんなスレを見つけました。

github.com

なるほど。meld3のバージョンを1.0.0に落とすと動くとのこと

[root@localhost]# pip install meld3==1.0.0
Collecting meld3==1.0.0
/usr/lib/python2.6/site-packages/pip-7.0.3-py2.6.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading meld3-1.0.0.tar.gz
Installing collected packages: meld3
Found existing installation: meld3 1.0.2
Uninstalling meld3-1.0.2:
Successfully uninstalled meld3-1.0.2
Running setup.py install for meld3
Successfully installed meld3-1.0.0 

 これで、supervisord起動

[root@localhost ~]# supervisorctl start all
[root@localhost ~]# 

 動いた!