permission denied prettytable-0.7.2.egg-info/top_level.txt

Bug #1210520 reported by Mate Lakat
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Mate Lakat

Bug Description

As I ran stack.sh on a precis box with xenserver, I end up with:

Traceback (most recent call last):
  File "/opt/stack/keystone/bin/keystone-all", line 20, in <module>
    from paste import deploy
  File "/usr/lib/python2.7/dist-packages/paste/deploy/__init__.py", line 3, in <module>
    from paste.deploy.loadwsgi import *
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 8, in <module>
    import pkg_resources
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2727, in <module>
    add_activation_listener(lambda dist: dist.activate())
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 700, in subscribe
    callback(dist)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2727, in <lambda>
    add_activation_listener(lambda dist: dist.activate())
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2227, in activate
    self.insert_on(path)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2334, in insert_on
    self.check_version_conflict()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2373, in check_version_conflict
    for modname in self._get_metadata('top_level.txt'):
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2221, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1209, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1201, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1316, in _get
    stream = open(path, 'rb')
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/prettytable-0.7.2.egg-info/top_level.txt'

This seems to fix the issue:
sudo chmod -R o+r /usr/local/lib/python2.7/dist-packages

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.openstack.org/41091

Changed in devstack:
assignee: nobody → Mate Lakat (mate-lakat)
status: New → In Progress
Revision history for this message
Dean Troyer (dtroyer) wrote :

This is being addressed in https://review.openstack.org/#/c/41209/

Revision history for this message
Terri Yu (terriyu) wrote :

Seems like the patch dtroyer mentioned https://review.openstack.org/#/c/41209/ fixed the problem.

Revision history for this message
Terri Yu (terriyu) wrote :

That patch was merged today.

Revision history for this message
Mate Lakat (mate-lakat) wrote :

Thanks guys, marking it as fixed.

Changed in devstack:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.