I compile and run Blender as a Python module in a Docker container. Everything worked flawlessly, but after a rebuild of the container (without changing anything), I suddenly get the following error when I import the
Traceback (most recent call last): File "/opt/bpy/lib/python3.9/site-packages/3.0/scripts/modules/addon_utils.py", line 351, in enable mod = __import__(module_name) ModuleNotFoundError: No module named 'io_scene_obj'
Interestingly, all of my code still runs. However, I’d still like to fix this ugly error.
Since I pinned the version of Blender (3.0.1) and its libraries (3.0) and changed nothing else about the Dockerfile, I suspect that something else must have changed. First I suspected Python, since its version increased from 3.9.9 to 3.9.10 after the rebuild, but I was able to rule that out by downgrading Python.
TBH, I’m not very experienced with the compilation of Blender, am I missing something? Alternatively, could I just exclude the
io_scene_obj module, since I don’t use it anyhow?