I have upgraded my django version from 1.5.2(if i don't remember bad) to 1.6 and now when i execute my project on localhost i get this error:

IOError at /
[Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/httplib2-0.8-py2.7.egg/EGG-INFO/top_level.txt'
Request Method: GET
Request URL:    http://localhost:8000/
Django Version: 1.6.1
Exception Type: IOError
Exception Value:    
[Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/httplib2-0.8-py2.7.egg/EGG-INFO/top_level.txt'
Exception Location: /usr/local/lib/python2.7/dist-packages/pkg_resources.py in _get, line 1320
Python Executable:  /usr/bin/python
Python Version: 2.7.5
有帮助吗?

解决方案

It looks like a Permission Error. Try to change the permissions with the chmod command (http://www.thegeekstuff.com/2010/06/chmod-command-examples/).

For example

sudo chmod -R 755 problematic_folder
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top