Bug 923376 - python-pip-1.2.1-2.fc18: pkg_resources.py:1320:_get:IOError: [Errno 13] Permission denied
Summary: python-pip-1.2.1-2.fc18: pkg_resources.py:1320:_get:IOError: [Errno 13] Permi...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pip
Version: 18
Hardware: All
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Flink
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0e27c1a1ac344e10508d2a77908...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-19 17:22 UTC by Robert Muil
Modified: 2014-02-05 20:07 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-02-05 20:07:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.82 KB, text/plain)
2013-03-19 17:22 UTC, Robert Muil
no flags Details
File: core_backtrace (1.16 KB, text/plain)
2013-03-19 17:22 UTC, Robert Muil
no flags Details
File: environ (2.80 KB, text/plain)
2013-03-19 17:22 UTC, Robert Muil
no flags Details

Description Robert Muil 2013-03-19 17:22:17 UTC
Description of problem:
using 'sudo python-pip' to install packages results in incorrect permissions (no permissions for 'other') in the system directory, which means packages must often be manually assigned permissions to be able to use them (to import psychopy for example). all python packages are installed with owner:group=root:root so the 'r' bit of other needs to be added (and the 'x' bit of other for directories)

i have installed python-pip normally with 'sudo yum install python-pip'

Version-Release number of selected component:
python-pip-1.2.1-2.fc18

Additional info:
cmdline:        /usr/bin/python /bin/python-pip install -U pip
dso_list:       python-setuptools-0.6.28-3.fc18.noarch
executable:     /bin/python-pip
kernel:         3.8.3-201.fc18.i686
uid:            1000

Truncated backtrace:
pkg_resources.py:1320:_get:IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/PsychoPy-1.76.00-py2.7.egg-info/top_level.txt'

Traceback (most recent call last):
  File "/bin/python-pip", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2835, in <module>
    add_activation_listener(lambda dist: dist.activate())
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 704, in subscribe
    callback(dist)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2835, in <lambda>
    add_activation_listener(lambda dist: dist.activate())
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2259, in activate
    self.insert_on(path)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2366, in insert_on
    self.check_version_conflict()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2405, in check_version_conflict
    for modname in self._get_metadata('top_level.txt'):
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2253, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1213, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1205, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1320, in _get
    stream = open(path, 'rb')
IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/PsychoPy-1.76.00-py2.7.egg-info/top_level.txt'

Local variables in innermost frame:
path: '/usr/lib/python2.7/site-packages/PsychoPy-1.76.00-py2.7.egg-info/top_level.txt'
self: <pkg_resources.PathMetadata instance at 0xb749914c>

Comment 1 Robert Muil 2013-03-19 17:22:20 UTC
Created attachment 712815 [details]
File: backtrace

Comment 2 Robert Muil 2013-03-19 17:22:22 UTC
Created attachment 712817 [details]
File: core_backtrace

Comment 3 Robert Muil 2013-03-19 17:22:24 UTC
Created attachment 712819 [details]
File: environ

Comment 4 Fedora End Of Life 2013-12-21 12:18:10 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Fedora End Of Life 2014-02-05 20:07:29 UTC
Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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