duckietown / duckietown-shell-commands

Commands for the Duckietown Shell
4 stars 4 forks source link

init_sd_card: AttributeError: 'NoneType' object has no attribute 'group' #123

Closed LukyBo closed 5 years ago

LukyBo commented 5 years ago

~ dts init_sd_card --hostname user1840 INFO:dts:duckietown-shell 4.0.26

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.) INFO:dts:duckietown-shell-commands 4.0.41 INFO:duckietown-challenges:duckietown-challenges 4.0.30

INFO:dts:Configuration: master19 DEBUG:dts:Found 'wget' at /usr/bin/wget DEBUG:dts:Found 'tar' at /bin/tar DEBUG:dts:Found 'udisksctl' at /usr/bin/udisksctl DEBUG:dts:Found 'docker' at /usr/bin/docker DEBUG:dts:Found 'base64' at /usr/bin/base64 DEBUG:dts:Found 'gzip' at /bin/gzip DEBUG:dts:Found 'udevadm' at /sbin/udevadm DEBUG:dts:Found 'lsblk' at /bin/lsblk INFO:dts:Please type the device with your SD card. Please be careful to pick the right device and to include '/dev/'. Here's a list of the devices on your system: Running /bin/bash /home/sakul1308/.dt-shell/commands/init_sd_card/list_disks.sh NAME TYPE SIZE VENDOR /dev/sda disk 298,1G ATA
/dev/sdb disk 465,8G ATA
/dev/sdc disk 29,1G Generic Done! Type the name of your device (include the '/dev' part): /dev/sdc Running /bin/bash /home/sakul1308/.dt-shell/commands/init_sd_card/init_sd_card.sh 64-bit OS detected... Downloading etcher-cli... --2019-09-07 22:27:00-- https://github.com/balena-io/etcher/releases/download/v1.4.4/etcher-cli-1.4.4-linux-x64.tar.gz Auflösen des Hostnamens github.com (github.com) … 140.82.118.3 Verbindungsaufbau zu github.com (github.com)|140.82.118.3|:443 … verbunden. HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found Platz: https://github-production-release-asset-2e65be.s3.amazonaws.com/45055693/bd655d70-4954-11e8-8120-2d4297329df7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190907%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190907T202701Z&X-Amz-Expires=300&X-Amz-Signature=3f5b434d5ea0943b6c8eee4af80932cbfd2e429ad4060435c4296adaf1748c86&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Detcher-cli-1.4.4-linux-x64.tar.gz&response-content-type=application%2Foctet-stream [folgend] --2019-09-07 22:27:01-- https://github-production-release-asset-2e65be.s3.amazonaws.com/45055693/bd655d70-4954-11e8-8120-2d4297329df7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190907%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190907T202701Z&X-Amz-Expires=300&X-Amz-Signature=3f5b434d5ea0943b6c8eee4af80932cbfd2e429ad4060435c4296adaf1748c86&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Detcher-cli-1.4.4-linux-x64.tar.gz&response-content-type=application%2Foctet-stream Auflösen des Hostnamens github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com) … 52.216.165.107 Verbindungsaufbau zu github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.165.107|:443 … verbunden. HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK Länge: 19921477 (19M) [application/octet-stream] Wird in »/tmp/duckietown/tmp.l0zxgUbY3T« gespeichert.

/tmp/duckietown/tmp 100%[===================>] 19,00M 706KB/s in 36s

2019-09-07 22:27:38 (541 KB/s) - »/tmp/duckietown/tmp.l0zxgUbY3T« gespeichert [19921477/19921477]

