aim 随机运行初始化错误

f0brbegy  于 5个月前  发布在  其他
关注(0)|答案(2)|浏览(124)

🐛 Bug

有时在设置运行时,我会遇到以下错误:
"TypeError: DBAPIError.init()缺少2个必需的位置参数:'params'和'orig'"
这个错误是由于调用
run = Run(repo=repo, experiment=experiment, log_system_params=True)

重现方法

当在ARGO中在同一仓库上启动多个并行运行时,可能会出现此错误。在100个pods中,也许会有几个显示此错误。

环境

aim==3.17.5
python:3.10
argo-workflows==6.3.5
hera==5.4.1

x6yk4ghg

x6yk4ghg1#

嘿,Luca-DTU!你能分享完整的错误堆栈跟踪吗?这将有助于理解问题的根源。

xwbd5t1u

xwbd5t1u2#

你好,
这是一个错误示例:
Traceback (most recent call last):
File "/argo/staging/script", line 17, in
run = Run(repo=repo_name, experiment=experiment_name, log_system_params=True)
File "/usr/local/lib/python3.10/site-packages/aim/ext/exception_resistant.py", line 70, in wrapper
_SafeModeConfig.exception_callback(e, func)
File "/usr/local/lib/python3.10/site-packages/aim/ext/exception_resistant.py", line 47, in reraise_exception
raise e
File "/usr/local/lib/python3.10/site-packages/aim/ext/exception_resistant.py", line 68, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/aim/sdk/run.py", line 828, in init
super().init(run_hash, repo=repo, read_only=read_only, experiment=experiment, force_resume=force_resume)
File "/usr/local/lib/python3.10/site-packages/aim/sdk/run.py", line 325, in init
self.props
File "/usr/local/lib/python3.10/site-packages/aim/sdk/run.py", line 440, in props
self._props = self.repo.request_props(self.hash, self.read_only)
File "/usr/local/lib/python3.10/site-packages/aim/sdk/repo.py", line 354, in request_props
return StructuredRunProxy(self.client, hash, read_only, created_at)
File "/usr/local/lib/python3.10/site-packages/aim/storage/structured/proxy.py", line 31, in init
handler = self._rpc_client.get_resource_handler(self, self.resource_type, args=self.init_args)
File "/usr/local/lib/python3.10/site-packages/aim/ext/transport/client.py", line 225, in get_resource_handler
raise_exception(response.exception)
File "/usr/local/lib/python3.10/site-packages/aim/ext/transport/message_utils.py", line 76, in raise_exception
raise exception(*args) if args else exception()
TypeError: DBAPIError.init() missing 2 required positional arguments: 'params' and 'orig'

相关问题