LoginSignup
3
2

More than 5 years have passed since last update.

sphinxでのIOErrorを直す

Posted at

ある時にsudo port upgrade outdatedすると、それ以降にsphinxでビルドしようとすると、怒られる件。エラー文の最後は次のようなもの。

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'

問題は、このtop_level.txtというファイルの権限が、

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

となっているからダメだと言われている。

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

permissionを開けて上げると、エラーがでなくなった。なんでこんなことになっているのかは、未だ不明。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2