For some reason the steps to reproduce section didn’t get added to this ticket.
This is a stripped down version of what we are using and should be enough to recreate the error. You also get the same error suppling all the options to LevelExporterUSDOptions and setting automatic to true.
lvl_path = “/Script/Engine.World’/Game/Main.Main’”
asset = unreal.load_asset(lvl_path)
task = unreal.AssetExportTask()
task.object = asset
task.filename = “C:/Exports/auto_lights.usda”
task.options = unreal.LevelExporterUSDOptions()
task.exporter = unreal.LevelExporterUSD()
unreal.Exporter.run_asset_export_task(task)