Closed enzyme69 closed 1 year ago
Same error on MacOS M2
Yes, I am using M2 macOS. However, try also using PINOKIO to do the install. Seems successful, but then imy case, my Mac Mini has no camera, so I am using iPhone, but it's also failing to recognize camera.
So there are few issues:
I solved the webcam issue: https://github.com/radames/Real-Time-Latent-Consistency-Model/issues/10#issuecomment-1806573170
However, the install issue still persist. So I use Pinokio method.
hi @enzyme69 just fixed it removing the xformers for OSX on the requirements, please try it again https://github.com/radames/Real-Time-Latent-Consistency-Model/commit/ee4d6591e6791c2db474708e67642563ce4ff3f8
Still got this issue with self install.
Process SpawnProcess-1:
Traceback (most recent call last):
File "/Users/jimmygunawan/miniconda3/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/Users/jimmygunawan/miniconda3/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/Users/jimmygunawan/miniconda3/lib/python3.10/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
File "/Users/jimmygunawan/miniconda3/lib/python3.10/site-packages/uvicorn/server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "/Users/jimmygunawan/miniconda3/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/Users/jimmygunawan/miniconda3/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/Users/jimmygunawan/miniconda3/lib/python3.10/site-packages/uvicorn/server.py", line 68, in serve
config.load()
File "/Users/jimmygunawan/miniconda3/lib/python3.10/site-packages/uvicorn/config.py", line 473, in load
self.loaded_app = import_from_string(self.app)
File "/Users/jimmygunawan/miniconda3/lib/python3.10/site-packages/uvicorn/importer.py", line 24, in import_from_string
raise exc from None
File "/Users/jimmygunawan/miniconda3/lib/python3.10/site-packages/uvicorn/importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "/Users/jimmygunawan/miniconda3/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Users/jimmygunawan/Documents/LCMREALTIME/Real-Time-Latent-Consistency-Model/app-controlnet.py", line 16, in <module>
from diffusers import AutoencoderTiny, ControlNetModel
ImportError: cannot import name 'AutoencoderTiny' from 'diffusers' (/Users/jimmygunawan/.local/lib/python3.10/site-packages/diffusers/__init__.py)
Comparing it with the one running under Pinokio install -> which actually works
can you please double check diffusers version installed locally? for example
I get this: ImportError: cannot import name 'AutoencoderTiny' from 'diffusers' (/Users/jimmygunawan/venv/lib/python3.9/site-packages/diffusers/init.py)
diffusers.version '0.16.1'
ow @enzyme69 that's an very old diffusers version, please make sure you're on 0.23.0!!
@radames Aha, I'll try updating, but this is what I get from your requirements install etc.
it looks like you're using conda right?
I might use conda, but I also make venv.
Previously, I have this python environment mixed up (I am not a coder, but I follow the instructions manual).
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
imaginairy 12.0.2 requires torch<2.0.0,>=1.13.1, but you have torch 2.1.0 which is incompatible.
Successfully installed Pillow-10.1.0 accelerate-0.24.0 aiofiles-23.2.1 altair-5.1.2 annotated-types-0.6.0 anyio-3
And once again running, still getting same issue.
I thought that I have resolve the versioning. Weird.
Process SpawnProcess-1:
Traceback (most recent call last):
File "/Users/jimmygunawan/miniconda3/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/Users/jimmygunawan/miniconda3/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/Users/jimmygunawan/miniconda3/lib/python3.10/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
File "/Users/jimmygunawan/miniconda3/lib/python3.10/site-packages/uvicorn/server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "/Users/jimmygunawan/miniconda3/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/Users/jimmygunawan/miniconda3/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/Users/jimmygunawan/miniconda3/lib/python3.10/site-packages/uvicorn/server.py", line 68, in serve
config.load()
File "/Users/jimmygunawan/miniconda3/lib/python3.10/site-packages/uvicorn/config.py", line 473, in load
self.loaded_app = import_from_string(self.app)
File "/Users/jimmygunawan/miniconda3/lib/python3.10/site-packages/uvicorn/importer.py", line 24, in import_from_string
raise exc from None
File "/Users/jimmygunawan/miniconda3/lib/python3.10/site-packages/uvicorn/importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "/Users/jimmygunawan/miniconda3/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Users/jimmygunawan/Documents/LCMREALTIME/Real-Time-Latent-Consistency-Model/app-img2img.py", line 16, in <module>
from diffusers import AutoPipelineForImage2Image, AutoencoderTiny
ImportError: cannot import name 'AutoencoderTiny' from 'diffusers' (/Users/jimmygunawan/.local/lib/python3.10/site-packages/diffusers/__init__.py)
I use Warp AI, and did some trouble shooting on my conda, which seems to be affecting my env....
conda update conda conda install diffusers conda list --revisions
Now it seems to be working!
I kept getting this error when installing requirements: