Broken Dependencies in Blender Imported File

Godot Version

godot 4.5

Question

Hi all. I’m having a bug with my blend file when (re) importing it into godot after making some changes to it. It worked the first time I imported, but when I went back and added some animations (unsure if that caused it) it is saying that i have broken dependencies in my blend file.

I’m not quite sure how to fix this, and would appreciate any advice.
(no code posted atm cuz I just started this file, there’s barely any code to use at all atm).

(using linux mint if it is relevant)

Delete the .import file on the command line or in your window manager. Go back to Godot and have it reload the file. Should be fixed.

That didn’t work sadly :frowning: I just tried it
TY for suggestion though

Copy and paste the exact error here.

These are the errors I get now when loading the project:

WARNING: scene/resources/resource_format_text.cpp:444 - res://combatants/player.tscn:3 - ext_resource, invalid UID: uid://c5p1miyi86etq - using text path instead: res://sophia.blend
ERROR: Failed loading resource: res://sophia.blend.

It had more when I deleted the import file, those might help more so let me track those down too.

these are the ones that showed when the import file was deleted:

ERROR: Blender exportation failed: faultCode 1 faultString <class ‘RuntimeError’>:Error: Python: Traceback (most recent call last):
ERROR: File “/home/dean/Desktop/blender-4.5.3-linux-x64/4.5/scripts/addons_core/io_scene_gltf2/init.py”, line 1370, in execute
ERROR: res = gltf2_blender_export.save(context, export_settings)
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: File “/home/dean/Desktop/blender-4.5.3-linux-x64/4.5/scripts/addons_core/io_scene_gltf2/blender/exp/export.py”, line 37, in save
ERROR: json, buffer = __export(export_settings)
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: File “/home/dean/Desktop/blender-4.5.3-linux-x64/4.5/scripts/addons_core/io_scene_gltf2/blender/exp/export.py”, line 55, in __export
ERROR: __gather_gltf(exporter, export_settings)
ERROR: File “/home/dean/Desktop/blender-4.5.3-linux-x64/4.5/scripts/addons_core/io_scene_gltf2/blender/exp/export.py”, line 210, in __gather_gltf
ERROR: active_scene_idx, scenes, animations = gltf2_blender_gather.gather_gltf2(export_settings)
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: File “/home/dean/Desktop/blender-4.5.3-linux-x64/4.5/scripts/addons_core/io_scene_gltf2/blender/exp/gather.py”, line 48, in gather_gltf2
ERROR: animations += gather_animations(export_settings)
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: File “/home/dean/Desktop/blender-4.5.3-linux-x64/4.5/scripts/addons_core/io_scene_gltf2/blender/exp/animation/animations.py”, line 18, in gather_animations
ERROR: return gather_actions_animations(export_settings)
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: File “/home/dean/Desktop/blender-4.5.3-linux-x64/4.5/scripts/addons_core/io_scene_gltf2/blender/exp/animation/action.py”, line 145, in gather_actions_animations
ERROR: prepare_actions_range(export_settings)
ERROR: File “/home/dean/Desktop/blender-4.5.3-linux-x64/4.5/scripts/addons_core/io_scene_gltf2/blender/exp/animation/action.py”, line 231, in prepare_actions_range
ERROR: blender_actions = __get_blender_actions(obj_uuid, export_settings)
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: File “/home/dean/Desktop/blender-4.5.3-linux-x64/4.5/scripts/addons_core/io_scene_gltf2/blender/exp/cache.py”, line 37, in wrapper_cached
ERROR: result = func(*args, **kwargs)
ERROR: ^^^^^^^^^^^^^^^^^^^^^
ERROR: File “/home/dean/Desktop/blender-4.5.3-linux-x64/4.5/scripts/addons_core/io_scene_gltf2/blender/exp/animation/action.py”, line 843, in __get_blender_actions
ERROR: new_action.add_slot(strip.action_slot, strip.action_slot.target_id_type, track.name)
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: AttributeError: ‘NoneType’ object has no attribute ‘target_id_type’
ERROR: Location: /home/dean/Desktop/blender-4.5.3-linux-x64/4.5/scripts/modules/bpy/ops.py:109
ERROR: Error importing ‘res://sophia.blend’.

Ok, it looks like your blender file is having issues. Do you have it open in Blender at the same time? That could cause problems. For example if you have an animation running in Blender that’s changing the file as it’s being imported. A couple of things to try:

  1. Close the file in Blender when you’re importing it in Godot.
  2. Consider exporting the file as a .glb file. Not everything in Blender is supported, and you may have added something unsupported to your file that the Blender importer cannot read.

If suggestion 1 doesn’t work, but number two does, I recommend you log a bug on the Godot GitHub page

Thanks for the information.

I think i closed the file, unless it somehow failed to close. But blender is closed, and was when i was trying to open godot.

Ill look into filing a bug if i can’t get it fixed soon t hough. TY for your time.

Ok, I also really recommend trying the .glb export.

In Blender File → Export → gltf 2.0. All the animations should be exported by default. Should be a 5 minute test.

thanks :3
I’ve done that one before, I just really wanted to try to get the blend import working
but Ill use that one in the meantime