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

nnaoumov opened this Issue Sep 8, 2015 · 2 comments


None yet

3 participants

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/", line 98, in main
  File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/", line 131, in execute
  File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/core/", line 36, in ensure_provisioning
    __ensure_provisioning_alarm(table_name, key_name)
  File "/usr/local/lib/python2.7/dist-packages/dynamic_dynamodb/core/", line 871, in __ensure_provisioning_alarm
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
@sebdah sebdah self-assigned this Sep 11, 2015
@sebdah sebdah added this to the 2.0.x milestone Sep 11, 2015

HI sebdah,

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

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

sebdah commented Sep 29, 2015

This has now been released in version 2.0.1

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