The permissions changed on the egg directory. They need a chmod u+r. This change to 0.8.0 causes fink to install an unreadable egg dir. I'm on mac osx 10.8.
ls -la python2/httplib2.egg-info/ total 32 drwxr-x--- 6 schwehr staff 204 Mar 6 12:40 . drwxr-x--- 6 schwehr staff 204 Mar 6 12:40 .. -rw-r----- 1 schwehr staff 2337 Mar 6 12:40 PKG-INFO -rw-r----- 1 schwehr staff 787 Mar 6 12:40 SOURCES.txt -rw-r----- 1 schwehr staff 1 Mar 6 12:40 dependency_links.txt -rw-r----- 1 schwehr staff 9 Mar 6 12:40 top_level.txt
When installed, this happens: ls -l /sw/lib/python2.7/site-packages/httplib2-0.8-py2.7.egg-info/ total 32 -rw-r----- 1 root admin 2337 Mar 13 17:55 PKG-INFO -rw-r----- 1 root admin 787 Mar 13 17:55 SOURCES.txt -rw-r----- 1 root admin 1 Mar 13 17:55 dependency_links.txt -rw-r----- 1 root admin 9 Mar 13 17:55 top_level.txt
/sw/bin/python2.7 setup.py build Traceback (most recent call last): File "setup.py", line 2, in <module> from setuptools import setup File "/sw/lib/python2.7/site-packages/setuptools/init.py", line 2, in <module> from setuptools.extension import Extension, Library File "/sw/lib/python2.7/site-packages/setuptools/extension.py", line 5, in <module> from setuptools.dist import _get_unpatched File "/sw/lib/python2.7/site-packages/setuptools/dist.py", line 6, in <module> from setuptools.command.install import install File "/sw/lib/python2.7/site-packages/setuptools/command/init.py", line 8, in <module> from setuptools.command import install_scripts File "/sw/lib/python2.7/site-packages/setuptools/command/install_scripts.py", line 3, in <module> from pkg_resources import Distribution, PathMetadata, ensure_directory File "/sw/lib/python2.7/site-packages/pkg_resources.py", line 2825, in <module> add_activation_listener(lambda dist: dist.activate()) File "/sw/lib/python2.7/site-packages/pkg_resources.py", line 710, in subscribe callback(dist) File "/sw/lib/python2.7/site-packages/pkg_resources.py", line 2825, in <lambda> add_activation_listener(lambda dist: dist.activate()) File "/sw/lib/python2.7/site-packages/pkg_resources.py", line 2257, in activate self.insert_on(path) File "/sw/lib/python2.7/site-packages/pkg_resources.py", line 2364, in insert_on self.check_version_conflict() File "/sw/lib/python2.7/site-packages/pkg_resources.py", line 2403, in check_version_conflict for modname in self._get_metadata('top_level.txt'): File "/sw/lib/python2.7/site-packages/pkg_resources.py", line 2251, in _get_metadata for line in self.get_metadata_lines(name): File "/sw/lib/python2.7/site-packages/pkg_resources.py", line 1219, in get_metadata_lines return yield_lines(self.get_metadata(name)) File "/sw/lib/python2.7/site-packages/pkg_resources.py", line 1211, in get_metadata return self._get(self._fn(self.egg_info,name)) File "/sw/lib/python2.7/site-packages/pkg_resources.py", line 1326, in _get stream = open(path, 'rb') IOError: [Errno 13] Permission denied: '/sw/lib/python2.7/site-packages/httplib2-0.8-py2.7.egg-info/top_level.txt'
execution of /sw/bin/python2.7 failed, exit code 1
execution of /tmp/fink.xTMpz failed, exit code 1
Comment #1
Posted on Mar 14, 2013 by Helpful BirdLook like macports hit the same issue: http://trac.macports.org/ticket/36193 Thanks to fangism for making the connection.
Comment #2
Posted on Aug 3, 2013 by Helpful MonkeyThis is causing distribution issues for me on our servers - python is not run as root(!) and hence my web processes cannot read the files. This is 5 months old, any idea when it will be addressed?
Comment #3
Posted on Jan 2, 2014 by Happy BirdHey this issue has been open since March and remains unaddressed... whats going on with it?
Comment #4
Posted on Jan 21, 2014 by Quick BirdThis is crazy. It breaks any installation which doesn't run as root (ie. any installation by a sane person). Why isn't this a high priority?!
Status: New
Labels:
Type-Defect
Priority-Medium