Advertisement
Guest User

Bad escape

a guest
Dec 25th, 2023
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 KB | None | 0 0
  1. +--------------------- Traceback (most recent call last) ---------------------+
  2. | in _run_module_as_main:198 |
  3. | in _run_code:88 |
  4. | |
  5. | in <module>:7 |
  6. | |
  7. | C:\Users\<user>\.cache\pre-commit\repomzsfvd3s\py_env-python3.12\Lib\site-p |
  8. | ackages\aoc_tiles\cli.py:87 in main |
  9. | |
  10. | 84 def main(): |
  11. | 85 rich.traceback.install() |
  12. | 86 config = cli_parse_config(Config) |
  13. | > 87 TileMaker(config).make_tiles() |
  14. | 88 |
  15. | 89 |
  16. | 90 if __name__ == "__main__": |
  17. | |
  18. | C:\Users\<user>\.cache\pre-commit\repomzsfvd3s\py_env-python3.12\Lib\site-p |
  19. | ackages\aoc_tiles\make_tiles.py:179 in make_tiles |
  20. | |
  21. | 176 logger.info("Found {} years with solutions", len(solve_data.y |
  22. | 177 for year, data in sorted(solve_data.year_to_data.items(), rev |
  23. | 178 logger.debug("year={} data={}", year, data) |
  24. | > 179 self.handle_year(year, data) |
  25. | 180 |
  26. | 181 if self.config.auto_add_tiles_to_git in ["add", "amend"]: |
  27. | 182 self.solution_finder.git_add(self.config.image_dir) |
  28. | |
  29. | C:\Users\<user>\.cache\pre-commit\repomzsfvd3s\py_env-python3.12\Lib\site-p |
  30. | ackages\aoc_tiles\make_tiles.py:161 in handle_year |
  31. | |
  32. | 158 f"README.md! Make sure to add them to the README at { |
  33. | 159 ) |
  34. | 160 pattern = re.compile(rf"{begin}.*{end}", re.DOTALL | re.M |
  35. | > 161 new_text = pattern.sub(f"{begin}\n{html}\n{end}", text) |
  36. | 162 |
  37. | 163 with open(self.config.readme_path, "w", encoding="utf-8") as |
  38. | 164 file.write(str(new_text)) |
  39. | |
  40. | C:\Python312\Lib\re\__init__.py:334 in _compile_template |
  41. | |
  42. | 331 @functools.lru_cache(_MAXCACHE) |
  43. | 332 def _compile_template(pattern, repl): |
  44. | 333 # internal: compile replacement pattern |
  45. | > 334 return _sre.template(pattern, _parser.parse_template(repl, patter |
  46. | 335 |
  47. | 336 # register myself for pickling |
  48. | 337 |
  49. | |
  50. | C:\Python312\Lib\re\_parser.py:1068 in parse_template |
  51. | |
  52. | 1065 this = chr(ESCAPES[this][1]) |
  53. | 1066 except KeyError: |
  54. | 1067 if c in ASCIILETTERS: |
  55. | > 1068 raise s.error('bad escape %s' % this, len(th |
  56. | 1069 lappend(this) |
  57. | 1070 else: |
  58. | 1071 lappend(this) |
  59. +-----------------------------------------------------------------------------+
  60. error: bad escape \C at position 81 (line 5, column 17)
  61. Running AoC-Tiles
  62. Leaderboard for 2022 is younger than 30 minutes, skipping download in order to avoid DDOS.
  63. Leaderboard for 2023 is complete, no need to download.
  64. === Generating table for year 2023 ===
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement