Bug 953834

Summary: missing dependencies python-setuptools collectd
Product: [Fedora] Fedora EPEL Reporter: Piotr Popieluch <piotr1212>
Component: python-buckyAssignee: Jonathan Steffan <jonathansteffan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: el6CC: james.juran, jonathansteffan, piotr1212, tmz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: python-bucky-0.2.6-3.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-02 06:37:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Piotr Popieluch 2013-04-19 09:48:59 UTC
Description of problem:
After installing python-bucky it doesnt run because of missing dependencies.

without python-setuptools:
# /usr/bin/bucky
Traceback (most recent call last):
  File "/usr/bin/bucky", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

without collectd:
# /usr/bin/bucky
Traceback (most recent call last):
  File "/usr/bin/bucky", line 9, in <module>
    load_entry_point('bucky==0.2.3', 'console_scripts', 'bucky')()
  File "/usr/lib/python2.6/site-packages/bucky/main.py", line 151, in main
    servers.append(stype(sampleq, cfg))
  File "/usr/lib/python2.6/site-packages/bucky/collectd.py", line 283, in __init__
    self.parser = CollectDParser(cfg.collectd_types)
  File "/usr/lib/python2.6/site-packages/bucky/collectd.py", line 131, in __init__
    self.types = CollectDTypes(types_dbs=types_dbs)
  File "/usr/lib/python2.6/site-packages/bucky/collectd.py", line 86, in __init__
    raise ConfigError("Unable to locate types.db")
bucky.errors.ConfigError: Unable to locate types.db



Version-Release number of selected component (if applicable):

python-bucky-0.2.3-1.el6.noarch


How reproducible:
Install bucky, uninstall python-setuptools collectd

Steps to Reproduce:
1. yum erase python-setuptools collectd
2. yum install python-bucky
3. /usr/bin/bucky
  
Actual results:

bucky fails on missing dependencies

Expected results:

bucky to run

Additional info:

Comment 1 James Juran 2013-09-03 19:19:48 UTC
confirmed same issue

Comment 2 Jonathan Steffan 2013-09-19 23:23:19 UTC
Thanks for the bug report. I will send an update to fix these dependency requirements.

Comment 3 Jonathan Steffan 2013-09-19 23:47:12 UTC
I will be running a test shortly, but the types.db is specifically a collectd dependency. I don't believe python-setuptools is needed at runtime.

Comment 4 Fedora Update System 2013-09-20 00:26:52 UTC
python-bucky-0.2.6-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/python-bucky-0.2.6-2.fc18

Comment 5 Fedora Update System 2013-09-20 00:27:00 UTC
python-bucky-0.2.6-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-bucky-0.2.6-2.fc20

Comment 6 Fedora Update System 2013-09-20 00:27:08 UTC
python-bucky-0.2.6-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/python-bucky-0.2.6-2.fc19

Comment 7 Fedora Update System 2013-09-20 00:27:15 UTC
python-bucky-0.2.6-2.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/python-bucky-0.2.6-2.el6

Comment 8 Fedora Update System 2013-09-20 00:27:24 UTC
python-bucky-0.2.6-2.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/python-bucky-0.2.6-2.el5

Comment 9 Fedora Update System 2013-09-20 18:56:23 UTC
Package python-bucky-0.2.6-2.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-bucky-0.2.6-2.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-17255/python-bucky-0.2.6-2.fc20
then log in and leave karma (feedback).

Comment 10 Todd Zullinger 2013-09-21 00:37:57 UTC
Hi Jonathan,

(In reply to Jonathan Steffan from comment #3)
> I will be running a test shortly, but the types.db is specifically a
> collectd dependency. I don't believe python-setuptools is needed at runtime.

On an EL6 host, I get this without python-setuptools installed:

$ sudo /usr/bin/bucky /etc/bucky/bucky.conf
Traceback (most recent call last):
  File "/usr/bin/bucky", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

$ rpm -qf /usr/lib/python2.6/site-packages/pkg_resources.pyc
python-setuptools-0.6.10-3.el6.noarch

I don't know if this is changed in current fedora releases, but as late as f17 it was still provided by python-setuptools.

I believe python-setuptools is required as well as collectd.

Thanks. :)

Comment 11 Jonathan Steffan 2013-09-24 16:16:01 UTC
Thanks for confirming. I've done more builds to add the python-setuptools Requires and will issue an update as soon as those are complete.

Comment 12 Fedora Update System 2013-09-24 16:30:22 UTC
python-bucky-0.2.6-3.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/python-bucky-0.2.6-3.el6

Comment 13 Fedora Update System 2013-09-24 16:30:33 UTC
python-bucky-0.2.6-3.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/python-bucky-0.2.6-3.fc19

Comment 14 Fedora Update System 2013-09-24 16:30:44 UTC
python-bucky-0.2.6-3.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/python-bucky-0.2.6-3.fc18

Comment 15 Fedora Update System 2013-09-24 16:30:55 UTC
python-bucky-0.2.6-3.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/python-bucky-0.2.6-3.el5

Comment 16 Fedora Update System 2013-09-24 16:31:09 UTC
python-bucky-0.2.6-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-bucky-0.2.6-3.fc20

Comment 17 Fedora Update System 2013-09-25 17:17:52 UTC
Package python-bucky-0.2.6-3.el5:
* should fix your issue,
* was pushed to the Fedora EPEL 5 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing python-bucky-0.2.6-3.el5'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2013-11683/python-bucky-0.2.6-3.el5
then log in and leave karma (feedback).

Comment 18 Fedora Update System 2013-10-02 06:37:33 UTC
python-bucky-0.2.6-3.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 Fedora Update System 2013-10-17 18:06:44 UTC
python-bucky-0.2.6-3.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 20 Fedora Update System 2013-10-17 18:08:46 UTC
python-bucky-0.2.6-3.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 21 Fedora Update System 2013-10-18 19:47:08 UTC
python-bucky-0.2.6-3.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 22 Fedora Update System 2013-10-18 20:03:47 UTC
python-bucky-0.2.6-3.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.