Installing etcher-cli to /tmp/duckietown/etcher-cli... etcher-cli-1.4.4-linux-x64-dist/etcher etcher-cli-1.4.4-linux-x64-dist/node_modules/ etcher-cli-1.4.4-linux-x64-dist/node_modules/drivelist/ etcher-cli-1.4.4-linux-x64-dist/node_modules/drivelist/build/ etcher-cli-1.4.4-linux-x64-dist/node_modules/drivelist/build/Release/ etcher-cli-1.4.4-linux-x64-dist/node_modules/drivelist/build/Release/drivelist.node etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/ etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/binding/ etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/binding/lzma_native.node etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/build/ etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/build/Release/ etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/build/Release/obj.target/ etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/build/Release/obj.target/lzma_native.node etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/build/Release/lzma_native.node etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/deps/ etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/deps/bin_i686/ etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/deps/bin_i686/liblzma.dll etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/deps/bin_x86-64/ etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/deps/bin_x86-64/liblzma.dll etcher-cli-1.4.4-linux-x64-dist/node_modules/mountutils/ etcher-cli-1.4.4-linux-x64-dist/node_modules/mountutils/build/ etcher-cli-1.4.4-linux-x64-dist/node_modules/mountutils/build/Release/ etcher-cli-1.4.4-linux-x64-dist/node_modules/mountutils/build/Release/MountUtils.node etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/ etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/build/ etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/build/Release/ etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/build/Release/obj.target/ etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/build/Release/obj.target/usb_bindings.node etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/build/Release/usb_bindings.node etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/src/ etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/src/binding/ etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/src/binding/usb_bindings.node etcher-cli-1.4.4-linux-x64-dist/node_modules/winusb-driver-generator/ etcher-cli-1.4.4-linux-x64-dist/node_modules/winusb-driver-generator/build/ etcher-cli-1.4.4-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/ etcher-cli-1.4.4-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/obj.target/ etcher-cli-1.4.4-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/obj.target/Generator.node etcher-cli-1.4.4-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/Generator.node --2019-09-07 22:27:39-- https://github.com/hypriot/image-builder-rpi/releases/download/v1.9.0/hypriotos-rpi-v1.9.0.img.zip Auflösen des Hostnamens github.com (github.com) … 140.82.118.3 Verbindungsaufbau zu github.com (github.com)|140.82.118.3|:443 … verbunden. HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found Platz: https://github-production-release-asset-2e65be.s3.amazonaws.com/49221370/4f707dc4-4b28-11e8-851a-5571d179f48f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190907%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190907T202739Z&X-Amz-Expires=300&X-Amz-Signature=d0efe59e30baf340b6ee401f476834a615ddea714dd9e037704b08709fd4ea13&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dhypriotos-rpi-v1.9.0.img.zip&response-content-type=application%2Foctet-stream [folgend] --2019-09-07 22:27:39-- https://github-production-release-asset-2e65be.s3.amazonaws.com/49221370/4f707dc4-4b28-11e8-851a-5571d179f48f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190907%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190907T202739Z&X-Amz-Expires=300&X-Amz-Signature=d0efe59e30baf340b6ee401f476834a615ddea714dd9e037704b08709fd4ea13&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dhypriotos-rpi-v1.9.0.img.zip&response-content-type=application%2Foctet-stream Auflösen des Hostnamens github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com) … 52.216.128.139 Verbindungsaufbau zu github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.128.139|:443 … verbunden. HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK Länge: 313413047 (299M) [application/octet-stream] Wird in »/tmp/duckietown/hypriotos-rpi-v1.9.0.img.zip« gespeichert.

/tmp/duckietown/hyp 100%[===================>] 298,89M 1,55MB/s in 3m 17s

2019-09-07 22:30:57 (1,52 MB/s) - »/tmp/duckietown/hypriotos-rpi-v1.9.0.img.zip« gespeichert [313413047/313413047]

Downloading Hypriot image complete. Flashing Hypriot image /tmp/duckietown/hypriotos-rpi-v1.9.0.img.zip to disk /dev/sdc ? This will erase the selected drive. Are you sure? Yes Flashing: 10.5 MB/s [========================] 100% eta 0s
Validating: 0 B/s [========================] 100% eta 0s

Checksums:

dts : Traceback (most recent call last): : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/init.py", line 48, in cli_main : climain() : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/init.py", line 131, in climain : shell.onecmd(cmdline) : File "/home/linuxbrew/.linuxbrew/opt/python/lib/python3.7/cmd.py", line 217, in onecmd : return func(arg) : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/cli.py", line 400, in : do_command_lam = lambda s, w: do_command(klass, s, w) : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/dt_command_abs.py", line 47, in do_command : cls.command(shell, args) : File "/home/sakul1308/.dt-shell/commands/init_sd_card/command.py", line 230, in command : step2function[step_name](shell, parsed) : File "/home/sakul1308/.dt-shell/commands/init_sd_card/command.py", line 371, in step_expand : uuid = m.group(1) : AttributeError: 'NoneType' object has no attribute 'group'

