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

Error on Apple Silicon when installing ComfyUI with 2.10.3 #658

Open
tanis2000 opened this issue May 29, 2024 · 4 comments
Open

Error on Apple Silicon when installing ComfyUI with 2.10.3 #658

tanis2000 opened this issue May 29, 2024 · 4 comments
Labels
area: packages Issues in running packages or python errors bug Something isn't working os-macos Issue affecting macOS builds

Comments

@tanis2000
Copy link

When I try to install the ComfyUI package the application closes and the error is the following:

Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
  File "/Volumes/CORSAIR/StabilityMatrix/Assets/Python310/lib/python3.10/site.py", line 617, in <module>
    main()
  File "/Volumes/CORSAIR/StabilityMatrix/Assets/Python310/lib/python3.10/site.py", line 604, in main
    known_paths = addsitepackages(known_paths)
  File "/Volumes/CORSAIR/StabilityMatrix/Assets/Python310/lib/python3.10/site.py", line 387, in addsitepackages
    addsitedir(sitedir, known_paths)
  File "/Volumes/CORSAIR/StabilityMatrix/Assets/Python310/lib/python3.10/site.py", line 226, in addsitedir
    addpackage(sitedir, name, known_paths)
  File "/Volumes/CORSAIR/StabilityMatrix/Assets/Python310/lib/python3.10/site.py", line 179, in addpackage
    for n, line in enumerate(f):
  File "/Volumes/CORSAIR/StabilityMatrix/Assets/Python310/lib/python3.10/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 37: invalid start byte
@tanis2000
Copy link
Author

An addendum, it looks like this is only happening when using an ExFAT volume for the data

@tanis2000
Copy link
Author

Some more info... it looks like this was an issue with venv and the filest that macOS creates to store the metadata on volumes that do not natively support them. All those files start with "._" and the error you see is that 0xb0 character which is actually the dot character.

It migth have been fixed in one of the Python 3.10.xx versions because I have been able to use venv on that volume with 3.10.14.

I am going to try to replace the one distributed with StabilityMatrix with a copy of my 3.10.14 and see if that makes any difference

mohnjiles added a commit to LykosAI/StabilityMatrix-Dev that referenced this issue Jun 12, 2024
Made "move" the default for drag & drop imports as the poll demands …
@ionite34
Copy link
Member

It seems this was a CPython bug python/cpython#114145 that was fixed first in the 3.10.14 release, we'll look into an update on our end.

@ionite34 ionite34 added bug Something isn't working area: packages Issues in running packages or python errors os-macos Issue affecting macOS builds labels Jun 19, 2024
@tanis2000
Copy link
Author

yes, that really looks like it. Thanks for looking it up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: packages Issues in running packages or python errors bug Something isn't working os-macos Issue affecting macOS builds
Projects
None yet
Development

No branches or pull requests

2 participants