Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Running AoC-Tiles
- ╭───────────────────── Traceback (most recent call last) ──────────────────────╮
- │ /Users/<redacted>/.cache/pre-commit/repor6k02vfn/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/repor6k02vfn/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/repor6k02vfn/py_env-python3.12/lib/pyth │
- │ on3.12/site-packages/aoc_tiles/make_tiles.py:175 in make_tiles │
- │ │
- │ 172 │ def make_tiles(self): │
- │ 173 │ │ self._ensure_is_not_running_already() │
- │ 174 │ │ print("Running AoC-Tiles") │
- │ ❱ 175 │ │ solve_data = self.compose_solve_data() │
- │ 176 │ │ logger.info("Found {} years with solutions", len(solve_data.ye │
- │ 177 │ │ for year, data in sorted(solve_data.year_to_data.items(), reve │
- │ 178 │ │ │ logger.debug("year={} data={}", year, data) │
- │ │
- │ /Users/<redacted>/.cache/pre-commit/repor6k02vfn/py_env-python3.12/lib/pyth │
- │ on3.12/site-packages/aoc_tiles/make_tiles.py:74 in compose_solve_data │
- │ │
- │ 71 │ │ │ day_to_scores = {} │
- │ 72 │ │ │ if is_leaderboard_needed: │
- │ 73 │ │ │ │ logger.debug("Requesting leaderboard for year {}", yea │
- │ ❱ 74 │ │ │ │ day_to_scores = request_leaderboard(year, self.config) │
- │ 75 │ │ │ │
- │ 76 │ │ │ day_to_stars = {} │
- │ 77 │
- │ │
- │ /Users/<redacted>/.cache/pre-commit/repor6k02vfn/py_env-python3.12/lib/pyth │
- │ on3.12/site-packages/aoc_tiles/leaderboard.py:71 in request_leaderboard │
- │ │
- │ 68 │ │ leaderboard_path.parent.mkdir(exist_ok=True, parents=True) │
- │ 69 │ │ with open(leaderboard_path, "w") as file: │
- │ 70 │ │ │ file.write(data) │
- │ ❱ 71 │ return _parse_leaderboard(leaderboard_path) │
- │ 72 │
- │ │
- │ /Users/<redacted>/.cache/pre-commit/repor6k02vfn/py_env-python3.12/lib/pyth │
- │ on3.12/site-packages/aoc_tiles/leaderboard.py:35 in _parse_leaderboard │
- │ │
- │ 32 │ │ if no_stars in html: │
- │ 33 │ │ │ return {} │
- │ 34 │ │ matches = re.findall(rf"{start}(.*?){end}", html, re.DOTALL | r │
- │ ❱ 35 │ │ assert len(matches) == 1, f"Found {'no' if len(matches) == 0 el │
- │ 36 │ │ table_rows = matches[0].strip().split("\n") │
- │ 37 │ │ day_to_scores = {} │
- │ 38 │ │ for line in table_rows: │
- ╰──────────────────────────────────────────────────────────────────────────────╯
- AssertionError: Found no leaderboard?!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement