#330·OneForAll

Docker镜像运行出错

Author: Dylan-Li8Created Jul 18, 2023Updated Dec 7, 2025
Labelsbug

是否使用了最新代码 是或否(如果不是的话尝试克隆最新的代码再跑一下!)

Bug描述 执行docker运行容器后提示:

bash
docker run -it --rm -v ~/results:/OneForAll/results -v ~/.config:/OneForAll/config shmilylty/oneforall --target 58.com run
Traceback (most recent call last):
  File "oneforall.py", line 15, in <module>
    import export
  File "/OneForAll/export.py", line 13, in <module>
    from common import utils
  File "/OneForAll/common/utils.py", line 21, in <module>
    from common.database import Database
  File "/OneForAll/common/database.py", line 8, in <module>
    from config.log import logger
ModuleNotFoundError: No module named 'config.log'

运行环境

  • 系统:CentOS 7
  • Python版本:Docker
  • OneForAll版本:最新Docker镜像

报错文本

bash
docker run -it --rm -v ~/results:/OneForAll/results -v ~/.config:/OneForAll/config shmilylty/oneforall --target job5156.com run
Traceback (most recent call last):
  File "oneforall.py", line 15, in <module>
    import export
  File "/OneForAll/export.py", line 13, in <module>
    from common import utils
  File "/OneForAll/common/utils.py", line 21, in <module>
    from common.database import Database
  File "/OneForAll/common/database.py", line 8, in <module>
    from config.log import logger
ModuleNotFoundError: No module named 'config.log'