When trying to bake fluid from command line using:
import bpy
bpy.ops.fluid.bake_all()
I receive the following errors:
NameError: name 'fluid_adapt_time_step_2' is not defined
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'bake_fluid_data_2' is not defined
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'fluid_save_data_2' is not defined
...etc...
The names given can be found in: https://github.com/blender/blender/blob/master/intern/mantaflow/intern/strings/fluid_script.h
I'm guessing baking can't find the settings to bake domain outside of the GUI. Is there code to import such information?
I'm aware of Brecht's answer: Bake Fluid Simulation via CLI or Python?, which didn't work.
Moreover, recent Brecht's interaction concerning Mantaflow baking: https://devtalk.blender.org/t/feature-request-mantaflow-bake-command/11105
Update from https://github.com/ichlubna/blenderScripts/issues/1 : probably is a bug: https://developer.blender.org/T75889
terminate called after throwing an instance of 'Manta::Error'
what(): can't clean grid cache, some grids are still in use
Error raised in /home/sources/buildbot-x86_64-slave/linux_glibc217_x86_64_cmake/blender.git/extern/mantaflow/preprocessed/fluidsolver.cpp:33