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

dons`t find bits and bites #238

Open
BPhantom2 opened this issue Dec 29, 2024 · 1 comment
Open

dons`t find bits and bites #238

BPhantom2 opened this issue Dec 29, 2024 · 1 comment

Comments

@BPhantom2
Copy link

Starting server

To see the GUI go to: http://127.0.0.1:8188
FETCH DATA from: C:\Users\Samuel\Documents\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json [DONE]
got prompt
!!! Exception during processing !!! No package metadata was found for bitsandbytes
Traceback (most recent call last):
File "importlib\metadata_init_.py", line 397, in from_name
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Samuel\Documents\ComfyUI_windows_portable\ComfyUI\execution.py", line 327, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Samuel\Documents\ComfyUI_windows_portable\ComfyUI\execution.py", line 202, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Samuel\Documents\ComfyUI_windows_portable\ComfyUI\execution.py", line 174, in map_node_over_list
process_inputs(input_dict, i)
File "C:\Users\Samuel\Documents\ComfyUI_windows_portable\ComfyUI\execution.py", line 163, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Samuel\Documents\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-HunyuanVideoWrapper\nodes.py", line 582, in loadmodel
quantization_config = BitsAndBytesConfig(
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Samuel\Documents\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\utils\quantization_config.py", line 417, in init
self.post_init()
File "C:\Users\Samuel\Documents\ComfyUI_windows_portable\python_embeded\Lib\site-packages\transformers\utils\quantization_config.py", line 475, in post_init
if self.load_in_4bit and not version.parse(importlib.metadata.version("bitsandbytes")) >= version.parse(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "importlib\metadata_init
.py", line 889, in version
File "importlib\metadata_init
.py", line 862, in distribution
File "importlib\metadata_init_.py", line 399, in from_name
importlib.metadata.PackageNotFoundError: No package metadata was found for bitsandbytes

Prompt executed in 3.82 seconds

@gitmylo
Copy link

gitmylo commented Dec 30, 2024

I had the same issue, but it's resolved by installing bitsandbytes manually.

2 solutions

If you have comfyui manager, you can press the "Install PIP packages" button and put "bitsandbytes" in the input box dialog, then it asks you to restart comfyui, and when you do, it'll install the package for you. After that, it should work fine.

If you don't have comfyui manager, you can install bitsandbytes by doing pip install bitsandbytes in the python environment that your comfyui uses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants