Dan Sheffner
unread,Jul 22, 2010, 1:03:36 AM7/22/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to boto-...@googlegroups.com
Mitchell Garnaat sent me a bunch of spot instance links for EC2 and moved me over to this board. Thanks again.
Is there any easy way to check what version of boto is running? My problem is that I ran into an 1.8 version instead of 1.9. I saw in the __init__.py file both have Version and UserAgent. Maybe I'm missing something obvious but I did this:
Version = '1.9b'
UserAgent = 'Boto/%s (%s)' % (Version, sys.platform)
config = Config()
def getVersion():
return Version
def getUserAgent():
return UserAgent
For this output:
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import boto
>>> print boto.getVersion()
1.9b
>>> print boto.getUserAgent()
Boto/1.9b (linux2)
>>> if 1.9 >= float(boto.getVersion()[0:-1]):
... print "Spot Instances Supported"
... else:
... print "Please install boto 1.9 or greater"
... sys.exit()
Thanks again and keep up the good work.