Miserlou / django-aws-billing

Django AWS Usage/Billing Package.
MIT License
14 stars 5 forks source link

'module' object has no attribute 'get_all_costs_by_resource' #6

Closed zerosoul13 closed 10 years ago

zerosoul13 commented 10 years ago

Hello,

I'm getting this issue when trying to process my bill:

python2.7 manage.py aws_costs
AttributeError: 'module' object has no attribute 'get_all_costs_by_resource'

Programmatic access is working as expected:

python2.7 manage.py shell
>>> from aws_billing import aws_billing
>>> aws_billing.get_cost_for_resource('instance-X')
<some cents here>
>>> aws_billing.get_total_cost()
<huge number here>
>>> aws_billing.get_all_costs_by_resource()
{u'': <lots and lots of data here>}

I thought (again) this could be related to my python custom build but unfortunately is not.I also thought that this could be related to MySQL server so i moved to Postgresql (this particular project) but still issue happens.

Angel.

Miserlou commented 10 years ago

I've done a version bump - my test package of 0.1.3 didn't even include aws_costs. I don't know why. It seems to be resolved simply by bumping the version - now I see aws_costs in the package, and it runs for me.

Miserlou commented 10 years ago

Fixed in 0.2.1.