命令行模式下unreal.Map出现TypeError错误

Engine\Plugins\MovieScene\MovieRenderPipeline\Content\Python\MoviePipelineExampleRuntimeExecutor.py

[Attachment Removed]

重现步骤
1、开启PythonScriptPlugin插件

2、使用UnrealEditor-Cmd.exe执行任务,会出现以下错误:

LogPython: Error: Traceback (most recent call last):

LogPython: Error: File “F:/Lucky/Engine/Plugins/MovieScene/MovieRenderPipeline/Content/Python/init_unreal.py”, line 2, in <module>

LogPython: Error: import MoviePipelineExampleRuntimeExecutor

LogPython: Error: File “F:\Lucky/Engine/Plugins/MovieScene/MovieRenderPipeline/Content/Python\MoviePipelineExampleRuntimeExecutor.py”, line 47, in <module>

LogPython: Error: class MoviePipelineExampleRuntimeExecutor(unreal.MoviePipelinePythonHostExecutor):

LogPython: Error: File “F:\Lucky/Engine/Plugins/MovieScene/MovieRenderPipeline/Content/Python\MoviePipelineExampleRuntimeExecutor.py”, line 54, in MoviePipelineExampleRuntimeExecutor

LogPython: Error: exampleDict = unreal.Map(str, bool) # A dictionary of strings to bools.

LogPython: Error: ^^^^^^^^^^^^^^^^^^^^^

LogPython: Error: TypeError: call() takes at most 0 arguments (2 given)

3、看了下是UE5.7添加的PythonScriptPlugin.cpp:1350-1357行的修改导致,编辑器模式下是不会有这个问题

[Attachment Removed]

你好,

我在UE5.7中,使用UnrealEditor-Cmd.exe执行了一些小的py脚本,并没有复现TypeError的问题。感觉上可能与您的项目或者您提到的具体任务相关。

如果您可以详细描述一下所执行的是什么样的任务,甚至上传一个复现这个问题的简单工程文件就更好了,那将能够帮助我们给您提供更准确的问题定位和解决方案。非常感谢!

[Attachment Removed]

我们又仔细排查了下,确实是我们项目相关的代码导致的。感谢。

[Attachment Removed]

好的,我这边就关闭这个case了。如果您有进一步的问题,请告诉我。

[Attachment Removed]