godot: Failure to import `.blend` with Blender package from Arch Linux
Godot version
4.0.2-stable
System information
Fedora 37
Issue description
This is related to #67275. I noticed my .blend
imports failing after my recent upgrade from Blender 3.3.1 to 3.5.0.
Blender 3.5 hasn’t yet been discussed in that issue, and so @lyuma suggested this may be a different problem to the ones we’ve experienced between 3.0 & 3.4.
I have also confirmed this isn’t a problem with Blender 3.4.1.
As is the case with #67275, the import keeps happening on a loop, which prevents me from working because the import modal repeatedly pops up:
Aside: it’d be useful to be able to debug this from the production editor build, perhaps by dumping Blender stderr into .godot/
somewhere.
Steps to reproduce
- Ensure Blender 3.5 is installed + configured for Godot and that imports are enabled on the current project
- Add any
.blend
file to the project
You’ll need to keep mashing Ctrl+Q to get the editor to quit after this.
Minimal reproduction project
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 3
- Comments: 27 (13 by maintainers)
Commits related to this issue
- Update blender export flags for 3.6. Fixes #76338. Blender 3.6 imports fail with: ``` TypeError: Converting py args to operator properties: : keyword "export_nla_strips" unrecognized ``` The `expo... — committed to rcorre/godot by rcorre 10 months ago
- Update blender export flags for 3.6. Fixes #76338. Blender 3.6 imports fail with: ``` TypeError: Converting py args to operator properties: : keyword "export_nla_strips" unrecognized ``` The `expo... — committed to rcorre/godot by rcorre 10 months ago
- Update blender export flags for 3.6. Fixes #76338. Blender 3.6 imports fail with: ``` TypeError: Converting py args to operator properties: : keyword "export_nla_strips" unrecognized ``` The `expo... — committed to rcorre/godot by rcorre 10 months ago
- Update blender export flags for 3.6. Fixes #76338. Blender 3.6 imports fail with: ``` TypeError: Converting py args to operator properties: : keyword "export_nla_strips" unrecognized ``` The `expo... — committed to rcorre/godot by rcorre 10 months ago
- Update blender export flags for 3.6. Fixes #76338. Blender 3.6 imports fail with: ``` TypeError: Converting py args to operator properties: : keyword "export_nla_strips" unrecognized ``` The `expo... — committed to rcorre/godot by rcorre 10 months ago
- Update blender export flags for 3.6. Fixes #76338. Blender 3.6 imports fail with: ``` TypeError: Converting py args to operator properties: : keyword "export_nla_strips" unrecognized ``` The `expo... — committed to mandryskowski/godot by rcorre 10 months ago
- Update blender export flags for 3.6. Fixes #76338. Blender 3.6 imports fail with: ``` TypeError: Converting py args to operator properties: : keyword "export_nla_strips" unrecognized ``` The `expo... — committed to ProbablyWorks/godot by rcorre 10 months ago
- Update blender export flags for 3.6. Fixes #76338. Blender 3.6 imports fail with: ``` TypeError: Converting py args to operator properties: : keyword "export_nla_strips" unrecognized ``` The `expo... — committed to YuriSizov/godot by rcorre 10 months ago
Yes, that’s what the
cherrypick:4.1
label means on the PR.The comment in https://github.com/godotengine/godot/pull/81194 explains more, but to clarify, this is not specific to ArchLinux. This is specific to a certain range of blender versions that removed the
export_nla_strips
parameter. Arch happened to package a version within that range.More recent versions add that back for “backwards compatibility”, but the re-added parameter does nothing (so it’s not really backwards compatible).
If you see
keyword "export_nla_strips" unrecognized
, then no. Blender import will fail on all blend files.Regardless, Godot should not try to import these in a infinite loop.
EDIT: This issue is not related to
.blend
files only. Any file, for which the import fails, is getting into loop.Aha! Found this in https://projects.blender.org/blender/blender-addons:
The parameter was removed recently, but re-added in even more recent addon versions for backwards compat. I think we want
export_animation_mode=NLA_TRACKS
going forward. I can open a PR.My bad, I overlooked this. I guess this ticket is now being repurposed 😛
The problem with Arch is likely similar to the problem Fedora 37 briefly had, where they were not including all core addons. Arch and Fedora don’t share package sources but it might be that a missing build dependency or build option leads to not compiling all Blender addons we need (here notably glTF export stuff I suppose).