Skip to content

Conversation

@connor-tan
Copy link
Owner

utils/env.py:963 在 QTDockerEnv.prepare() 里执行 next(iter(self.conf.extra_volumes.keys())),但 self.conf.extra_volumes 是空字典,抛出 StopIteration。

原因是这里把默认值覆盖掉了:

  • components/coder/model_coder/conf.py:27 get_model_env() 的参数 extra_volumes 默认是 {},然后无条件执行 env.conf.extra_volumes = extra_volumes.copy(),这会把 utils/env.py 里 QlibDockerConf 的默认 extra_volumes 覆盖成空。

Description

Motivation and Context

How Has This Been Tested?

  • If you are adding a new feature, test on your own test scripts.

Screenshots of Test Results (if appropriate):

  1. Your own tests:

Types of changes

  • Fix bugs
  • Add new feature
  • Update documentation

utils/env.py:963 在 QTDockerEnv.prepare() 里执行 next(iter(self.conf.extra_volumes.keys())),但 self.conf.extra_volumes 是空字典,抛出 StopIteration。

  原因是这里把默认值覆盖掉了:

  - components/coder/model_coder/conf.py:27 get_model_env() 的参数 extra_volumes 默认是 {},然后无条件执行 env.conf.extra_volumes = extra_volumes.copy(),这会把 utils/env.py 里
    QlibDockerConf 的默认 extra_volumes 覆盖成空。
@connor-tan connor-tan merged commit b935be3 into main Jan 7, 2026
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.

2 participants