Just in case anyone else, with the same lack of python and supervisord
knowledge comes alooking for the same problem:
#>python -V
Python 2.3.4
(remove old installation)
#> easy_install -m supervisor
Searching for supervisor
Best match: supervisor 3.0a7
Processing supervisor-3.0a7-py2.3.egg
Removing supervisor 3.0a7 from easy-install.pth file
Installing echo_supervisord_conf script to /usr/bin
Installing pidproxy script to /usr/bin
Installing supervisorctl script to /usr/bin
Installing supervisord script to /usr/bin
Using /usr/lib/python2.3/site-packages/supervisor-3.0a7-py2.3.egg
Because this distribution was installed --multi-version, before you can
import modules from this package in an application, you will need to
'import pkg_resources' and then use a 'require()' call similar to one of
these examples, in order to select the desired version:
pkg_resources.require("supervisor") # latest installed version
pkg_resources.require("supervisor==3.0a7") # this exact version
pkg_resources.require("supervisor>=3.0a7") # this version or higher
Processing dependencies for supervisor
Finished processing dependencies for supervisor
#> rm -fr /usr/lib/python2.3/site-packages/supervisor-3.0a7-py2.3.egg
(download + install previous version)
#> wget http://dist.supervisord.org/supervisor-3.0a4.tar.gz
#> tar zxf supervisor-3.0a4.tar.gz
[...]
#> cd supervisor-3.0a4
#> python setup.py install
[...]
(make config file and run supervisord)
#> echo_supervisord_conf > /etc/supervisord.conf
#> supervisord
#> echo '[program:foo]' >> /etc/supervisord.conf
#> echo 'command=/bin/cat' >> /etc/supervisord.conf
#> supervisorctl reload
#> supervisorctl status
foo RUNNING pid 32175, uptime 0:00:05
NB: I found the link to the distribution page (http://dist.supervisord.org/)
somewhat obfuscated.
You have to click on a 'manual' (installation manual?), and then select
section 2 'installing' to get the link. I was expecting a link from the
front page somewhere.
Still haven't actually got it doing any proper supervising yet, but at least
I have a version of it installed :)
2009/12/10 Tom Barrett <[email protected]>
> Hi Mike
>
> Thank you for the clarification.
>
> Looking at your release dates, there can be a siginicant time period (this
> is not a criticisim) between releases. As the nature of Supervisor is to
> provide stability and reliability to an environment, unless you are
> considering a release soon it might be better for me to try a previous
> version? Looking at your manual page (http://supervisord.org/manual) it
> appears that 3.0a4 is a recommended previous version? Or am I incorrectly
> assuming some kind of significance to 3.0a5 and 3.0a6 not being listed
> there?
>
> This issue leads to another. I'm an easy_install virgin! As lovely as
> easy_install is, there's a certain lack of easy_uninstall?
>
> Is this blog correct in how to uninstall supervisor so I can play with
> different versions?
> http://thingsilearned.com/2009/04/13/easy_install-uninstalling/
>
> > easy_install -m supervisor
> > rm /usr/lib/python2.3/site-packages/supervisor-3.0a7-py2.3.egg
>
> Tom
>
> 2009/12/9 Mike Naberezny <[email protected]>
>
> Hi Tom,
>>
>> On 12/9/09 4:45 AM, Tom Barrett wrote:
>> > But am getting a python error when running supervisord:
>> >
>> ...
>> > File "/usr/lib/python2.3/sre.py", line 179, in compile
>> > return _compile(pattern, flags)
>> > File "/usr/lib/python2.3/sre.py", line 230, in _compile
>> > raise error, v # invalid expression
>> > sre_constants.error: unexpected end of pattern
>> > #> python -V
>> > Python 2.3.4
>>
>> After we released Supervisor 3.0a7, we found a few incompatibilities with
>> Python 2.3. This is one of them. The error above is caused by the use of
>> regular expression syntax that was introduced in Python 2.4. This has
>> been
>> fixed in our Subversion repository for the next release.
>>
>> Regards,
>> Mike
>>
>> --
>> Mike Naberezny
>> Maintainable Software
>> http://maintainable.com
>> _______________________________________________
>> Supervisor-users mailing list
>> [email protected]
>> http://lists.supervisord.org/mailman/listinfo/supervisor-users
>>
>
>
_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users