New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

int() argument must be a string or a number, not 'NoneType' #50

Closed
yegor256 opened this Issue Jul 21, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@yegor256

yegor256 commented Jul 21, 2013

I'm getting this exception:

2013-07-21 10:12:28,421 - dynamic-dynamodb - INFO - foo - Consumed read units: 0%
2013-07-21 10:12:28,427 - dynamic-dynamodb - INFO - foo - Scaling down reads is not done when usage is at 0%
2013-07-21 10:12:28,484 - dynamic-dynamodb - INFO - foo - Consumed write units: 40%
Jul 21 12:12:28 conveyer.rultor.com rultor:  Traceback (most recent call last):
Jul 21 12:12:28 conveyer.rultor.com rultor:    File "/usr/local/bin/dynamic-dynamodb", line 26, in <module>
Jul 21 12:12:28 conveyer.rultor.com rultor:      dynamic_dynamodb.main()
Jul 21 12:12:28 conveyer.rultor.com rultor:    File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/__init__.py", line 68, in main
Jul 21 12:12:28 conveyer.rultor.com rultor:      core.ensure_provisioning(table_name)
Jul 21 12:12:28 conveyer.rultor.com rultor:    File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/core/__init__.py", line 30, in ensure_provisioning
Jul 21 12:12:28 conveyer.rultor.com rultor:      table_name)
Jul 21 12:12:28 conveyer.rultor.com rultor:    File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/core/__init__.py", line 214, in __ensure_provisioning_writes
Jul 21 12:12:28 conveyer.rultor.com rultor:      get_table_option(table_name, 'decrease_writes_with'))
Jul 21 12:12:28 conveyer.rultor.com rultor:    File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/core/calculators.py", line 113, in decrease_writes_in_percent
Jul 21 12:12:28 conveyer.rultor.com rultor:      current_provisioning)
Jul 21 12:12:28 conveyer.rultor.com rultor:    File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/core/calculators.py", line 31, in get_min_provisioned_writes
Jul 21 12:12:28 conveyer.rultor.com rultor:      (current_provisioning * 2)))
Jul 21 12:12:28 conveyer.rultor.com rultor:  TypeError: int() argument must be a string or a number, not 'NoneType'

This is how I call the tool:

dynamic-dynamodb \
            --table-name foo \
            --reads-upper-threshold 90 \
            --reads-lower-threshold 30 \
            --increase-reads-with 50 \
            --decrease-reads-with 50 \
            --writes-upper-threshold 90 \
            --writes-lower-threshold 40 \
            --increase-writes-with 50 \
            --decrease-writes-with 70

@ghost ghost assigned sebdah Jul 21, 2013

sebdah added a commit that referenced this issue Jul 21, 2013

@sebdah

This comment has been minimized.

Owner

sebdah commented Jul 21, 2013

Thanks for the bug report @yegor256!

I should have resolved this in version 1.3.6, which is now available on PyPI. Please upgrade your dynamic-dynamodb installation using pip install -U dynamic-dynamodb and verify the fix.

@sebdah sebdah closed this Jul 21, 2013

@yegor256

This comment has been minimized.

yegor256 commented Jul 21, 2013

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment