If you get a Python Import Error...

From Sphinx

Possible error by Sam SunFish7@gmail.com

If you get this error:

>>> import _sphinx3
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: /usr/local/lib/libs3decoder.so.0: undefined symbol: s3u_arraylist_count

This translates as 'the python library was linked against a libs3decoder.so.0 that contained the method but your version doesn't contain it.'

The problem for me was that my /usr/local/lib/libs3decoder.so.0 was the sphinx3-0.6 one, not the sphinx3-0.7 one. (use cmp file1 file2 to find out). maybe i installed 0.6 after 0.7 or sthg.

73-37:/usr/local/lib# mv libs3decoder.so.0 libs3decoder.so.0_Sphinx306
73-37:/usr/local/lib# cp /home/sf7/Desktop/Sphinx/sphinx3-0.7/src/libs3decoder/.libs/libs3decoder.so.0 .

sorted it out.

related