boost::python PyUnicodeUCS4_FromEncodedObject

import myClass *Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: ./myClass.so: undefined symbol: PyUnicodeUCS4_FromEncodedObject
Hi,
Am stumbling on a very rudimentary problem and am totally not able to
proceed. Googling did not help me much and hence am trying to state the
problem in its entirety. Any quick comments/hints would be highly helpful.
Am getting the following error when i try to import the module (class) into
python :
$python
*
*Environment:*
g++ (GCC) 4.0.0 20050519 (Red Hat 4.0.0-8)
Python 2.4.3
*Other Information:*
$ldd myClass.so
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00db8000)
libm.so.6 => /lib/tls/libm.so.6 (0x002b3000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00eb7000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x0057a000)
libc.so.6 => /lib/tls/libc.so.6 (0x00b6f000)
/lib/ld-linux.so.2 (0x00712000)
*
Files Used :*
*myClass.cpp*
-------------
#include

On Thu, Mar 27, 2008 at 1:00 PM, Venkatraman S
*setup.py* --------------- from distutils.core import setup from distutils.extension import Extension setup(name="myvaarg",ext_modules=[Extension("myvaarg",["sample.cpp "],libraries=["boost_python"])])
-- Venkat Mobile : (91)-99529 43249 Blog @ http://blizzardzblogs.blogspot.com

$python
import myClass *Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: ./myClass.so: undefined symbol: PyUnicodeUCS4_FromEncodedObject*
It's possible to configure python at build time to use either 2- or 4-byte wide Unicode characters. Whenever I've encountered this error it's due to either compiling. or linking, my module against an installation of Python which has been configured differently. It's also possible that this occurred whilst building boost.python. If you're importing your module into an application with embedded Python you should also make sure that your Python Unicode configuration is consistent with that application's. Cheers, Mark
participants (2)
-
Mark Williams
-
Venkatraman S