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

Could not load commands after update from 3.0.6 to 3.0.17 #34

Open
tanij opened this issue Oct 17, 2018 · 0 comments
Open

Could not load commands after update from 3.0.6 to 3.0.17 #34

tanij opened this issue Oct 17, 2018 · 0 comments

Comments

@tanij
Copy link
Member

tanij commented Oct 17, 2018

Fixed by manually erasing ~/.dt-shell/commands, as recommended by the script.

➜ ~ dts version
INFO:dts:duckietown-shell 3.0.17

dts : Problems with a command?
:
: Report here: https://github.com/duckietown/duckietown-shell-commands/issues
:
: Troubleshooting:
:
: - If some commands update fail, delete ~/.dt-shell/commands
:
: - To reset the shell to "factory settings", delete ~/.dt-shell
:
: (Note: you will have to re-configure.)
ERROR:dts:

        !   Could not load commands.

            Cannot load command class 'challenges.info.command.DTCommand' (package='challenges.', command='info'): Traceback (most recent call last):

File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 371, in _load_commands
klass = _load_class(spec)
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 474, in _load_class
mod = import(components[0])
File "/home/jtani/.dt-shell/commands/challenges/init.py", line 8, in
from .define import *
File "/home/jtani/.dt-shell/commands/challenges/define/init.py", line 1, in
from .command import *
File "/home/jtani/.dt-shell/commands/challenges/define/command.py", line 7, in
from dt_shell.remote import dtserver_challenge_define
ImportError: cannot import name dtserver_challenge_define

Cannot load command class 'challenges.reset.command.DTCommand' (package='challenges.', command='reset'): Traceback (most recent call last):
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 371, in _load_commands
klass = _load_class(spec)
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 474, in _load_class
mod = import(components[0])
File "/home/jtani/.dt-shell/commands/challenges/init.py", line 8, in
from .define import *
File "/home/jtani/.dt-shell/commands/challenges/define/init.py", line 1, in
from .command import *
File "/home/jtani/.dt-shell/commands/challenges/define/command.py", line 7, in
from dt_shell.remote import dtserver_challenge_define
ImportError: cannot import name dtserver_challenge_define

Cannot load command class 'challenges.retire.command.DTCommand' (package='challenges.', command='retire'): Traceback (most recent call last):
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 371, in _load_commands
klass = _load_class(spec)
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 474, in _load_class
mod = import(components[0])
File "/home/jtani/.dt-shell/commands/challenges/init.py", line 8, in
from .define import *
File "/home/jtani/.dt-shell/commands/challenges/define/init.py", line 1, in
from .command import *
File "/home/jtani/.dt-shell/commands/challenges/define/command.py", line 7, in
from dt_shell.remote import dtserver_challenge_define
ImportError: cannot import name dtserver_challenge_define

Cannot load command class 'challenges.list.command.DTCommand' (package='challenges.', command='list'): Traceback (most recent call last):
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 371, in _load_commands
klass = _load_class(spec)
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 474, in _load_class
mod = import(components[0])
File "/home/jtani/.dt-shell/commands/challenges/init.py", line 8, in
from .define import *
File "/home/jtani/.dt-shell/commands/challenges/define/init.py", line 1, in
from .command import *
File "/home/jtani/.dt-shell/commands/challenges/define/command.py", line 7, in
from dt_shell.remote import dtserver_challenge_define
ImportError: cannot import name dtserver_challenge_define

Cannot load command class 'challenges.update.command.DTCommand' (package='challenges.', command='update'): Traceback (most recent call last):
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 371, in _load_commands
klass = _load_class(spec)
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 474, in _load_class
mod = import(components[0])
File "/home/jtani/.dt-shell/commands/challenges/init.py", line 8, in
from .define import *
File "/home/jtani/.dt-shell/commands/challenges/define/init.py", line 1, in
from .command import *
File "/home/jtani/.dt-shell/commands/challenges/define/command.py", line 7, in
from dt_shell.remote import dtserver_challenge_define
ImportError: cannot import name dtserver_challenge_define

Cannot load command class 'challenges.submit.command.DTCommand' (package='challenges.', command='submit'): Traceback (most recent call last):
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 371, in _load_commands
klass = _load_class(spec)
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 474, in _load_class
mod = import(components[0])
File "/home/jtani/.dt-shell/commands/challenges/init.py", line 8, in
from .define import *
File "/home/jtani/.dt-shell/commands/challenges/define/init.py", line 1, in
from .command import *
File "/home/jtani/.dt-shell/commands/challenges/define/command.py", line 7, in
from dt_shell.remote import dtserver_challenge_define
ImportError: cannot import name dtserver_challenge_define

Cannot load command class 'challenges.evaluator.command.DTCommand' (package='challenges.', command='evaluator'): Traceback (most recent call last):
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 371, in _load_commands
klass = _load_class(spec)
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 474, in _load_class
mod = import(components[0])
File "/home/jtani/.dt-shell/commands/challenges/init.py", line 8, in
from .define import *
File "/home/jtani/.dt-shell/commands/challenges/define/init.py", line 1, in
from .command import *
File "/home/jtani/.dt-shell/commands/challenges/define/command.py", line 7, in
from dt_shell.remote import dtserver_challenge_define
ImportError: cannot import name dtserver_challenge_define

Cannot load command class 'challenges.config.command.DTCommand' (package='challenges.', command='config'): Traceback (most recent call last):
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 371, in _load_commands
klass = _load_class(spec)
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 474, in _load_class
mod = import(components[0])
File "/home/jtani/.dt-shell/commands/challenges/init.py", line 8, in
from .define import *
File "/home/jtani/.dt-shell/commands/challenges/define/init.py", line 1, in
from .command import *
File "/home/jtani/.dt-shell/commands/challenges/define/command.py", line 7, in
from dt_shell.remote import dtserver_challenge_define
ImportError: cannot import name dtserver_challenge_define

Cannot load command class 'challenges.define.command.DTCommand' (package='challenges.', command='define'): Traceback (most recent call last):
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 371, in _load_commands
klass = _load_class(spec)
File "/home/jtani/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 474, in _load_class
mod = import(components[0])
File "/home/jtani/.dt-shell/commands/challenges/init.py", line 8, in
from .define import *
File "/home/jtani/.dt-shell/commands/challenges/define/init.py", line 1, in
from .command import *
File "/home/jtani/.dt-shell/commands/challenges/define/command.py", line 7, in
from dt_shell.remote import dtserver_challenge_define
ImportError: cannot import name dtserver_challenge_define

        !   To recover, you might want to delete the directory
        !
        !      ~/.dt-shell/commands
        !
        !    
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