Fix IOError on sphinx

When I try to build with sphinx after sudo port upgrade outdated at one time, I get angry. The end of the error statement looks like this:

IOError: [Errno 13] Permission denied: '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/httplib2-0.8-py2.7.egg/EGG-INFO/top_level.txt'

The problem is that the permissions on this file called top_level.txt

-rw-r-----  1 root  wheel     9B Feb 13 12:55 top_level.txt

It is said that it is useless because it is.

sudo chmod a+r /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/httplib2-0.8-py2.7.egg/EGG-INFO/top_level.txt

When I opened permission and raised it, the error disappeared. It is still unknown why this is happening.

Recommended Posts

Fix IOError on sphinx
Sphinx-autobuild (0.5.2) on Windows7, Python 3.5.1, Sphinx 1.3.5
Install Sphinx on Mac OS X