Advertisement
Guest User

Error message

a guest
Dec 24th, 2023
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.47 KB | None | 0 0
  1. [INFO] Stashing unstaged files to /Users/<redacted>/.cache/pre-commit/patch1703474459-41359.
  2. [INFO] Initializing environment for https://github.com/LiquidFun/aoc_tiles.
  3. [INFO] Installing environment for https://github.com/LiquidFun/aoc_tiles.
  4. [INFO] Once installed this environment will be reused.
  5. [INFO] This may take a few minutes...
  6. AOC Tiles................................................................Failed
  7. - hook id: aoc-tiles
  8. - exit code: 1
  9.  
  10. ╭───────────────────── Traceback (most recent call last) ──────────────────────╮
  11. │ /Users/<redacted>/.cache/pre-commit/repom6lfh5uf/py_env-python3.12/bin/aoct │
  12. │ iles:8 in <module> │
  13. │ │
  14. │ 5 from aoc_tiles.cli import main │
  15. │ 6 if __name__ == '__main__': │
  16. │ 7 │ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) │
  17. │ ❱ 8 │ sys.exit(main()) │
  18. │ 9 │
  19. │ │
  20. │ /Users/<redacted>/.cache/pre-commit/repom6lfh5uf/py_env-python3.12/lib/pyth │
  21. │ on3.12/site-packages/aoc_tiles/cli.py:87 in main │
  22. │ │
  23. │ 84 def main(): │
  24. │ 85 │ rich.traceback.install() │
  25. │ 86 │ config = cli_parse_config(Config) │
  26. │ ❱ 87 │ TileMaker(config).make_tiles() │
  27. │ 88 │
  28. │ 89 │
  29. │ 90 if __name__ == "__main__": │
  30. │ │
  31. │ /Users/<redacted>/.cache/pre-commit/repom6lfh5uf/py_env-python3.12/lib/pyth │
  32. │ on3.12/site-packages/aoc_tiles/make_tiles.py:172 in make_tiles │
  33. │ │
  34. │ 169 │ │ │ exit() │
  35. │ 170 │ │
  36. │ 171 │ def make_tiles(self): │
  37. │ ❱ 172 │ │ self._ensure_is_not_running_already() │
  38. │ 173 │ │ print("Running AoC-Tiles") │
  39. │ 174 │ │ solve_data = self.compose_solve_data() │
  40. │ 175 │ │ logger.info("Found {} years with solutions", len(solve_data.ye │
  41. │ │
  42. │ /Users/<redacted>/.cache/pre-commit/repom6lfh5uf/py_env-python3.12/lib/pyth │
  43. │ on3.12/site-packages/aoc_tiles/make_tiles.py:167 in │
  44. │ _ensure_is_not_running_already │
  45. │ │
  46. │ 164 │ │ │ file.write(str(new_text)) │
  47. │ 165 │ │
  48. │ 166 │ def _ensure_is_not_running_already(self): │
  49. │ ❱ 167 │ │ if self.config.running_lock_path in self.config.aoc_tiles_dir. │
  50. │ 168 │ │ │ print("AoC-Tiles is already running! Remove running.lock i │
  51. │ 169 │ │ │ exit() │
  52. │ 170 │
  53. │ │
  54. │ /usr/local/Cellar/[email protected]/3.12.1/Frameworks/Python.framework/Versions/3. │
  55. │ 12/lib/python3.12/pathlib.py:1056 in iterdir │
  56. │ │
  57. │ 1053 │ │ The children are yielded in arbitrary order, and the │
  58. │ 1054 │ │ special entries '.' and '..' are not included. │
  59. │ 1055 │ │ """ │
  60. │ ❱ 1056 │ │ for name in os.listdir(self): │
  61. │ 1057 │ │ │ yield self._make_child_relpath(name) │
  62. │ 1058 │ │
  63. │ 1059 │ def _scandir(self): │
  64. ╰──────────────────────────────────────────────────────────────────────────────╯
  65. FileNotFoundError: [Errno 2] No such file or directory: '.aoc_tiles'
  66.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement