Description of problem: After installing Spawning I was unable to use it as pkg_resources was not found. $ spawning --factory=spawning.django_factory.config_factory container.settings Traceback (most recent call last): File "/usr/bin/spawning", line 5, in ? from pkg_resources import load_entry_point ImportError: No module named pkg_resources Version-Release number of selected component (if applicable): $ rpm -q Spawning Spawning-0.9.3-0.rc2.4.el5 How reproducible: Only tried it on my CentOS box. Steps to Reproduce: 1. Install Spawning via yum 2. Attempt to run a Django application via Spawning 3. See the error Actual results: Traceback (most recent call last): File "/usr/bin/spawning", line 5, in ? from pkg_resources import load_entry_point ImportError: No module named pkg_resources Expected results: Spawning running :-) Additional info: Even after installing setuptools I did end up getting an error due to the use of the with statement. A patch seems like it will be needed to backport the with statement out. $ spawning --factory=spawning.django_factory.config_factory container.settings Traceback (most recent call last): File "/usr/bin/spawning", line 7, in ? sys.exit( File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 236, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 2097, in load_entry_point return ep.load() File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1830, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/usr/lib/python2.4/site-packages/spawning/spawning_controller.py", line 187 with open(self.config.get('pidfile'), 'w') as fd:
paste-deploy seems to be needed as well as a dependency.
Argh. :( Will take a look and see what happened here. Thanks for the report... let me know if you see any further issues/missing deps.
I have a back port patch I can paste up for the code as well. I'll try to do that today. It's very simple.
Created attachment 431524 [details] spawning without the use of with This fixed the issue I had over the use of with.
Hey Steve. I haven't done much with Django, and was mostly using Spawning for wsgi stuff. Would you be willing to co-maintain and add these fixes? (the with fix of course shouldn't be needed for rawhide/F13) If not, no worries, I can just submit these changes and get you or someone else using the Django side of things to test before I push?
I am willing to comaintain. I am planning on using Spawning on el5/centos5 as well as Fedora both for Django and direct WSGI.
Excellent. Feel free to apply in pkgdb and I will approve...
Done.
Spawning-0.9.3-0.rc2.5.el5 has been submitted as an update for Fedora EPEL 5. http://admin.fedoraproject.org/updates/Spawning-0.9.3-0.rc2.5.el5
Spawning-0.9.3-0.rc2.5.el5 has been pushed to the Fedora EPEL 5 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update Spawning'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/Spawning-0.9.3-0.rc2.5.el5
Spawning-0.9.3-0.rc2.5.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.