If you get a: IOError: [Errno 13] Permission denied

141 views
Skip to first unread message

Christer Sjöholm

unread,
Jun 3, 2015, 5:02:34 AM6/3/15
to Goobook googlegroup

Answer copied from https://stackoverflow.com/questions/27870024/google-gmail-api-installed-app-shows-ioerror-13-from-module-ssl-py-w-o-sudo

The httplib2 installer sets incorrect permissions for its httplib2/cacerts.txt file. One solution is to simply make its files readable by anyone by running

chmod o+r -R /usr/local/lib/python2.7/dist-packages/httplib2-0.9-py2.7.egg

However, it may be better to uninstall the version installed by pip, and use your operating system's package manager instead, which probably has the correct permissions for all files. On Debian, this could be accomplished with

pip uninstall httplib2 apt-get install python-httplib2



--
Christer Sjöholm
Reply all
Reply to author
Forward
0 new messages