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

Cannot create new chatbot project following the instructions #3

Open
pineappledreams opened this issue Oct 1, 2020 · 0 comments
Open

Comments

@pineappledreams
Copy link
Contributor

pineappledreams commented Oct 1, 2020

Problem

Cannot create new chatbot project following the instructions as the instructions and the real code differ.
machaao start -s sample will lead to an error that option -s doesn't exist

(venv) pineapple@DESKTOP:~/machaao-py$ machaao start -s sample
Usage: machaao start [OPTIONS]
Try 'machaao start --help' for help.

Error: no such option: -s

So if I run --help, it tells me I should run machaao start -n instead

(venv) pineapple@DESKTOP:~/machaao-py$ machaao start --help
Usage: machaao start [OPTIONS]

Options:
  -n TEXT  Enter the name of project.
  --help   Show this message and exit.

But even if I do that, it still runs into an error:

(venv) pineapple@DESKTOP:~/machaao-py$ machaao start -n sample
Traceback (most recent call last):
  File "/home/pineapple/machaao-py/venv/bin/machaao", line 4, in <module>
    __import__('pkg_resources').run_script('machaao==0.1.9', 'machaao')
  File "/home/pineapple/machaao-py/venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 666, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/home/pineapple/machaao-py/venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1469, in run_script
    exec(script_code, namespace, namespace)
  File "/home/pineapple/machaao-py/venv/lib/python3.8/site-packages/machaao-0.1.9-py3.8.egg/EGG-INFO/scripts/machaao", line 232, in <module>
  File "/home/pineapple/machaao-py/venv/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/pineapple/machaao-py/venv/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/pineapple/machaao-py/venv/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/pineapple/machaao-py/venv/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/pineapple/machaao-py/venv/lib/python3.8/site-packages/click-7.1.2-py3.8.egg/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
TypeError: start() got an unexpected keyword argument 'n'

Steps to reproduce

  1. machaao start -s sample_app

Bug-fix ideas

[ ] Fix the start() in the to use -n as the doc-string calls for -n machaao-py/bin/machaao
[ ] Match the documentation to use -n instead of -s

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

1 participant