Bug 613615 - Spawning Requires setuptools
Summary: Spawning Requires setuptools
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: Spawning
Version: el5
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-12 12:32 UTC by Steve Milner
Modified: 2010-08-13 22:37 UTC (History)
1 user (show)

Fixed In Version: Spawning-0.9.3-0.rc2.5.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-13 22:37:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
spawning without the use of with (889 bytes, patch)
2010-07-13 17:12 UTC, Steve Milner
no flags Details | Diff

Description Steve Milner 2010-07-12 12:32:12 UTC
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:

Comment 1 Steve Milner 2010-07-12 12:41:28 UTC
paste-deploy seems to be needed as well as a dependency.

Comment 2 Kevin Fenzi 2010-07-12 15:42:15 UTC
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.

Comment 3 Steve Milner 2010-07-13 14:42:52 UTC
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.

Comment 4 Steve Milner 2010-07-13 17:12:39 UTC
Created attachment 431524 [details]
spawning without the use of with

This fixed the issue I had over the use of with.

Comment 5 Kevin Fenzi 2010-07-16 20:44:17 UTC
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?

Comment 6 Steve Milner 2010-07-16 20:49:48 UTC
I am willing to comaintain. I am planning on using Spawning on el5/centos5 as well as Fedora both for Django and direct WSGI.

Comment 7 Kevin Fenzi 2010-07-16 20:52:33 UTC
Excellent. Feel free to apply in pkgdb and I will approve...

Comment 8 Steve Milner 2010-07-18 23:38:39 UTC
Done.

Comment 9 Fedora Update System 2010-07-19 01:33:20 UTC
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

Comment 10 Fedora Update System 2010-07-21 20:06:13 UTC
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

Comment 11 Fedora Update System 2010-08-13 22:37:45 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.