I successfully built blender (2.8) as a python module on manjaro, following instructions here:
but when i try to import bpy in python I get the following error:
Python 3.7.3 (default, Mar 26 2019, 21:43:19)
[GCC 8.2.1 20181127] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import bpy
Traceback (most recent call last):
File “”, line 1, in
ImportError: /usr/lib/libjemalloc.so.2: cannot allocate memory in static TLS block
can anyone shed some light on this, i’m a bit lost.
thanks.
thanks brecht
as i’m rather new to this, would this be the correct usage:
sudo make BUILD_CMAKE_ARGS="-D WITH_JEMALLOC=OFF"
tried this and several other things (make bpy, and disabling WITH_MEM_JEMALLOC), but no dice.
installation runs without errors, files get installed in /usr/lib64/python3.7/site-packages, but as soon as i try to import in python, i get the error:
ImportError: /usr/lib/libjemalloc.so.2: cannot allocate memory in static TLS block
this is not critical as i’m just playing around with the stuff, but if anyone has any clue …
One thing that worked for me was for: /home/tibicen/Dokumenty/blender-git/blender/build_files/cmake/config/bpy_module.cmake
to add line (free this line out of if statement): set(WITH_MEM_JEMALLOC OFF CACHE BOOL "" FORCE)
cause if statement for “Linux” system doesn’t work in all cases. I’m using Fedora 30.
if(CMAKE_SYSTEM_NAME MATCHES "Linux") doesn’t work for me…