Upload image to S3 with python webapp2
<p>I want to upload the image to Amazon S3. I am using webapp2 python. After some exploration i find out that boto could be useful to upload the images to S3. I installed the boto but when i import it the following error occurred:</p>

<pre><code>  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\python\sandbox.py", line 964, in load_module
    raise ImportError('No module named %s' % fullname)
ImportError: No module named _winreg
</code></pre>

<p>Import Code:</p>

<pre><code>import boto
s3 = boto.connect_s3()
</code></pre>

<p>Python version: 2.7 | Boto latest version.</p>

<p>I did not found any example which can help me to start. I am going to use the S3 service for the first time. Can any body help me with it or suggest me any other method which i can use</p>

<p>Thank You.</p>

<p>Your code seems to have a dependency on the <a href="https://docs.python.org/2/library/_winreg.html" rel="nofollow">_winreg</a> module, as evinced by the error message</p>

<blockquote>
  <p>ImportError: No module named _winreg</p>
</blockquote>

<p>Since you're running your code on the AppEngine within Windows, the issue may be happening because your code needs Windows registry access, and it is unable to access the _winreg module because AppEngine's sandbox blocks the access. You can find some answers <a href="http://stackoverflow.com/questions/28640983/unable-to-import-winreg-in-python-2-7-9-virtual-environment">here</a>.</p>

<p>Try running your code in a local Python environment rather than under AppEngine, and see if that fixes the issue.</p>

python google-app-engine amazon-web-services amazon-s3 boto