Opened 11 years ago
Closed 11 years ago
#43187 closed defect (fixed)
py-dateutil: File permissions set incorrectly for egg-info
Reported by: | cdeil (Christoph Deil) | Owned by: | dh@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | petrrr | |
Port: | py-dateutil |
Description
The file permissions in the egg-info folder for py27-dateutil are set incorrectly (read is forbidden, but should be allowed):
$ ls -lh /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/python_dateutil-2.2-py2.7.egg-info/ total 48 -rw------- 1 root wheel 970B Mar 27 23:21 PKG-INFO -rw------- 1 root wheel 563B Mar 27 23:21 SOURCES.txt -rw------- 1 root wheel 1B Mar 27 23:21 dependency_links.txt -rw------- 1 root wheel 1B Nov 1 09:29 not-zip-safe -rw------- 1 root wheel 3B Mar 27 23:21 requires.txt -rw------- 1 root wheel 9B Mar 27 23:21 top_level.txt
This causes installation of some other ports (py27-pyregion in my case) to fail: https://gist.github.com/cdeil/9950045
Change History (6)
comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | dh@… removed |
---|---|
Owner: | changed from macports-tickets@… to dh@… |
comment:2 Changed 11 years ago by petrrr
Cc: | Peter.Danecek@… added |
---|
comment:5 Changed 11 years ago by petrrr
This problem breaks also already installed port (import fails), when these depend in some way on py-dateutil
. Correcting the rights to 644
solves the problem.
Python 2.7.6 (default, Nov 18 2013, 15:12:51) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from obspy.core import read Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/obspy/__init__.py", line 43, in <module> read.__doc__ % make_format_plugin_table("waveform", "read", numspaces=4) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/obspy/core/util/base.py", line 391, in make_format_plugin_table "obspy.plugin.%s.%s" % (group, name), method) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 351, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2363, in load_entry_point return ep.load() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2087, in load if require: self.require(env, installer) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2100, in require working_set.resolve(self.dist.requires(self.extras),env,installer))) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 633, in resolve requirements.extend(dist.requires(req.extras)[::-1]) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2291, in requires dm = self._dep_map File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2277, in _dep_map for extra,reqs in split_sections(self._get_metadata(name)): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2715, in split_sections for line in yield_lines(s): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 1989, in yield_lines for ss in strs: File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2305, in _get_metadata for line in self.get_metadata_lines(name): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 1369, in get_metadata_lines return yield_lines(self.get_metadata(name)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 1361, in get_metadata return self._get(self._fn(self.egg_info,name)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 1470, in _get stream = open(path, 'rb') IOError: [Errno 13] Permission denied: '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/python_dateutil-2.2-py2.7.egg-info/requires.txt' >>>
comment:6 Changed 11 years ago by mf2k (Frank Schima)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Cc Me!