Blend2bam error

The command I’m using is:

blend2bam --blender-dir "C:\Program Files\Blender Foundation\Blender 5.0" Tire_and_Axle.blend Tire_and_Axle.bam

I’m running it from the directory of the model files.
However, it gives this long error:

Blender 5.0.0 (hash a37564c4df7a built 2025-11-18 11:06:54)
Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\blend2bam\blender_scripts\exportgltf.py", line 330, in <module>
    convert_files(export_gltf, 'gltf')
  File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\blend2bam\blender_scripts\exportgltf.py", line 312, in convert_files
    if 'allow_embedded_format' in addon_prefs:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: bpy_struct: this type doesn't support IDProperties

Blender quit
Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\blend2bam\cli.py", line 60, in convert
    outfiles = tmp2dst.convert(tmpdir, dstdir, tmpfiles)
  File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\blend2bam\gltf2bam.py", line 74, in convert
    run_gltf2bam(src, dst, self.cli_args)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\blend2bam\gltf2bam.py", line 26, in run_gltf2bam
    runpy.run_module('gltf.cli', run_name='__main__', alter_sys=True)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen runpy>", line 226, in run_module
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\gltf\cli.py", line 159, in <module>
    main()
    ~~~~^^
  File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\gltf\cli.py", line 122, in main
    gltf_data = parse_gltf_file(src)
  File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\gltf\parseutils.py", line 58, in parse_gltf_file
    if is_glb_file(filepath):
       ~~~~~~~~~~~^^^^^^^^^^
  File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\gltf\parseutils.py", line 6, in is_glb_file
    with open(filepath, 'rb') as glbfile:
         ~~~~^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\user\\AppData\\Local\\Temp\\tmpe3culrsp\\Tire_and_Axle.gltf'

Failed to convert all files

I’ve used blend2bam before (on a different computer), but this is the first time I’ve come across this error. I also have to specify the path for blender, which wasn’t an issue previously.
I’ve looked at some of the other posts related to this, but none of them have this specific error.
Can you help me with this?

I don’t use “blend2bam” myself, so I’m just going by the results of some searching online, but are you perhaps using a version of Blender different to the one that you used previously, on that different computer?

It looks like the primary error is the first one:
TypeError: bpy_struct: this type doesn't support IDProperties
Which is coming up in “exportgltf.py”.

That suggests to me that something was changed about how Blender allows a script to access properties of some sort, which then broke this particular script.

It might be worth filing an issue for this on the “blend2bam” issues-page.

In the meanwhile, you could try using an older version of Blender, and seeing whether the script works with that.

Yeah, it’s a newer version of Blender, that could be the issue.
Thanks for the help!

1 Like