Advertisement
Guest User

Untitled

a guest
Dec 25th, 2023
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.71 KB | None | 0 0
  1. Running AoC-Tiles
  2. ╭───────────────────── Traceback (most recent call last) ──────────────────────╮
  3. │ /Users/<redacted>/.cache/pre-commit/repor6k02vfn/py_env-python3.12/bin/aoct │
  4. │ iles:8 in <module> │
  5. │ │
  6. │ 5 from aoc_tiles.cli import main │
  7. │ 6 if __name__ == '__main__': │
  8. │ 7 │ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) │
  9. │ ❱ 8 │ sys.exit(main()) │
  10. │ 9 │
  11. │ │
  12. │ /Users/<redacted>/.cache/pre-commit/repor6k02vfn/py_env-python3.12/lib/pyth │
  13. │ on3.12/site-packages/aoc_tiles/cli.py:87 in main │
  14. │ │
  15. │ 84 def main(): │
  16. │ 85 │ rich.traceback.install() │
  17. │ 86 │ config = cli_parse_config(Config) │
  18. │ ❱ 87 │ TileMaker(config).make_tiles() │
  19. │ 88 │
  20. │ 89 │
  21. │ 90 if __name__ == "__main__": │
  22. │ │
  23. │ /Users/<redacted>/.cache/pre-commit/repor6k02vfn/py_env-python3.12/lib/pyth │
  24. │ on3.12/site-packages/aoc_tiles/make_tiles.py:175 in make_tiles │
  25. │ │
  26. │ 172 │ def make_tiles(self): │
  27. │ 173 │ │ self._ensure_is_not_running_already() │
  28. │ 174 │ │ print("Running AoC-Tiles") │
  29. │ ❱ 175 │ │ solve_data = self.compose_solve_data() │
  30. │ 176 │ │ logger.info("Found {} years with solutions", len(solve_data.ye │
  31. │ 177 │ │ for year, data in sorted(solve_data.year_to_data.items(), reve │
  32. │ 178 │ │ │ logger.debug("year={} data={}", year, data) │
  33. │ │
  34. │ /Users/<redacted>/.cache/pre-commit/repor6k02vfn/py_env-python3.12/lib/pyth │
  35. │ on3.12/site-packages/aoc_tiles/make_tiles.py:74 in compose_solve_data │
  36. │ │
  37. │ 71 │ │ │ day_to_scores = {} │
  38. │ 72 │ │ │ if is_leaderboard_needed: │
  39. │ 73 │ │ │ │ logger.debug("Requesting leaderboard for year {}", yea │
  40. │ ❱ 74 │ │ │ │ day_to_scores = request_leaderboard(year, self.config) │
  41. │ 75 │ │ │ │
  42. │ 76 │ │ │ day_to_stars = {} │
  43. │ 77 │
  44. │ │
  45. │ /Users/<redacted>/.cache/pre-commit/repor6k02vfn/py_env-python3.12/lib/pyth │
  46. │ on3.12/site-packages/aoc_tiles/leaderboard.py:71 in request_leaderboard │
  47. │ │
  48. │ 68 │ │ leaderboard_path.parent.mkdir(exist_ok=True, parents=True) │
  49. │ 69 │ │ with open(leaderboard_path, "w") as file: │
  50. │ 70 │ │ │ file.write(data) │
  51. │ ❱ 71 │ return _parse_leaderboard(leaderboard_path) │
  52. │ 72 │
  53. │ │
  54. │ /Users/<redacted>/.cache/pre-commit/repor6k02vfn/py_env-python3.12/lib/pyth │
  55. │ on3.12/site-packages/aoc_tiles/leaderboard.py:35 in _parse_leaderboard │
  56. │ │
  57. │ 32 │ │ if no_stars in html: │
  58. │ 33 │ │ │ return {} │
  59. │ 34 │ │ matches = re.findall(rf"{start}(.*?){end}", html, re.DOTALL | r │
  60. │ ❱ 35 │ │ assert len(matches) == 1, f"Found {'no' if len(matches) == 0 el │
  61. │ 36 │ │ table_rows = matches[0].strip().split("\n") │
  62. │ 37 │ │ day_to_scores = {} │
  63. │ 38 │ │ for line in table_rows: │
  64. ╰──────────────────────────────────────────────────────────────────────────────╯
  65. AssertionError: Found no leaderboard?!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement