opened
joerghall
username_0
ibt <alias name> is not working

1) Missing import to shlex.
2) If the import is added it fails with the following error:

Traceback (most recent call last):
  File "/home/local/TSI/jhallmann/.local/bin/ibt", line 9, in <module>
    load_entry_point('ibt==0.2', 'console_scripts', 'ibt')()
  File "/home/local/TSI/jhallmann/dev/kubeworld/ibt/ibt/__main__.py", line 128, in _main
    args.handler(ctx, project, args)
  File "/home/local/TSI/jhallmann/dev/kubeworld/ibt/ibt/__main__.py", line 125, in <lambda>
    _handle_alias(parser, alias, ctx, args))
  File "/home/local/TSI/jhallmann/dev/kubeworld/ibt/ibt/__main__.py", line 63, in _handle_alias
    args = parser.parse_args(shlex.split(alias))
  File "/usr/lib64/python2.7/shlex.py", line 279, in split
    return list(lex)
  File "/usr/lib64/python2.7/shlex.py", line 269, in next
    token = self.get_token()
  File "/usr/lib64/python2.7/shlex.py", line 96, in get_token
    raw = self.read_token()
  File "/usr/lib64/python2.7/shlex.py", line 124, in read_token
    nextchar = self.instream.read(1)
AttributeError: 'Namespace' object has no attribute 'read'
ibt <alias name> is not working
issue
created
rcook
username_1
Well spotted. `shlex` doesn't exist in Python 2.7. Should use `pipes` instead. Let me look at this.
comment