Skip to content

Fix failing job Update Transformers metadata after #43514#44941

Merged
ydshieh merged 3 commits intomainfrom
fix_minor_failing_job
Mar 23, 2026
Merged

Fix failing job Update Transformers metadata after #43514#44941
ydshieh merged 3 commits intomainfrom
fix_minor_failing_job

Conversation

@ydshieh
Copy link
Copy Markdown
Collaborator

@ydshieh ydshieh commented Mar 23, 2026

What does this PR do?

Fix the failing job after #43514

(the fix is effefctive, see here)

Update Transformers metadata

https://github.com/huggingface/transformers/actions/runs/23300744413/job/67760811968

Run python utils/update_metadata.py --token *** --commit_sha 884333368ff329090c73bd00e57996727f301de3
Traceback (most recent call last):
  File "/home/runner/work/transformers/transformers/utils/update_metadata.py", line 347, in <module>
    update_metadata(args.token, args.commit_sha)
  File "/home/runner/work/transformers/transformers/utils/update_metadata.py", line 238, in update_metadata
    frameworks_table = get_frameworks_table()
  File "/home/runner/work/transformers/transformers/utils/update_metadata.py", line 183, in get_frameworks_table
    if t in transformers_module.models.auto.processing_auto.PROCESSOR_MAPPING_NAMES:
  File "/home/runner/.local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 2254, in __getattr__
    value = self._get_module(name)
  File "/home/runner/.local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 2394, in _get_module
    raise e
  File "/home/runner/.local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 2392, in _get_module
    return importlib.import_module("." + module_name, self.__name__)
  File "/usr/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 "/home/runner/work/transformers/transformers/src/transformers/models/auto/processing_auto.py", line 30, in <module>
    from ...video_processing_utils import BaseVideoProcessor
  File "/home/runner/work/transformers/transformers/src/transformers/video_processing_utils.py", line 29, in <module>
    from .image_utils import (
ImportError: cannot import name 'PILImageResampling' from 'transformers.image_utils' (/home/runner/work/transformers/transformers/src/transformers/image_utils.py)
Error: Process completed with exit code 1.

@ydshieh ydshieh changed the title fix Fix failing job Update Transformers metadata after #43514 Mar 23, 2026
Comment on lines +70 to +71
if is_vision_available():
from .image_utils import PILImageResampling
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this patten also appears in

src/transformers/processing_utils.py

where we have

if is_torch_available():
    import torch

    from .modeling_utils import PreTrainedAudioTokenizerBase

if is_vision_available():
    from .image_utils import PILImageResampling

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@github-actions
Copy link
Copy Markdown
Contributor

View the CircleCI Test Summary for this PR:

https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=44941&sha=634ba7

@ydshieh ydshieh merged commit 0f19dec into main Mar 23, 2026
29 checks passed
@ydshieh ydshieh deleted the fix_minor_failing_job branch March 23, 2026 13:41
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

Successfully merging this pull request may close these issues.

3 participants