Comfy-Org / Comfy-Org/ComfyUI

No package metadata was found for bitsandbytes

Open
#11,766 6 comments 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Custom Node Testing

- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)

### Expected Behavior

expected to load text encoder

### Actual Behavior

the error show is displayed

### Steps to Reproduce

load I2V distilled workflow.

### Debug Logs

```powershell
got prompt
Using a slow image processor as `use_fast` is unset and a slow processor was saved with this model. `use_fast=True` will be the default behavior in v4.52, even if the model was saved with a slow processor. This will result in minor differences in outputs. You'll still be able to use a slow processor with `use_fast=False`.
Loaded processor from C:\Ai\New_Portable\Portable\ComfyUI\models\text_encoders\LTX2 - enhancement enabled
`torch_dtype` is deprecated! Use `dtype` instead!
!!! Exception during processing !!! No package metadata was found for bitsandbytes
Traceback (most recent call last):
File "importlib\metadata\__init__.py", line 407, in from_name
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Ai\New_Portable\Portable\ComfyUI\execution.py", line 518, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Ai\New_Portable\Portable\ComfyUI\execution.py", line 329, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Ai\New_Portable\Portable\ComfyUI\execution.py", line 303, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "C:\Ai\New_Portable\Portable\ComfyUI\execution.py", line 291, in process_inputs
result = f(**inputs)
File "C:\Ai\New_Portable\Portable\ComfyUI\custom_nodes\ComfyUI-LTXVideo\gemma_encoder.py", line 599, in load_model
return (comfy.sd.CLIP(clip_target),)
~~~~~~~~~~~~~^^^^^^^^^^^^^
File "C:\Ai\New_Portable\Portable\ComfyUI\comfy\sd.py", line 121, in __init__
self.cond_stage_model = clip(**(params))
~~~~^^^^^^^^^^^^
File "C:\Ai\New_Portable\Portable\ComfyUI\custom_nodes\ComfyUI-LTXVideo\gemma_encoder.py", line 497, in __init__
gemma_model = Gemma3ForConditionalGeneration.from_pretrained(
encoder_path,
local_files_only=True,
torch_dtype=dtype,
)
File "C:\Ai\New_Portable\Portable\python_embeded\Lib\site-packages\transformers\modeling_utils.py", line 277, in _wrapper
return func(*args, **kwargs)
File "C:\Ai\New_Portable\Portable\python_embeded\Lib\site-packages\transformers\modeling_utils.py", line 4881, in from_pretrained
hf_quantizer, config, dtype, device_map = get_hf_quantizer(
~~~~~~~~~~~~~~~~^
config, quantization_config, dtype, from_tf, from_flax, device_map, weights_only, user_agent
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "C:\Ai\New_Portable\Portable\python_embeded\Lib\site-packages\transformers\quantizers\auto.py", line 305, in get_hf_quantizer
config.quantization_config = AutoHfQuantizer.merge_quantization_configs(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
config.quantization_config, quantization_config
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "C:\Ai\New_Portable\Portable\python_embeded\Lib\site-packages\transformers\quantizers\auto.py", line 214, in merge_quantization_configs
quantization_config = AutoQuantizationConfig.from_dict(quantization_config)
File "C:\Ai\New_Portable\Portable\python_embeded\Lib\site-packages\transformers\quantizers\auto.py", line 140, in from_dict
return target_cls.from_dict(quantization_config_dict)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Ai\New_Portable\Portable\python_embeded\Lib\site-packages\transformers\utils\quantization_config.py", line 122, in from_dict
config = cls(**config_dict)
File "C:\Ai\New_Portable\Portable\python_embeded\Lib\site-packages\transformers\utils\quantization_config.py", line 510, in __init__
self.post_init()
~~~~~~~~~~~~~~^^
File "C:\Ai\New_Portable\Portable\python_embeded\Lib\site-packages\transformers\utils\quantization_config.py", line 568, in post_init
if self.load_in_4bit and not version.parse(importlib.metadata.version("bitsandbytes")) >= version.parse(
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "importlib\metadata\__init__.py", line 987, in version
File "importlib\metadata\__init__.py", line 960, in distribution
File "importlib\metadata\__init__.py", line 409, in from_name
importlib.metadata.PackageNotFoundError: No package metadata was found for bitsandbytes
```

### Other

"pip install bitsandbytes" does not work nor solve.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.