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

Cmd2.py user warnings #32

Open
5 tasks
lifeHacker42 opened this issue Jul 23, 2019 · 2 comments
Open
5 tasks

Cmd2.py user warnings #32

lifeHacker42 opened this issue Jul 23, 2019 · 2 comments

Comments

@lifeHacker42
Copy link

Primary Question / Request

What type of request is there?

  • [x ] Breaking bug
  • General error (non-fatal)
  • Additional module (Create a pull request! :D)
  • Use-case suggestions
  • Workflow improvments

Please explain the bug in a clear and concise manner

On startup omnibus shows several user warnings referring to cmd2.py. Cmd2 seems properly installed.
Program then won't return any output and doesn't terminate. Ctrl+c must be used to return to prompt but help and exit are not even working

Steps to Recreate (If Applicable)

Install and run omnibus then attempt to run any command

Is this preventing you from using the application?

  • [ x] Yes
  • No

If you selected Yes, please explain why fully

No output is returned on any command

Do you have any screenshots, log output, tracebacks, or otherwise to support your requests?

` ██████╗ ███╗   ███╗███╗   ██╗██╗██████╗ ██╗   ██╗███████╗
██╔═══██╗████╗ ████║████╗  ██║██║██╔══██╗██║   ██║██╔════╝
██║   ██║██╔████╔██║██╔██╗ ██║██║██████╔╝██║   ██║███████╗
██║   ██║██║╚██╔╝██║██║╚██╗██║██║██╔══██╗██║   ██║╚════██║
╚██████╔╝██║ ╚═╝ ██║██║ ╚████║██║██████╔╝╚██████╔╝███████║
 ╚═════╝ ╚═╝     ╚═╝╚═╝  ╚═══╝╚═╝╚═════╝  ╚═════╝ ╚══════╝
             https://github.com/InQuest/omnibus


[*] Using configuration file (/home/lifehacker42/security/omnibus/etc/omnibus.conf) ...
[*] Debug: False
/home/lifehacker42/.local/lib/python2.7/site-packages/cmd2.py:3999: UserWarning: warn_ungrouped_named_tokens_in_collection: setting results name 'statement' on And expression collides with 'terminator' on contained expression
  lambda x: x[0].strip())('args') + blankLineTerminator)('statement')
/home/lifehacker42/.local/lib/python2.7/site-packages/cmd2.py:4006: UserWarning: warn_ungrouped_named_tokens_in_collection: setting results name 'statement' on And expression collides with 'terminator' on contained expression
  ignore=do_not_parse).setParseAction(lambda x: x[0].strip())('suffix') +
/home/lifehacker42/.local/lib/python2.7/site-packages/cmd2.py:4014: UserWarning: warn_ungrouped_named_tokens_in_collection: setting results name 'statement' on And expression collides with 'command' on contained expression
  pyparsing.Optional(terminator_parser) + after_elements)
/home/lifehacker42/.local/lib/python2.7/site-packages/cmd2.py:4014: UserWarning: warn_ungrouped_named_tokens_in_collection: setting results name 'statement' on And expression collides with 'args' on contained expression
  pyparsing.Optional(terminator_parser) + after_elements)
/home/lifehacker42/.local/lib/python2.7/site-packages/cmd2.py:4016: UserWarning: warn_ungrouped_named_tokens_in_collection: setting results name 'statement' on And expression collides with 'terminator' on contained expression
  blankLineTerminationParser = blankLineTerminationParser.setResultsName('statement')
Welcome to the Omnibus shell! Type "session" to get started or "help" to view all commands.
omnibus >>`
@deadbits
Copy link
Contributor

Before starting omnibus can you add the —debug flag to it and share that output? Definitely looks like something broke with cmd2 but I’m not entirely sure why since I thought I have my requirements.txt repos pinned to specific versions.

I’ll see if I can recreate this in the meantime.

@deadbits
Copy link
Contributor

Yup, library versions are pinned so idk what is going on here. I’ll try to recreate it.. could be some downstream library broke something in cmd2. That —debug argument output would be very helpful @lifeHacker42

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