[Bug]: Could not import module 'AutoConfig'. Are this object's requirements defined correctly?
Author: Holmes2002Created Jul 17, 2026Updated Sep 17, 2026
Labelsbugstale
软件环境
- paddlepaddle:
- paddlepaddle-gpu: 3.4.0
- paddleformers: 1.3.0重复问题
- I have searched the existing issues
错误描述
Hi, I installed PaddleFormers in Colab Pro but I countered this problem
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
/content/PaddleFormers/paddleformers/utils/lazy_import.py in __getattr__(self, name)
71 try:
---> 72 module = self._get_module(self._class_to_module[name])
73 value = getattr(module, name)
17 frames
ModuleNotFoundError: No module named 'paddlefleet_ops'
The above exception was the direct cause of the following exception:
ModuleNotFoundError Traceback (most recent call last)
/content/PaddleFormers/paddleformers/utils/lazy_import.py in __getattr__(self, name)
73 value = getattr(module, name)
74 except (ModuleNotFoundError, RuntimeError) as e:
---> 75 raise ModuleNotFoundError(
76 f"Could not import module '{name}'. Are this object's requirements defined correctly?"
77 ) from e
ModuleNotFoundError: Could not import module 'AutoConfig'. Are this object's requirements defined correctly?
Does anyone help me solve this probelm ?稳定复现步骤 & 代码
!git clone https://github.com/PaddlePaddle/PaddleFormers.git %cd PaddleFormers
cuda12.6
!python -m pip install -e '.[paddlefleet]' --extra-index-url https://www.paddlepaddle.org.cn/packages/nightly/cu126/ --extra-index-url https://www.paddlepaddle.org.cn/packages/stable/cu126/
Source: PaddlePaddle/PaddleFormers