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

Error while parsing GSI #143

Closed
furio opened this issue Apr 1, 2014 · 4 comments
Closed

Error while parsing GSI #143

furio opened this issue Apr 1, 2014 · 4 comments
Assignees
Milestone

Comments

@furio
Copy link

furio commented Apr 1, 2014

I've created a sample configuration, with a table and a gsi of that table and when I try to start the service i get this error.

[ec2-user@ip-10-235-36-224 dynamoconf]$ dynamic-dynamodb -c ./dyn.conf --dry-run
Traceback (most recent call last):
  File "/usr/bin/dynamic-dynamodb", line 5, in <module>
    pkg_resources.run_script('dynamic-dynamodb==1.10.5', 'dynamic-dynamodb')
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 461, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1194, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.6/site-packages/dynamic_dynamodb-1.10.5-py2.6.egg/EGG-INFO/scripts/dynamic-dynamodb", line 22, in <module>
    import dynamic_dynamodb
  File "/usr/lib/python2.6/site-packages/dynamic_dynamodb-1.10.5-py2.6.egg/dynamic_dynamodb/__init__.py", line 29, in <module>
    from dynamic_dynamodb.core import dynamodb, gsi, table
  File "/usr/lib/python2.6/site-packages/dynamic_dynamodb-1.10.5-py2.6.egg/dynamic_dynamodb/core/dynamodb.py", line 12, in <module>
    from dynamic_dynamodb.log_handler import LOGGER as logger
  File "/usr/lib/python2.6/site-packages/dynamic_dynamodb-1.10.5-py2.6.egg/dynamic_dynamodb/log_handler.py", line 25, in <module>
    import config_handler
  File "/usr/lib/python2.6/site-packages/dynamic_dynamodb-1.10.5-py2.6.egg/dynamic_dynamodb/config_handler.py", line 4, in <module>
    CONFIGURATION = config.get_configuration()
  File "/usr/lib/python2.6/site-packages/dynamic_dynamodb-1.10.5-py2.6.egg/dynamic_dynamodb/config/__init__.py", line 118, in get_configuration
    configuration['tables'] = __get_config_table_options(conf_file_options)
  File "/usr/lib/python2.6/site-packages/dynamic_dynamodb-1.10.5-py2.6.egg/dynamic_dynamodb/config/__init__.py", line 191, in __get_config_table_options
    options[table_name]['gsis'][gsi_name][option] = opt
KeyError: 'gsis'
@sebdah
Copy link
Owner

sebdah commented Apr 1, 2014

Thanks, I will take a look at that and get back to you.

@sebdah sebdah self-assigned this Apr 1, 2014
@sebdah sebdah added this to the 1.10.x milestone Apr 1, 2014
sebdah added a commit that referenced this issue Apr 1, 2014
@sebdah
Copy link
Owner

sebdah commented Apr 1, 2014

This should have been fixed in 1.10.6. Can you please upgrade and validate the fix?

Thanks

@sebdah sebdah closed this as completed Apr 1, 2014
@furio
Copy link
Author

furio commented Apr 1, 2014

It seems fixed! Thank you!

@sebdah
Copy link
Owner

sebdah commented Apr 1, 2014

Perfect, thanks for reporting!

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

2 participants