[Error] [omni.syntheticdata.scripts.extension] SyntheticData extension needs at least a stageFrameHistoryCount of 3

Hi,
I am a student and rather new to the omniverse environment and hence have issues with setting up my desired micro service in the kit app.

I intend for it to be a headless application being able to render images. I have looked at some replicator examples and tried to implement them. However i gain errors when i try to run them.

The errors:

I have been stuck at this for a while with no apparent solution.

Please provide more details about your setup.

Where did you obtain your source code?
As a recommendation, it is easiest to start with Kit App Template: GitHub - NVIDIA-Omniverse/kit-app-template: Omniverse Kit App Template

setting up my desired micro service in the kit app

Please provide more information step by step on what you did to get to the error you posted. What was the exact command you ran in order to get this error?

The error seems to be around a specific extension you’re trying to load:
car.scripting-python.plugin and twinflow.services.lighting-1.0.0
Please share your .kit file so we can analyze it more detailed.

Even though you received an error, it looks like the app may have actually been built. Are you able to launch the application?

The command that i run is:
.\app\omni.micro.bat --ext-folder ./exts --enable omni.syntheticdata --enable omni.replicator.core --enable twinflow.services.lighting --no-window

My source in extension.py was obtained by the tutorial from setting up a headless omniverse microservice and then the replicator “hello world” tutorial for the scene rendering:

import omni.ext
import omni.usd
from pxr import Usd, UsdGeom, Sdf
import omni.kit.app
import omni.replicator.core as rep
from pxr import Usd


class TwinflowServicesLightingExtension(omni.ext.IExt):
    def on_startup(self, ext_id):
        print("[twinflow.services.lighting] startup")
        with rep.new_layer():
            camera = rep.create.camera(position=(0, 0, 1000))
            render_product = rep.create.render_product(camera, (1024, 1024))
            torus = rep.create.torus(semantics=[('class', 'torus')], position=(0, -200, 100))
            sphere = rep.create.sphere(semantics=[('class', 'sphere')], position=(0, 100, 100))
            cube = rep.create.cube(semantics=[('class', 'cube')], position=(100, -200, 100))

            with rep.trigger.on_frame(num_frames=10):
                with rep.create.group([torus, sphere, cube]):
                    rep.modify.pose(
                        position=rep.distribution.uniform((-100, -100, -100), (200, 200, 200)),
                        scale=rep.distribution.uniform(0.1, 2))
            # Initialize and attach writer
            writer = rep.WriterRegistry.get("BasicWriter")
            writer.initialize(output_dir=r"C:\Users\hajprut\omni_renders", rgb=True, bounding_box_2d_tight=True)
            writer.attach([render_product])
            rep.orchestrator.preview()

    def on_shutdown(self):
        print("[twinflow.services.lighting] shutdown")