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

Failed to reflash the sd card #39

Open
liuyangdh opened this issue Nov 23, 2018 · 1 comment
Open

Failed to reflash the sd card #39

liuyangdh opened this issue Nov 23, 2018 · 1 comment

Comments

@liuyangdh
Copy link

? This will erase the selected drive. Are you sure? Yes
Unexpected token x in JSON at position 1775

dts : Traceback (most recent call last):
: File "/home/dieselkopf/.local/lib/python2.7/site-packages/dt_shell/init.py", line 38, in cli_main
: cli_main_()
: File "/home/dieselkopf/.local/lib/python2.7/site-packages/dt_shell/init.py", line 106, in cli_main_
: shell.onecmd(cmdline)
: File "/usr/lib/python2.7/cmd.py", line 221, in onecmd
: return func(arg)
: File "/home/dieselkopf/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 409, in
: do_command_lam = lambda s, w: do_command(klass, s, w)
: File "/home/dieselkopf/.local/lib/python2.7/site-packages/dt_shell/dt_command_abs.py", line 47, in do_command
: cls.command(shell, args)
: File "/home/dieselkopf/.dt-shell/commands/init_sd_card/command.py", line 190, in command
: step2function[step_name](shell, parsed)
: File "/home/dieselkopf/.dt-shell/commands/init_sd_card/command.py", line 267, in step_flash
: raise Exception(msg)
: Exception: An error occurred while initializing the SD card, please check and try again (1).

dts : Please report that you are using:
:
: duckietown-shell: 3.0.31
: duckietown-shell-commands: 1.1.1
: python: "2.7.12 (default, Nov 12 2018, 14:36:49) \n[GCC 5.4.0 20160609]"

@hzy5000
Copy link

hzy5000 commented Nov 27, 2018

I had the same problem. Just change the etcher version from 1.4.6 to 1.4.4 in the ~/.dt-shell/commands/init_sd_card/init_sd_card2.sh, then the problem will be solved.

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