Hi everyone,
My first post here so please excuse me if I mix something up.
I built Blender as a Python module under Linux to run and render fluid simulations for a Computer Vision project. I am working on an automated pipeline.
I was able to built the Python module successfully using the make bpy
target with the precompiled libraries. However, I made some adjustments to the âbpy_module.cmakeâ file: I enabled portable installation (for usage in a virtual Python environment), OpenCOLLADA, Alembic, Bullet, CUDA binaries and OpenVDB. I tried two different branches: the 2.90-release and the latest master (as of today).
After installing the module in the environment using make install
essentially everything works fine when importing the module: Loading and modifying scenes, importing â.objâ files, setting up the fluid domain and so on. But when I try to bake the simulation using bpy.ops.fluid.bake_data()
I get this error:
`
Python 3.7.5 (default, Aug 10 2020, 11:44:05)
[GCC 10.1.0] on linux
Type âhelpâ, âcopyrightâ, âcreditsâ or âlicenseâ for more information.
import bpy
bpy.ops.object.quick_liquid()
Traceback (most recent call last):
File ââ, line 109, in
AttributeError: âLevelsetGridâ object has no attribute âsetConstâ
Traceback (most recent call last):
File ââ, line 35, in
AttributeError: âBasicParticleSystemâ object has no attribute âcreateâ
Traceback (most recent call last):
File ââ, line 1, in
NameError: name âfluid_adapt_time_step_1â is not defined
Traceback (most recent call last):
File ââ, line 1, in
NameError: name âbake_fluid_data_1â is not defined
Traceback (most recent call last):
File ââ, line 1, in
NameError: name âliquid_save_data_1â is not defined
Traceback (most recent call last):
File ââ, line 109, in
AttributeError: âLevelsetGridâ object has no attribute âsetConstâ
Traceback (most recent call last):
File ââ, line 35, in
AttributeError: âBasicParticleSystemâ object has no attribute âcreateâ
Traceback (most recent call last):
File ââ, line 1, in
NameError: name âfluid_adapt_time_step_2â is not defined
Traceback (most recent call last):
File ââ, line 1, in
NameError: name âbake_fluid_data_2â is not defined
Traceback (most recent call last):
File ââ, line 1, in
NameError: name âliquid_save_data_2â is not defined
Traceback (most recent call last):
File ââ, line 109, in
AttributeError: âLevelsetGridâ object has no attribute âsetConstâ
Traceback (most recent call last):
File ââ, line 35, in
AttributeError: âBasicParticleSystemâ object has no attribute âcreateâ
Traceback (most recent call last):
File ââ, line 1, in
NameError: name âfluid_adapt_time_step_3â is not defined
Traceback (most recent call last):
File ââ, line 1, in
NameError: name âbake_fluid_data_3â is not defined
Traceback (most recent call last):
File ââ, line 1, in
NameError: name âliquid_save_data_3â is not defined
Traceback (most recent call last):
File ââ, line 109, in
AttributeError: âLevelsetGridâ object has no attribute âsetConstâ
Traceback (most recent call last):
File ââ, line 35, in
AttributeError: âBasicParticleSystemâ object has no attribute âcreateâ
Traceback (most recent call last):
File ââ, line 1, in
NameError: name âfluid_adapt_time_step_4â is not defined
Traceback (most recent call last):
File ââ, line 1, in
NameError: name âbake_fluid_data_4â is not defined
Traceback (most recent call last):
File ââ, line 1, in
NameError: name âliquid_save_data_4â is not defined
{âFINISHEDâ}
`
As you can see this error occurs even in the most simple case: Fresh scene, default cube and the quick liquid convenience function. To me it seems like some of the Mantaflow source code has not built correctly. But, I have no idea what causes this error and the traceback is not useful for me either. Aside from that, I am not sure whether this issue is related to my built and what information I can provide to give more context. Unfortunately I donât have much experience with software development, building etc. Please let me know what might be useful.
Edit: Note that the fluid bake runs without problems when I built âstandardâ Blender with make full
.
Thanks! J.