Bug 1057426

Summary: [abrt] fedmsg-notify: pkg_resources.py:1353:_get:IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/trytond_health-2.2.1-py2.7.egg/EGG-INFO/top_level.txt'
Product: [Fedora] Fedora Reporter: Robert Hinson <robert.hinson>
Component: fedmsg-notifyAssignee: Luke Macken <lmacken>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: lmacken, pfrields, rbean
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/7511c9ca97896c607d4926815f1f7c028a883566
Whiteboard: abrt_hash:015241701eeb2c77be54e6e1df77110ba5ffb33b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-24 16:51:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Robert Hinson 2014-01-24 05:00:50 UTC
Version-Release number of selected component:
fedmsg-notify-0.5.3-1.fc19

Additional info:
reporter:       libreport-2.1.10
cmdline:        /usr/bin/python /bin/fedmsg-notify-daemon
dso_list:       python-setuptools-0.6.49-1.fc19.noarch
executable:     /bin/fedmsg-notify-daemon
kernel:         3.12.7-200.fc19.i686.PAE
runlevel:       N 3
type:           Python
uid:            1000

Truncated backtrace:
pkg_resources.py:1353:_get:IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/trytond_health-2.2.1-py2.7.egg/EGG-INFO/top_level.txt'

Traceback (most recent call last):
  File "/bin/fedmsg-notify-daemon", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2897, in <module>
    add_activation_listener(lambda dist: dist.activate())
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 712, in subscribe
    callback(dist)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2897, in <lambda>
    add_activation_listener(lambda dist: dist.activate())
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2329, in activate
    self.insert_on(path)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2436, in insert_on
    self.check_version_conflict()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2475, in check_version_conflict
    for modname in self._get_metadata('top_level.txt'):
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2323, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1246, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1238, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1353, in _get
    stream = open(path, 'rb')
IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/trytond_health-2.2.1-py2.7.egg/EGG-INFO/top_level.txt'

Local variables in innermost frame:
path: '/usr/lib/python2.7/site-packages/trytond_health-2.2.1-py2.7.egg/EGG-INFO/top_level.txt'
self: <pkg_resources.PathMetadata instance at 0x9dad6cc>

Comment 1 Robert Hinson 2014-01-24 05:00:59 UTC
Created attachment 854758 [details]
File: backtrace

Comment 2 Robert Hinson 2014-01-24 05:01:02 UTC
Created attachment 854759 [details]
File: environ

Comment 3 Luke Macken 2014-01-24 16:51:06 UTC
Hm, I don't think this is a fedmsg-notify issue.

It looks to me like at some point you did a `sudo easy_install trytond-health` which installed it to your global site-packages, which it is unable to read. Can you `rpm -qf /usr/lib/python2.7/site-packages/trytond_health-2.2.1-py2.7.egg` to ensure it's not provided by an RPM file, and then do a `sudo pip uninstall trytond-health` to remove it.