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

can't run container-transform (KeyError: 'M') #56

Open
gustavosoares opened this issue Jul 19, 2016 · 1 comment
Open

can't run container-transform (KeyError: 'M') #56

gustavosoares opened this issue Jul 19, 2016 · 1 comment

Comments

@gustavosoares
Copy link

Hi, I am trying to use container-transform to convert a working docker-compose file to ecs format and I am getting

cat docker-compose.yml | docker run --rm -i micahhausler/container-transform

Traceback (most recent call last):
File "/usr/local/bin/container-transform", line 9, in
load_entry_point('container-transform==1.1.4', 'console_scripts', 'container-transform')()
File "/usr/local/lib/python3.5/site-packages/click-6.6-py3.5.egg/click/core.py", line 716, in call
return self.main(_args, *_kwargs)
File "/usr/local/lib/python3.5/site-packages/click-6.6-py3.5.egg/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.5/site-packages/click-6.6-py3.5.egg/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, *_ctx.params)
File "/usr/local/lib/python3.5/site-packages/click-6.6-py3.5.egg/click/core.py", line 534, in invoke
return callback(_args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/container_transform-1.1.4-py3.5.egg/container_transform/client.py", line 64, in transform
output = converter.convert(verbose)
File "/usr/local/lib/python3.5/site-packages/container_transform-1.1.4-py3.5.egg/container_transform/converter.py", line 57, in convert
output_transformer
File "/usr/local/lib/python3.5/site-packages/container_transform-1.1.4-py3.5.egg/container_transform/converter.py", line 100, in _convert_container
output[output_name] = emit_func(ingest_func(container.get(input_name)))
File "/usr/local/lib/python3.5/site-packages/container_transform-1.1.4-py3.5.egg/container_transform/compose.py", line 192, in ingest_memory
return bit_shift[unit]['func'](number, bit_shift[unit]['shift'])
KeyError: 'M'

any ideas?

@micahhausler
Copy link
Owner

It looks like you're using upper case memory units. For now, switch to lowercase (128m instead of 128M). I'll add a fix that will automatically do this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants