streamrip icon indicating copy to clipboard operation
streamrip copied to clipboard

Unexpected Char Error

Open djdaas opened this issue 3 years ago • 0 comments

Describe the bug

UnexpectedCharError

Unexpected character: 'V' at line 31 col 11

at AppData\Local\Programs\Python\Python310\lib\site-packages\tomlkit\parser.py:737 in _parse_array 733│ # consume closing bracket, EOF here doesn't matter 734│ self.inc() 735│ break 736│ → 737│ raise self.parse_error(UnexpectedCharError, self._current) 738│ 739│ try: 740│ res = Array(elems, Trivia()) 741│ except ValueError:

If this was unexpected, please open a Bug Report at https://github.com/nathom/streamrip/issues/new/choose

Command Used

rip config

Debug Traceback

Stack trace:

  16  AppData\Local\Programs\Python\Python310\lib\site-packages\cleo\application.py:330 in run
       328│
       329│             try:
     → 330│                 exit_code = self._run(io)
       331│             except Exception as e:
       332│                 if not self._catch_exceptions:

  15  AppData\Local\Programs\Python\Python310\lib\site-packages\rip\cli.py:760 in _run
       758│             logger.addHandler(fh)
       759│
     → 760│         super()._run(io)
       761│
       762│     def create_io(self, input=None, output=None, error_output=None):

  14  AppData\Local\Programs\Python\Python310\lib\site-packages\cleo\application.py:425 in _run
       423│                 io.set_input(ArgvInput(argv))
       424│
     → 425│         exit_code = self._run_command(command, io)
       426│         self._running_command = None
       427│

  13  AppData\Local\Programs\Python\Python310\lib\site-packages\cleo\application.py:432 in _run_command
       430│     def _run_command(self, command: Command, io: IO) -> int:
       431│         if self._event_dispatcher is None:
     → 432│             return command.run(io)
       433│
       434│         # Bind before the console.command event,

  12  AppData\Local\Programs\Python\Python310\lib\site-packages\cleo\commands\base_command.py:118 in run
       116│         io.input.validate()
       117│
     → 118│         status_code = self.execute(io)
       119│
       120│         if status_code is None:

  11  AppData\Local\Programs\Python\Python310\lib\site-packages\cleo\commands\command.py:85 in execute
        83│
        84│         try:
     →  85│             return self.handle()
        86│         except KeyboardInterrupt:
        87│             return 1

  10  AppData\Local\Programs\Python\Python310\lib\site-packages\rip\cli.py:420 in handle
       418│         from .constants import CONFIG_DIR, CONFIG_PATH
       419│
     → 420│         self._config = Config()
       421│
       422│         if self.option("path"):

   9  AppData\Local\Programs\Python\Python310\lib\site-packages\rip\config.py:57 in __init__
        55│
        56│         if os.path.isfile(self._path):
     →  57│             self.load()
        58│             if self.file["misc"]["version"] != self.defaults["misc"]["version"]:
        59│                 secho(

   8  AppData\Local\Programs\Python\Python310\lib\site-packages\rip\config.py:136 in load
       134│         """Load infomation from the config files, making a deepcopy."""
       135│         with open(self._path) as cfg:
     → 136│             for k, v in tomlkit.loads(cfg.read().strip()).items():
       137│                 self.file[k] = v
       138│                 if hasattr(v, "copy"):

   7  AppData\Local\Programs\Python\Python310\lib\site-packages\tomlkit\api.py:34 in loads
        32│     Alias for parse().
        33│     """
     →  34│     return parse(string)
        35│
        36│

   6  AppData\Local\Programs\Python\Python310\lib\site-packages\tomlkit\api.py:51 in parse
        49│     Parses a string into a TOMLDocument.
        50│     """
     →  51│     return Parser(string).parse()
        52│
        53│

   5  AppData\Local\Programs\Python\Python310\lib\site-packages\tomlkit\parser.py:160 in parse
        158│
        159│         while not self.end():
     →  160│             key, value = self._parse_table()
        161│             if isinstance(value, Table) and value.is_aot_element():
        162│                 # This is just the first table in an AoT. Parse the rest of the array

   4  AppData\Local\Programs\Python\Python310\lib\site-packages\tomlkit\parser.py:1154 in _parse_table
       1152│
       1153│         while not self.end():
     → 1154│             item = self._parse_item()
       1155│             if item:
       1156│                 _key, item = item

   3  AppData\Local\Programs\Python\Python310\lib\site-packages\tomlkit\parser.py:306 in _parse_item
        304│                     break
        305│
     →  306│         return self._parse_key_value(True)
        307│
        308│     def _parse_comment_trail(self):  # type: () -> Tuple[str, str, str]

   2  AppData\Local\Programs\Python\Python310\lib\site-packages\tomlkit\parser.py:397 in _parse_key_value
        395│
        396│         # Value
     →  397│         val = self._parse_value()
        398│         # Comment
        399│         if parse_comment:

   1  AppData\Local\Programs\Python\Python310\lib\site-packages\tomlkit\parser.py:569 in _parse_value
        567│             return self._parse_false()
        568│         elif c == "[":
     →  569│             return self._parse_array()
        570│         elif c == "{":
        571│             return self._parse_inline_table()

  UnexpectedCharError

  Unexpected character: 'V' at line 31 col 11

  at AppData\Local\Programs\Python\Python310\lib\site-packages\tomlkit\parser.py:737 in _parse_array
       733│                 # consume closing bracket, EOF here doesn't matter
       734│                 self.inc()
       735│                 break
       736│
    →  737│             raise self.parse_error(UnexpectedCharError, self._current)
       738│
       739│         try:
       740│             res = Array(elems, Trivia())
       741│         except ValueError:

If this was unexpected, please open a Bug Report at https://github.com/nathom/streamrip/issues/new/choose

Config File

UnexpectedCharError

  Unexpected character: 'V' at line 31 col 11

  at AppData\Local\Programs\Python\Python310\lib\site-packages\tomlkit\parser.py:737 in _parse_array
       733│                 # consume closing bracket, EOF here doesn't matter
       734│                 self.inc()
       735│                 break
       736│
    →  737│             raise self.parse_error(UnexpectedCharError, self._current)
       738│
       739│         try:
       740│             res = Array(elems, Trivia())
       741│         except ValueError:

If this was unexpected, please open a Bug Report at https://github.com/nathom/streamrip/issues/new/choose

Operating System

Windows

streamrip version

1.9.5

Screenshots and recordings

image

Additional context

No response

djdaas avatar Aug 01 '22 06:08 djdaas