Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 7542: character maps to <undefined> #6822

Open
1 task done
bgiesing opened this issue Sep 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bgiesing
Copy link

bgiesing commented Sep 8, 2024

Is there an existing issue for this problem?

  • I have searched the existing issues

Operating system

Windows

GPU vendor

Nvidia (CUDA)

GPU model

RTX 3060

GPU VRAM

12GB

Version number

4.2.9

Browser

Arc 1.18.0.53228

Python dependencies

No response

What happened

I installed with the installer which went successful, clicked invoke.bat, typed 1 to launch the GUI, then this error happened

Starting the InvokeAI browser-based UI..
[2024-09-08 06:09:51,880]::[InvokeAI]::INFO --> Patchmatch initialized
[2024-09-08 06:09:53,369]::[InvokeAI]::INFO --> Using torch device: NVIDIA GeForce RTX 3060
[2024-09-08 06:09:54,625]::[InvokeAI]::INFO --> cuDNN version: 8801
[2024-09-08 06:09:54,666]::[uvicorn.error]::INFO --> Started server process [11788]
[2024-09-08 06:09:54,666]::[uvicorn.error]::INFO --> Waiting for application startup.
[2024-09-08 06:09:54,666]::[InvokeAI]::INFO --> InvokeAI version 4.2.9
[2024-09-08 06:09:54,667]::[InvokeAI]::INFO --> Root directory = C:\Users\me\invokeai
[2024-09-08 06:09:54,671]::[InvokeAI]::INFO --> Initializing database at C:\Users\me\invokeai\databases\invokeai.db
[2024-09-08 06:09:54,680]::[uvicorn.error]::ERROR --> Traceback (most recent call last):
  File "C:\Users\me\invokeai\.venv\Lib\site-packages\starlette\routing.py", line 732, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "C:\Users\me\AppData\Local\Programs\Python\Python311\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\me\invokeai\.venv\Lib\site-packages\invokeai\app\api_app.py", line 65, in lifespan
    ApiDependencies.initialize(config=app_config, event_handler_id=event_handler_id, loop=loop, logger=logger)
  File "C:\Users\me\invokeai\.venv\Lib\site-packages\invokeai\app\api\dependencies.py", line 152, in initialize
    ApiDependencies.invoker = Invoker(services)
                              ^^^^^^^^^^^^^^^^^
  File "C:\Users\me\invokeai\.venv\Lib\site-packages\invokeai\app\services\invoker.py", line 14, in __init__
    self._start()
  File "C:\Users\me\invokeai\.venv\Lib\site-packages\invokeai\app\services\invoker.py", line 31, in _start
    self.__start_service(getattr(self.services, service))
  File "C:\Users\me\invokeai\.venv\Lib\site-packages\invokeai\app\services\invoker.py", line 20, in __start_service
    start_op(self)
  File "C:\Users\me\invokeai\.venv\Lib\site-packages\invokeai\app\services\model_manager\model_manager_default.py", line 59, in start
    service.start(invoker)
  File "C:\Users\me\invokeai\.venv\Lib\site-packages\invokeai\app\services\model_install\model_install_default.py", line 120, in start
    self._migrate_yaml()
  File "C:\Users\me\invokeai\.venv\Lib\site-packages\invokeai\app\services\model_install\model_install_default.py", line 300, in _migrate_yaml
    legacy_models_yaml = yaml.safe_load(file)
                         ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\me\invokeai\.venv\Lib\site-packages\yaml\__init__.py", line 125, in safe_load
    return load(stream, SafeLoader)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\me\invokeai\.venv\Lib\site-packages\yaml\__init__.py", line 79, in load
    loader = Loader(stream)
             ^^^^^^^^^^^^^^
  File "C:\Users\me\invokeai\.venv\Lib\site-packages\yaml\loader.py", line 34, in __init__
    Reader.__init__(self, stream)
  File "C:\Users\me\invokeai\.venv\Lib\site-packages\yaml\reader.py", line 85, in __init__
    self.determine_encoding()
  File "C:\Users\me\invokeai\.venv\Lib\site-packages\yaml\reader.py", line 124, in determine_encoding
    self.update_raw()
  File "C:\Users\me\invokeai\.venv\Lib\site-packages\yaml\reader.py", line 178, in update_raw
    data = self.stream.read(size)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\me\AppData\Local\Programs\Python\Python311\Lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 7542: character maps to <undefined>

[2024-09-08 06:09:54,681]::[uvicorn.error]::ERROR --> Application startup failed. Exiting.

What you expected to happen

The app to launch

How to reproduce the problem

No response

Additional context

No response

Discord username

No response

@bgiesing bgiesing added the bug Something isn't working label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant