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

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

Projects

None yet

3 participants

@nnaoumov
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
@sebdah sebdah self-assigned this Sep 11, 2015
@sebdah sebdah added this to the 2.0.x milestone Sep 11, 2015
@PaulLiang1

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
Owner
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