I want to upgrade vom boto 1.9b to 2.0b1.
This code is working for me in 1.9b without problems:
calling_format=boto.s3.connection.OrdinaryCallingFormat()
conn_s3 = boto.s3.Connection(aws_access_key_id=accesskey,
aws_secret_access_key=secretaccesskey,
is_secure=False,
host="s3.amazonaws.com",
calling_format=calling_format,
path="/")
But with 2.0b1 I have this output:
AttributeError: 'module' object has no attribute 'Connection'
I changed the boto.s3.Connection to boto.s3.connection and the result is this output:
TypeError: 'module' object is not callable
Is this a known issue? What can I do to solve this?
Best Regards,
Christian
--
You received this message because you are subscribed to the Google Groups "boto-users" group.
To post to this group, send email to boto-...@googlegroups.com.
To unsubscribe from this group, send email to boto-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/boto-users?hl=en.
this is the output.
Traceback (most recent call last):
File "/home/baun/Google_AppEngine/google_appengine/google/appengine/ext/webapp/__init__.py", line 511, in __call__
handler.get(*groups)
File "/home/baun/workspace/koalacloud/s3/S3.py", line 75, in get
conn_s3 = logins3(username)
File "/home/baun/workspace/koalacloud/library.py", line 327, in logins3
conn_s3 = boto.s3.Connection(aws_access_key_id=accesskey,
AttributeError: 'module' object has no attribute 'Connection'
Best Regards,
Christian
> > boto-users+...@googlegroups.com<boto-users%2Bunsu...@googlegroups.com>
boto.s3.Connection
should be:
boto.s3.connection.Connection.
> To unsubscribe from this group, send email to boto-users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/boto-users?hl=en.
>
>
--
Chris Moyer
This is working. :-(
calling_format=boto.s3.connection.OrdinaryCallingFormat()
conn_s3 = boto.s3.connection.Connection(aws_access_key_id=accesskey,
aws_secret_access_key=secretaccesskey,
is_secure=False,
host="s3.amazonaws.com",
calling_format=calling_format,
path="/")
The output is:
Traceback (most recent call last):
File "/home/baun/Google_AppEngine/google_appengine/google/appengine/ext/webapp/__init__.py", line 511, in __call__
handler.get(*groups)
File "/home/baun/workspace/koalacloud/s3/S3.py", line 75, in get
conn_s3 = logins3(username)
File "/home/baun/workspace/koalacloud/library.py", line 327, in logins3
conn_s3 = boto.s3.connection.Connection(aws_access_key_id=accesskey,
AttributeError: 'module' object has no attribute 'Connection'
Best Regards,
Christian
Traceback (most recent call last):
File "/home/baun/Google_AppEngine/google_appengine/google/appengine/ext/webapp/__init__.py", line 511, in __call__
handler.get(*groups)
File "/home/baun/workspace/koalacloud/s3/S3.py", line 75, in get
conn_s3 = logins3(username)
File "/home/baun/workspace/koalacloud/library.py", line 334, in logins3
path="/")
TypeError: 'module' object is not callable
calling_format=boto.s3.connection.OrdinaryCallingFormat()
conn_s3 = boto.s3.connection(aws_access_key_id=accesskey,
aws_secret_access_key=secretaccesskey,
is_secure=False,
host="s3.amazonaws.com",
calling_format=calling_format,
path="/")
Best Regards,
Christian
Am Mittwoch, 11. August 2010 schrieb Mitchell Garnaat:
> > boto-users+...@googlegroups.com<boto-users%2Bunsu...@googlegroups.com>
boto.s3.connection.S3Connection
Thank's a lot Chris.