[Bug 947424] Re: boto/utils.py makes use of boto.provider, but doesn't import it

Scott Moser smoser at ubuntu.com
Mon Mar 5 20:40:34 UTC 2012


reported upstream as https://github.com/boto/boto/issues/614 .

** Description changed:

  This is really a dupe of bug 945355, but they plan to work around it,
  rather than fix it within boto.
  
  I'm seeing issues where:
  
  provider = boto.provider.get_default()
  
  is called, but it isn't imported:
  ...
  File "/usr/lib/python2.7/dist-packages/boto/utils.py", line 91, in canonical_string
  provider = boto.provider.get_default()
  AttributeError: 'module' object has no attribute 'provider'
  ...
  
  Adding an import of boto.provider into boto/utils.py resolves this
  issue.
  
  Thanks.
+ 
+ This is easily reproduced with:
+ 
+   $ python -c 'import boto.utils; boto.utils.get_aws_metadata({})'
+ Traceback (most recent call last):
+   File "<string>", line 1, in <module>
+   File "/usr/lib/python2.7/dist-packages/boto/utils.py", line 159, in get_aws_metadata
+     provider = boto.provider.get_default()
+ AttributeError: 'module' object has no attribute 'provider'

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to python-boto in Ubuntu.
https://bugs.launchpad.net/bugs/947424

Title:
  boto/utils.py makes use of boto.provider, but doesn't import it

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-boto/+bug/947424/+subscriptions



More information about the Ubuntu-server-bugs mailing list