Segmentation Fault (Python->C API mismatch?)

Hello there,

I’ve recently installed Blender 3.2 and am having difficulty exporting. I have set my PYTHONPATH and PYTHONHOME directories to overcome the initial import options however as soon as I attempt to export, blender crashes with a seg fault (output below). I am using a stock install of Mandrake 9.2 and its installation of Python 2.3. I’d be greatful for advice as I know very little of Python.

Thanks,

  • VoidRoamer

/usr/lib/python2.3/os.py:282: Warning: ‘yield’ will become a reserved keyword in the future
‘import site’ failed; use -v for traceback
/usr/lib/python2.3/types.py:52: Warning: ‘yield’ will become a reserved keyword in the future
warning: Python C API version mismatch for module math: This Python has API version 1011, module math has version 1012.
Traceback (most recent call last):
File “<string>”, line 23, in ?
File “/usr/local/blender3d/.blender/scripts/mod_meshtools.py”, line 17, in ?
import random, operator
File “/usr/lib/python2.3/random.py”, line 42, in ?
from math import log as _log, exp as _exp, pi as _pi, e as _e
File “/usr/lib/python2.3/warnings.py”, line 6, in ?
import sys, types
File “/usr/lib/python2.3/types.py”, line 52
yield 1
^
SyntaxError: invalid syntax
Segmentation fault

I think Blender uses python 2.2…

Thanks. That was it, although I had innumerable problems reverting back to a previous version of Python. There’s little doubt as to where the notion dep-hell came from.

For future reference:

I had to remove the Python 3.3 rpms using the --nodeps option

I needed to install the package db2-2.4.14-8mdk to give Mandrake 9.2 the libs it wanted for Python 2.2.

The $PYTHONHOME and $PYTHONPATH variables were set using the procedure stated in the relevant post. Just a reminder to use the python 2.2 dirs, not 2.3, replace the commas with colons and to enclose the whole string in single quotes.

The most immediate problem was that Vim no longer functioned due to the absence of a needed library. I got around that by making a symlink of libpython2.2.so.0.0 which I named libpython2.3.so.1, that being the file Vim needed. I’m sure there’ll be a whole bunch of nasties just waiting for me in days to come now that I’ve broken dependencies. Surely there is a better solution?

Cheers all.

  • VoidRoamer

apt =)