dts : If you think this is a bug, please report that you are using: :
: duckietown-shell-commands: 4.0.41 : duckietown-challenges: 4.0.30 : python: "3.7.4 (default, Jul 12 2019, 20:57:46) \n[GCC 5.4.0 20160609]" : duckietown-shell: 4.0.26 : encodings: : stdout: UTF-8 : stderr: UTF-8 : locale: UTF-8

afdaniele commented 5 years ago

Can you run sudo fdisk -l /dev/sdc and post the output?

LukyBo commented 5 years ago

grafik ➜ ~ sudo fdisk -l /dev/sdc Disk /dev/sdc: 29.1 GiB, 31267487744 bytes, 61069312 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x00000000

Device Boot Start End Sectors Size Id Type /dev/sdc1 2048 133119 131072 64M c W95 FAT32 (LBA) /dev/sdc2 133120 2047998 1914879 935M 83 Linux

afdaniele commented 5 years ago

Are you sure you are running an English terminal? The script init_sd_card will try to fetch some info about your SD card by looking for the string Disk identifier: ************* in the output of sudo fdisk -l .... If you are using another language, that string will have no match (e.g., Festplattenbezeichner instead of Disk identifier).

LukyBo commented 5 years ago

Terminal was in german. Changed it in english. Can I freely choose my hostname? Have I done something wrong with docker/container? Still the following error occurs:

➜ ~ rm /tmp/duckietown/hypriotos-rpi-v1.9.0.img.zip ➜ ~ dts init_sd_card --hostname sakul1308 INFO:dts:duckietown-shell 4.0.26

....

INFO:dts:Configuration: master19 DEBUG:dts:Found 'wget' at /usr/bin/wget DEBUG:dts:Found 'tar' at /bin/tar DEBUG:dts:Found 'udisksctl' at /usr/bin/udisksctl DEBUG:dts:Found 'docker' at /usr/bin/docker DEBUG:dts:Found 'base64' at /usr/bin/base64 DEBUG:dts:Found 'gzip' at /bin/gzip DEBUG:dts:Found 'udevadm' at /sbin/udevadm DEBUG:dts:Found 'lsblk' at /bin/lsblk INFO:dts:Please type the device with your SD card. Please be careful to pick the right device and to include '/dev/'. Here's a list of the devices on your system: Running /bin/bash /home/sakul1308/.dt-shell/commands/init_sd_card/list_disks.sh NAME TYPE SIZE VENDOR /dev/sda disk 298.1G ATA
/dev/sdb disk 465.8G ATA
/dev/sdc disk 29.1G Generic Done! Type the name of your device (include the '/dev' part): /dev/sdc Running /bin/bash /home/sakul1308/.dt-shell/commands/init_sd_card/init_sd_card.sh 64-bit OS detected... Prior etcher-cli install detected at /tmp/duckietown/etcher-cli, skipping... --2019-09-10 01:27:08-- https://github.com/hypriot/image-builder-rpi/releases/download/v1.9.0/hypriotos-rpi-v1.9.0.img.zip Resolving github.com (github.com)... 140.82.118.3 Connecting to github.com (github.com)|140.82.118.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/49221370/4f707dc4-4b28-11e8-851a-5571d179f48f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190909%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190909T232709Z&X-Amz-Expires=300&X-Amz-Signature=7f5b402de0e4899f753f4fbbda07bf0e82bf92d64093ac1f0b0dd04cf6cf3bab&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dhypriotos-rpi-v1.9.0.img.zip&response-content-type=application%2Foctet-stream [following] --2019-09-10 01:27:09-- https://github-production-release-asset-2e65be.s3.amazonaws.com/49221370/4f707dc4-4b28-11e8-851a-5571d179f48f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190909%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190909T232709Z&X-Amz-Expires=300&X-Amz-Signature=7f5b402de0e4899f753f4fbbda07bf0e82bf92d64093ac1f0b0dd04cf6cf3bab&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dhypriotos-rpi-v1.9.0.img.zip&response-content-type=application%2Foctet-stream Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.206.43 Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.206.43|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 313413047 (299M) [application/octet-stream] Saving to: ‘/tmp/duckietown/hypriotos-rpi-v1.9.0.img.zip’

