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

jdc for python3 does not work #33

Closed
lidaobing opened this issue Jan 21, 2019 · 2 comments
Closed

jdc for python3 does not work #33

lidaobing opened this issue Jan 21, 2019 · 2 comments

Comments

@lidaobing
Copy link
Contributor

$ jdc
Traceback (most recent call last):
  File "/usr/local/bin/jdc", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/jdcloud_cli/jdc.py", line 98, in main
    app.run()
  File "/usr/local/lib/python3.7/site-packages/cement/core/foundation.py", line 905, in run
    return_val = self.controller._dispatch()
  File "/usr/local/lib/python3.7/site-packages/cement/ext/ext_argparse.py", line 935, in _dispatch
    (contr.__class__.__name__, func_name))      # pragma: nocover
cement.core.exc.FrameworkError: Controller function does not exist BaseController.default()
@cjjingchen
Copy link

前一个版本我也看见这个错,安装了新版本,我看见一个新的错误,如下:
root@cj-test-cli-ubuntu:~# jdc
Traceback (most recent call last):
File "/usr/local/bin/jdc", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.5/dist-packages/jdcloud_cli/jdc.py", line 98, in main
app.run()
File "/usr/local/lib/python3.5/dist-packages/jdcloud_cli/cement/core/foundation.py", line 905, in run
return_val = self.controller._dispatch()
File "/usr/local/lib/python3.5/dist-packages/jdcloud_cli/cement/ext/ext_argparse.py", line 916, in _dispatch
contr._meta.default_func # pragma: nocover
File "/usr/local/lib/python3.5/dist-packages/jdcloud_cli/cement/ext/ext_argparse.py", line 185, in clean_func
return re.sub('-', '
', func)
File "/usr/lib/python3.5/re.py", line 182, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object

@oulinbao
Copy link

this bug is fixed in cli v1.0.3.

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

3 participants