Closed zerosoul13 closed 10 years ago
AttributeError: 'Settings' object has no attribute 'AWS_ACCOUNT_ID'
That looks to be the error. Did you put your AWS settings in your project?
Oh, I see. Hang on.
The exception is expected due that no config was done. Just wanted to share the output to show how i solved the issue. The package is not placing the management/commands folders when installing.
Yeah, I see that now. Although the manifest includes a recursive *.py include, so I don't know why it's skipping that directory.
I added a more explicit inclusion. I thiiiink it works now?
Created a virtualenv and installed django-aws-billing from pip (got package django-aws-billing==0.1.3)
Worked out of the box. Many thanks for fixing this!
Thank you for reporting it!
Hello,
I've reported this already (Issue #1) but thought that this issue could be related to my custom python2.7 acting a bit weird. Just did an install on a fresh virtualenv and issue persists. Here's the deal:
but when i try to execute the process_aws_billing command it fails:
Since i have the cloned repo, i just did a copy of the missing dirs:
Before:
After:
Now execute again and it works (no config was done so this is expected):
File "/home/angel/coding/django_aws/lib/python2.7/site-packages/django/core/management/init.py", line 399, in execute_from_command_line utility.execute() File "/home/angel/coding/django_aws/lib/python2.7/site-packages/django/core/management/init.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/angel/coding/django_aws/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv self.execute(_args, _options.dict) File "/home/angel/coding/django_aws/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute output = self.handle(_args, _options) File "/home/angel/coding/django_aws/lib/python2.7/site-packages/aws_billing/management/commands/process_aws_billing.py", line 31, in handle fd = retrieve_remote_stats(aws_settings.AWS_ACCOUNT_ID.replace('-', ''), aws_settings.AWS_BILLING_BUCKET) File "/home/angel/coding/django_aws/lib/python2.7/site-packages/django/conf/init.py", line 55, in getattr return getattr(self._wrapped, name) AttributeError: 'Settings' object has no attribute 'AWS_ACCOUNT_ID'
The package is basically broken on pip. What do we need to get this fixed? I'm willing to contribute if needed.
Cheers,
Angel.