/tmp/duckietown/hypriotos-rpi-v1.9.0.img. 5%[====> ] 17.41M 2.41MB/s eta s-rpypririottown/hypckkiet/ttmp/mp / zip ip g./tmp/duckietown/hypriotos-rpi- 100%[==================================================>] 298.89M 2.02MB/s in 2m 7s

2019-09-10 01:29:17 (2.35 MB/s) - ‘/tmp/duckietown/hypriotos-rpi-v1.9.0.img.zip’ saved [313413047/313413047]

Downloading Hypriot image complete. Flashing Hypriot image /tmp/duckietown/hypriotos-rpi-v1.9.0.img.zip to disk /dev/sdc ? This will erase the selected drive. Are you sure? Yes Flashing: 10.53 MB/s [========================] 100% eta 0s
Validating: 0 B/s [========================] 100% eta 0s

Checksums:

DEBUG:dts:$ ['sudo', 'fdisk', '/dev/sdc']

Welcome to fdisk (util-linux 2.31.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.

Command (m for help): Expert command (m for help): Enter the new disk identifier: Disk identifier changed from 0x4e49aaf0 to 0x00000000.

Expert command (m for help): Command (m for help): The partition table has been altered. Syncing disks.

INFO:dts:Updated status: DEBUG:dts:$ ['sudo', 'lsblk', '/dev/sdc'] NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdc 8:32 1 29.1G 0 disk ├─sdc1 8:33 1 64M 0 part └─sdc2 8:34 1 29.1G 0 part DEBUG:dts:$ ['sudo', 'udevadm', 'trigger'] DEBUG:dts:$ ['udisksctl', 'mount', '-b', '/dev/disk/by-label/HypriotOS'] Mounted /dev/sdc1 at /media/sakul1308/HypriotOS. DEBUG:dts:$ ['sudo', 'udevadm', 'trigger'] DEBUG:dts:$ ['udisksctl', 'mount', '-b', '/dev/disk/by-label/root'] Mounted /dev/sdc2 at /media/sakul1308/root. /home/sakul1308/.dt-shell/commands/init_sd_card/command.py:419: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. user_data = yaml.load(open(user_data_file).read()) INFO:dts:Adding file /home/duckie/.ssh/authorized_keys INFO:dts:Adding file /home/duckie/.dt-shell/config INFO:dts:Adding file /secrets/tokens/dt1 INFO:dts:Adding file /data/stats/init_sd_card/README.txt INFO:dts:Adding file /data/stats/init_sd_card/CHANGELOG INFO:dts:Adding file /data/stats/init_sd_card/version INFO:dts:Adding file /data/stats/init_sd_card/flash_time INFO:dts:Adding file /data/stats/init_sd_card/flash_user INFO:dts:Adding file /data/stats/init_sd_card/flash_machine INFO:dts:Adding file /data/stats/init_sd_card/parameters/hostname INFO:dts:Adding file /data/stats/init_sd_card/parameters/linux_username INFO:dts:Adding file /data/stats/init_sd_card/parameters/stacks_to_run INFO:dts:Adding file /data/stats/init_sd_card/parameters/stacks_to_load INFO:dts:Adding file /data/stats/init_sd_card/parameters/compress INFO:dts:Adding file /data/stats/init_sd_card/parameters/device INFO:dts:Adding file /data/stats/init_sd_card/parameters/country INFO:dts:Adding file /data/stats/init_sd_card/parameters/wifi INFO:dts:Adding file /data/stats/init_sd_card/parameters/ethz_username INFO:dts:Adding file /data/stats/MAC/README.txt INFO:dts:Configuration already found in ~/.ssh/config INFO:dts:Adding file /var/local/wificfg.json INFO:dts:Adding file /etc/wpa_supplicant/wpa_supplicant.conf /home/sakul1308/.dt-shell/commands/init_sd_card/command.py:817: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. add_file(path='/data/config/calibrations/kinematics/default.yaml', content=yaml.dump(yaml.load(kin_calib_file), default_flow_style=False)) INFO:dts:Adding file /data/config/calibrations/kinematics/default.yaml /home/sakul1308/.dt-shell/commands/init_sd_card/command.py:818: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. add_file(path='/data/config/calibrations/camera_extrinsic/default.yaml',content=yaml.dump(yaml.load(ext_cam_calib_file), default_flow_style=False)) INFO:dts:Adding file /data/config/calibrations/camera_extrinsic/default.yaml /home/sakul1308/.dt-shell/commands/init_sd_card/command.py:819: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. add_file(path='/data/config/calibrations/camera_intrinsic/default.yaml',content=yaml.dump(yaml.load(int_cam_calib_file), default_flow_style=False)) INFO:dts:Adding file /data/config/calibrations/camera_intrinsic/default.yaml INFO:dts:Stacks to load: ['DT18_00_basic', 'DT18_01_health_stats', 'DT18_02_others', 'DT18_03_roscore', 'DT18_05_duckiebot_base', 'DT18_06_dashboard'] INFO:dts:Stacks to run: ['DT18_00_basic', 'DT18_01_health_stats', 'DT18_03_roscore', 'DT18_06_dashboard'] DEBUG:dts:$ ['docker-compose', '-f', '/home/sakul1308/.dt-shell/commands/init_sd_card/stacks/master19/DT18_00_basic.yaml', 'config', '--quiet'] ERROR: .IOError: [Errno 13] Permission denied: '/home/sakul1308/.dt-shell/commands/init_sd_card/stacks/master19/DT18_00_basic.yaml'

dts : Traceback (most recent call last): : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/init.py", line 48, in cli_main : climain() : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/init.py", line 131, in climain : shell.onecmd(cmdline) : File "/home/linuxbrew/.linuxbrew/opt/python/lib/python3.7/cmd.py", line 217, in onecmd : return func(arg) : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/cli.py", line 400, in : do_command_lam = lambda s, w: do_command(klass, s, w) : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/dt_command_abs.py", line 47, in do_command : cls.command(shell, args) : File "/home/sakul1308/.dt-shell/commands/init_sd_card/command.py", line 230, in command : step2function[step_name](shell, parsed) : File "/home/sakul1308/.dt-shell/commands/init_sd_card/command.py", line 533, in step_setup : configure_images(parsed, user_data, add_file_local, add_file) : File "/home/sakul1308/.dt-shell/commands/init_sd_card/command.py", line 597, in configure_images : _run_cmd(['docker-compose', '-f', lpath, 'config', '--quiet']) : File "/home/sakul1308/.dt-shell/commands/init_sd_card/command.py", line 824, in _run_cmd : subprocess.check_call(cmd) : File "/home/linuxbrew/.linuxbrew/opt/python/lib/python3.7/subprocess.py", line 347, in check_call : raise CalledProcessError(retcode, cmd) : subprocess.CalledProcessError: Command '['docker-compose', '-f', '/home/sakul1308/.dt-shell/commands/init_sd_card/stacks/master19/DT18_00_basic.yaml', 'config', '--quiet']' returned non-zero exit status 1.

dts : If you think this is a bug, please report that you are using: :
: duckietown-shell-commands: 4.0.41 : duckietown-challenges: 4.0.30 : python: "3.7.4 (default, Jul 12 2019, 20:57:46) \n[GCC 5.4.0 20160609]" : duckietown-shell: 4.0.26 : encodings: : stdout: UTF-8 : stderr: UTF-8 : locale: UTF-8 ➜ ~ sudo docker-compose -f /home/sakul1308/.dt-shell/commands/init_sd_card/stacks/master19/DT18_00_basic.yaml config --quiet ERROR: .IOError: [Errno 13] Permission denied: '/home/sakul1308/.dt-shell/commands/init_sd_card/stacks/master19/DT18_00_basic.yaml'

LukyBo commented 5 years ago

I uninstalled docker-compose and reinstalled it via https://docs.docker.com/compose/install/#alternative-install-options. Now the init_sd_card command works!