Skip to content
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

ValueError: Unknown format code 'd' for object of type 'float' #265

Closed
nnaoumov opened this issue Sep 8, 2015 · 2 comments
Closed

ValueError: Unknown format code 'd' for object of type 'float' #265

nnaoumov opened this issue Sep 8, 2015 · 2 comments
Assignees
Milestone

Comments

@nnaoumov
Copy link

nnaoumov commented Sep 8, 2015

I just updated dynamic_dynamodb with pip and got version 2.0 and now am seeing this error. I noticed that logged capacities are now decimal percentages while in the old version they were ints - e.g. dynamic-dynamodb - INFO - DeviceMapping - Consumed read units: 75.17%

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/__init__.py", line 98, in main
    execute()
  File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/__init__.py", line 131, in execute
    table_num_consec_write_checks)
  File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/core/table.py", line 36, in ensure_provisioning
    __ensure_provisioning_alarm(table_name, key_name)
  File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/core/table.py", line 871, in __ensure_provisioning_alarm
    reads_upper_alarm_threshold))
ValueError: Unknown format code 'd' for object of type 'float'

This is the latest package in pip:

pip show dynamic-dynamodb

---
Name: dynamic-dynamodb
Version: 2.0.0
Location: /usr/local/lib/python2.7/dist-packages
Requires: boto, requests, logutils, retrying
@PaulLiang1
Copy link

HI sebdah,

Is there a work around for current version in pip for this issue?

[EDIT]
Disabling all *alarm-threshold in config file worked for me.

@sebdah
Copy link
Owner

sebdah commented Sep 29, 2015

This has now been released in version 2.0.1

@sebdah sebdah closed this as completed Sep 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants