anishathalye / dotbot

A tool that bootstraps your dotfiles ⚡️
MIT License
7.04k stars 291 forks source link

module 'yaml' has no attribute 'safe_load' #318

Closed dagadbm closed 2 years ago

dagadbm commented 2 years ago

I am using a Mac M2 and I get this error sometimes:

Could not read config file: module 'yaml' has no attribute 'safe_load'

I already have all the submodules configured and updated.

Does anyone know what the problem might be and how I can debug this?

dagadbm commented 2 years ago

Here is the shell script im using:

#!/usr/bin/env bash

set -e

CONFIG="dotbot.conf.yaml"
DOTBOT_DIR="submodules/dotbot"

DOTBOT_BIN="bin/dotbot"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

cd "${BASEDIR}"

"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
dagadbm commented 2 years ago

I fixed this.

dotbot install script has changed but its weird because I have submodules being updated like so:

https://github.com/dagadbm/dotfiles/blob/master/submodules.sh

oh well. at least its working again.