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

Python version is above 3.10, patching the collections module. #125

Open
zhenqicai opened this issue Feb 2, 2025 · 1 comment
Open

Python version is above 3.10, patching the collections module. #125

zhenqicai opened this issue Feb 2, 2025 · 1 comment

Comments

@zhenqicai
Copy link

Image

@Magicloud
Copy link

Janus模块是3.10以下的,3.11以上导入就出错。

from janus.models import MultiModalityCausalLM, VLChatProcessor
/usr/local/lib/python3.11/dist-packages/transformers/models/auto/image_processing_auto.py:590: FutureWarning: The image_processor_class argument is deprecated and will be removed in v4.42. Please use `slow_image_processor_class`, or `fast_image_processor_class` instead
  warnings.warn(
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/janus/janus/models/__init__.py", line 21, in <module>
    from .modeling_vlm import MultiModalityCausalLM
  File "/janus/janus/models/modeling_vlm.py", line 21, in <module>
    from attrdict import AttrDict
  File "/usr/local/lib/python3.11/dist-packages/attrdict/__init__.py", line 5, in <module>
    from attrdict.mapping import AttrMap
  File "/usr/local/lib/python3.11/dist-packages/attrdict/mapping.py", line 4, in <module>
    from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.11/collections/__init__.py)

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