This message was deleted.
# ask-for-help
s
This message was deleted.
j
Hey! could you share the error messages that you are facing?
r
Copy code
onediffusion start stable-diffusion-xl
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/onediffusion/_configuration.py832 RuntimeWarning: The empty option group “StableDiffusionConfig options” was found (line 832) for “model_start”. The group will not be added. return cog.optgroup.group(f”{cls.name} options”)(f) /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/onediffusion/_configuration.py832 RuntimeWarning: The empty option group “StableDiffusionXLConfig options” was found (line 832) for “model_start”. The group will not be added. return cog.optgroup.group(f”{cls.name} options”)(f) 2023-10-12T130641+0200 [INFO] [cli] Environ for worker 0: set CPU thread count to 8 2023-10-12T130641+0200 [INFO] [cli] Prometheus metrics for HTTP BentoServer from “service.py:svc” can be accessed at http://localhost:3000/metrics. 2023-10-12T130642+0200 [INFO] [cli] Starting production HTTP BentoServer from “service.py:svc” listening on http://0.0.0.0:3000 (Press CTRL+C to quit) Traceback (most recent call last): File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py”, line 197, in _run_module_as_main return _run_code(code, main_globals, None, File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py”, line 87, in _run_code exec(code, run_globals) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/bentoml_cli/worker/http_api_server.py”, line 197, in <module> main() # pylint: disable=no-value-for-parameter File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py”, line 1130, in call return self.main(*args, **kwargs) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py”, line 1055, in main rv = self.invoke(ctx) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py”, line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py”, line 760, in invoke return __callback(*args, **kwargs) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/bentoml_cli/worker/http_api_server.py”, line 193, in main uvicorn.Server(config).run(sockets=[sock]) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/server.py”, line 61, in run return asyncio.run(self.serve(sockets=sockets)) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/runners.py”, line 44, in run return loop.run_until_complete(main) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py”, line 642, in run_until_complete return future.result() File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/server.py”, line 68, in serve config.load() File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/config.py”, line 459, in load ws_protocol_class = import_from_string(WS_PROTOCOLS[self.ws]) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/importer.py”, line 24, in import_from_string raise exc from None File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/importer.py”, line 21, in import_from_string module = importlib.import_module(module_str) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py”, line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File “<frozen importlib._bootstrap>“, line 1030, in _gcd_import File “<frozen importlib._bootstrap>“, line 1007, in _find_and_load File “<frozen importlib._bootstrap>“, line 986, in _find_and_load_unlocked File “<frozen importlib._bootstrap>“, line 680, in _load_unlocked File “<frozen importlib._bootstrap_external>“, line 850, in exec_module File “<frozen importlib._bootstrap>“, line 228, in _call_with_frames_removed File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/protocols/websockets/auto.py”, line 17, in <module> from uvicorn.protocols.websockets.websockets_impl import WebSocketProtocol File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/protocols/websockets/websockets_impl.py”, line 18, in <module> from websockets.datastructures import Headers ModuleNotFoundError: No module named ‘websockets.datastructures’ Traceback (most recent call last): File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py”, line 197, in _run_module_as_main return _run_code(code, main_globals, None, File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py”, line 87, in _run_code exec(code, run_globals) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/bentoml_cli/worker/http_api_server.py”, line 197, in <module> main() # pylint: disable=no-value-for-parameter File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py”, line 1130, in call return self.main(*args, **kwargs) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py”, line 1055, in main rv = self.invoke(ctx) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py”, line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py”, line 760, in invoke return __callback(*args, **kwargs) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/bentoml_cli/worker/http_api_server.py”, line 193, in main uvicorn.Server(config).run(sockets=[sock]) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/server.py”, line 61, in run return asyncio.run(self.serve(sockets=sockets)) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/runners.py”, line 44, in run return loop.run_until_complete(main) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py”, line 642, in run_until_complete return future.result() File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/server.py”, line 68, in serve config.load() File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/config.py”, line 459, in load ws_protocol_class = import_from_string(WS_PROTOCOLS[self.ws]) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/importer.py”, line 24, in import_from_string raise exc from None File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/importer.py”, line 21, in import_from_string module = importlib.import_module(module_str) File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py”, line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File “<frozen importlib._bootstrap>“, line 1030, in _gcd_import File “<frozen importlib._bootstrap>“, line 1007, in _find_and_load File “<frozen importlib._bootstrap>“, line 986, in _find_and_load_unlocked File “<frozen importlib._bootstrap>“, line 680, in _load_unlocked File “<frozen importlib._bootstrap_external>“, line 850, in exec_module File “<frozen importlib._bootstrap>“, line 228, in _call_with_frames_removed File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/protocols/websockets/auto.py”, line 17, in <module> from uvicorn.protocols.websockets.websockets_impl import WebSocketProtocol File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicorn/protocols/websockets/websockets_impl.py”, line 18, in <module> from websockets.datastructures import Headers
I did some fuck up first when I downloaded - it broke then and I did some hard reset with deleting bento & onediffusion
and I guess download was stored in some temp folder because redownload took seconds
j
maybe try pip installing the package again?
pip install onediffusion --forece-reinstall --no-cache
it is recommended to use a virtual environment to install the packages for your project!
r
ok I’ll have a look into it
tomorrow