Fernando Alberto Velasquez wrote:
Hi

Well, sapdbapi work fine on python 1.5, but i have problems trying load
spdbapi on python 2.2

Python 2.2 (#1, Apr 12 2002, 15:29:57)
[GCC 2.96 20000731 (Red Hat Linux 7.2 2.96-109)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import sapdbapi
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "sapdbapi.py", line 46, in ?
    import sapdb
ImportError: ./sapdbmodule.so: undefined symbol: PyUnicodeUCS2_FromUnicode

I Have sapdb-python-linux-i386-7.3.00.29.tgz and And run Sapdb 7.3.0.30.
I'm assuming that you're using a python that has been compiled for 4 byte unicode strings.

There is currently no solution other than copying python15/sapdbmodule.so to python22/sapdbmodule.so.

This will emit a warning about a Python API mismatch and you will not be able to process unicode data.

A simple recompile won't help as the function PyUnicodeUCS2_FromUnicode gets chosen based on the Python version. I'll have to check how to detect the UCS4 mode at compile time and possibly at run time.

Daniel Dittmar

--
Daniel Dittmar
SAP DB, SAP Labs Berlin
[EMAIL PROTECTED]
http://www.sapdb.org



_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to