I have been having a tough time getting appengine to work with google
storage for developers. I have poked around gslib, google storage
documentation, and a few random blog posts and stackexchange pages but can't
seem to get it to work.
I am currently trying to import boto into my project, but am getting a
syntax error on a "with" command in the boto/connection.py file. Is boto the
recommended way to connect to GS? Is Appengine's version of Python too old
for the boto package? Any help would be appreciated.
Best,
Mark
Code:
import os
from google.appengine.dist import use_library
use_library('django', '1.2')
import wsgiref.handlers
import logging
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext import db
"""
Google Storage Setup
"""
os.environ['BOTO_CONFIG'] = 'boto.cfg'
import boto
import sys
Error:
Traceback (most recent call last): File
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py",
line 701, in __call__ handler.get(*groups)
File "/base/data/home/apps/callzapapp/1.352600261032840817/main.py", line
44, in get uri.create_bucket() File
"/base/data/home/apps/callzapapp/1.352600261032840817/boto/storage_uri.py",
line 316, in create_bucket conn = self.connect()
File
"/base/data/home/apps/callzapapp/1.352600261032840817/boto/storage_uri.py",
line 83, in connect from boto.s3.connection import OrdinaryCallingFormat
File
"/base/data/home/apps/callzapapp/1.352600261032840817/boto/s3/connection.py",
line 28, in <module> from boto.connection import AWSAuthConnection File
"/base/data/home/apps/callzapapp/1.352600261032840817/boto/connection.py",
line 237 with self.mutex: ^
SyntaxError: invalid syntax
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/vxKwaSs5CqUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.