title: error: [errno 13] Permission denied - What permissions does bottle py require?
body: <p>I am trying to run bottle py but getting this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/home/pi/Desktop/gggg.py", line 176, in &lt;module&gt;
      run(host='somehost', port=81)
    File "/usr/lib/python2.7/dist-packages/bottle.py", line 2426, in run
      server.run(app)
    File "/usr/lib/python2.7/dist-packages/bottle.py", line 2123, in run
      srv = make_server(self.host, self.port, handler, **self.options)
    File "/usr/lib/python2.7/wsgiref/simple_server.py", line 144, in make_server
      server = server_class((host, port), handler_class)
    File "/usr/lib/python2.7/SocketServer.py", line 419, in __init__
      self.server_bind()
    File "/usr/lib/python2.7/wsgiref/simple_server.py", line 48, in server_bind
      HTTPServer.server_bind(self)
    File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
      SocketServer.TCPServer.server_bind(self)
    File "/usr/lib/python2.7/SocketServer.py", line 430, in server_bind
      self.socket.bind(self.server_address)
    File "/usr/lib/python2.7/socket.py", line 224, in meth
      return getattr(self._sock,name)(*args)
  error: [Errno 13] Permission denied
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>I am logged in as "pi". Logging in as root user solves the issue. My question is what permissions does the bottle py and python need to run (which folders and what permissions)?</p>
  
  <p>Edit:</p>
  
  <p>Not sure if it matters but my python files are in Desktop dir. I also set the permissions of the folder/sub-folder to read write for all. </p>