You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the purchase of RI's the script starts throwing the following error.
ec2-costs us-east-1
/Users/pbeam/github/ec2-cost-tools/ec2_costs/main.py:24: Warning: Click detected the use of the unicode_literals future import. This is heavily discouraged because it can introduce subtle bugs in your code. You should instead use explicit u"" literals for your unicode strings. For more information see http://click.pocoo.org/python3/
def main(region, show_expirations=False):
Traceback (most recent call last):
File "/Users/pbeam/github/ec2-cost-tools/venv/bin/ec2-costs", line 9, in
load_entry_point('ec2-costs==0.1.0', 'console_scripts', 'ec2-costs')()
File "/Users/pbeam/github/ec2-cost-tools/venv/lib/python2.7/site-packages/click/core.py", line 700, in call
return self.main(_args, *_kwargs)
File "/Users/pbeam/github/ec2-cost-tools/venv/lib/python2.7/site-packages/click/core.py", line 680, in main
rv = self.invoke(ctx)
File "/Users/pbeam/github/ec2-cost-tools/venv/lib/python2.7/site-packages/click/core.py", line 873, in invoke
return ctx.invoke(self.callback, *_ctx.params)
File "/Users/pbeam/github/ec2-cost-tools/venv/lib/python2.7/site-packages/click/core.py", line 508, in invoke
return callback(_args, **kwargs)
File "/Users/pbeam/github/ec2-cost-tools/ec2_costs/main.py", line 43, in main
result = get_reserved_analysis(conn)
File "/Users/pbeam/github/ec2-cost-tools/ec2_costs/init.py", line 143, in get_reserved_analysis
covered_price = matched.recurring_charges[0].amount
IndexError: list index out of range
The text was updated successfully, but these errors were encountered:
The problem is with the python version, if you are using less than python 2.7 than you will get this warning.
Solution:
1> Either upgrade your python version to 2.7
2> Use virtualenv using python2.7 and than install this package after activating the virtualenv
After the purchase of RI's the script starts throwing the following error.
ec2-costs us-east-1
/Users/pbeam/github/ec2-cost-tools/ec2_costs/main.py:24: Warning: Click detected the use of the unicode_literals future import. This is heavily discouraged because it can introduce subtle bugs in your code. You should instead use explicit u"" literals for your unicode strings. For more information see http://click.pocoo.org/python3/
def main(region, show_expirations=False):
Traceback (most recent call last):
File "/Users/pbeam/github/ec2-cost-tools/venv/bin/ec2-costs", line 9, in
load_entry_point('ec2-costs==0.1.0', 'console_scripts', 'ec2-costs')()
File "/Users/pbeam/github/ec2-cost-tools/venv/lib/python2.7/site-packages/click/core.py", line 700, in call
return self.main(_args, *_kwargs)
File "/Users/pbeam/github/ec2-cost-tools/venv/lib/python2.7/site-packages/click/core.py", line 680, in main
rv = self.invoke(ctx)
File "/Users/pbeam/github/ec2-cost-tools/venv/lib/python2.7/site-packages/click/core.py", line 873, in invoke
return ctx.invoke(self.callback, *_ctx.params)
File "/Users/pbeam/github/ec2-cost-tools/venv/lib/python2.7/site-packages/click/core.py", line 508, in invoke
return callback(_args, **kwargs)
File "/Users/pbeam/github/ec2-cost-tools/ec2_costs/main.py", line 43, in main
result = get_reserved_analysis(conn)
File "/Users/pbeam/github/ec2-cost-tools/ec2_costs/init.py", line 143, in get_reserved_analysis
covered_price = matched.recurring_charges[0].amount
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: