Why do I have to LD_Preload to import "random"?

(aws357) #1

I had the surprise to see Bpython throwing an error on one of my script…

Traceback (most recent call last):
  File "cubepile.py", line 1, in ?
  File "/users/invites/wong/apps/lib/python2.4/random.py", line 68, in ?
    import _random
ImportError: /users/invites/wong/apps/lib/python2.4/lib-dynload/_random.so: undefined symbol: _PyArg_NoKeywords

Hopefully I knew what to do… Launching with

LD_PRELOAD=~/apps/lib/libpython2.4.so.1.0 blender -w&

But I am surprised nonetheless… Where does this error comes from and what could I do to fix blender so it can import the “random” module without LD_preload?

PS : I am using Blender 2.43 compiled with python 2.4… so if it has been fixed… tell me where it has been discussed… haven’t found anything about this…

0 Likes