title: KeyError: 'getpwuid(): uid not found: 381206'
body: <p>I'm running the following code to get owner of all files:</p>
  
  <pre><code>try:
      st=os.stat(file_path)
      uid=st.st_uid
      userinfo=pwd.getpwuid(st.st_uid)
      owner=pwd.getpwuid(st.st_uid).pw_name
      file_info.append((size,file_path,owner))
  except OSError as e:
      pass
  </code></pre>
  
  <p>However, in the middle of the processing, it throws up the following error:</p>
  
  <blockquote>
    <p>KeyError: 'getpwuid(): uid not found: 381206'</p>
  </blockquote>
  
  <p>Do anyone know about this error? Are there any known issues with <code>pwd</code> in <code>Python 2.6</code> ?</p>
  
  <p>Please notice that this is just the part of the code I considered relevant, I can provide more if required.</p>