Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [INFO] Stashing unstaged files to /Users/<redacted>/.cache/pre-commit/patch1703474459-41359.
- [INFO] Initializing environment for https://github.com/LiquidFun/aoc_tiles.
- [INFO] Installing environment for https://github.com/LiquidFun/aoc_tiles.
- [INFO] Once installed this environment will be reused.
- [INFO] This may take a few minutes...
- AOC Tiles................................................................Failed
- - hook id: aoc-tiles
- - exit code: 1
- ╭───────────────────── Traceback (most recent call last) ──────────────────────╮
- │ /Users/<redacted>/.cache/pre-commit/repom6lfh5uf/py_env-python3.12/bin/aoct │
- │ iles:8 in <module> │
- │ │
- │ 5 from aoc_tiles.cli import main │
- │ 6 if __name__ == '__main__': │
- │ 7 │ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) │
- │ ❱ 8 │ sys.exit(main()) │
- │ 9 │
- │ │
- │ /Users/<redacted>/.cache/pre-commit/repom6lfh5uf/py_env-python3.12/lib/pyth │
- │ on3.12/site-packages/aoc_tiles/cli.py:87 in main │
- │ │
- │ 84 def main(): │
- │ 85 │ rich.traceback.install() │
- │ 86 │ config = cli_parse_config(Config) │
- │ ❱ 87 │ TileMaker(config).make_tiles() │
- │ 88 │
- │ 89 │
- │ 90 if __name__ == "__main__": │
- │ │
- │ /Users/<redacted>/.cache/pre-commit/repom6lfh5uf/py_env-python3.12/lib/pyth │
- │ on3.12/site-packages/aoc_tiles/make_tiles.py:172 in make_tiles │
- │ │
- │ 169 │ │ │ exit() │
- │ 170 │ │
- │ 171 │ def make_tiles(self): │
- │ ❱ 172 │ │ self._ensure_is_not_running_already() │
- │ 173 │ │ print("Running AoC-Tiles") │
- │ 174 │ │ solve_data = self.compose_solve_data() │
- │ 175 │ │ logger.info("Found {} years with solutions", len(solve_data.ye │
- │ │
- │ /Users/<redacted>/.cache/pre-commit/repom6lfh5uf/py_env-python3.12/lib/pyth │
- │ on3.12/site-packages/aoc_tiles/make_tiles.py:167 in │
- │ _ensure_is_not_running_already │
- │ │
- │ 164 │ │ │ file.write(str(new_text)) │
- │ 165 │ │
- │ 166 │ def _ensure_is_not_running_already(self): │
- │ ❱ 167 │ │ if self.config.running_lock_path in self.config.aoc_tiles_dir. │
- │ 168 │ │ │ print("AoC-Tiles is already running! Remove running.lock i │
- │ 169 │ │ │ exit() │
- │ 170 │
- │ │
- │ /usr/local/Cellar/[email protected]/3.12.1/Frameworks/Python.framework/Versions/3. │
- │ 12/lib/python3.12/pathlib.py:1056 in iterdir │
- │ │
- │ 1053 │ │ The children are yielded in arbitrary order, and the │
- │ 1054 │ │ special entries '.' and '..' are not included. │
- │ 1055 │ │ """ │
- │ ❱ 1056 │ │ for name in os.listdir(self): │
- │ 1057 │ │ │ yield self._make_child_relpath(name) │
- │ 1058 │ │
- │ 1059 │ def _scandir(self): │
- ╰──────────────────────────────────────────────────────────────────────────────╯
- FileNotFoundError: [Errno 2] No such file or directory: '.aoc_tiles'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement